MCPcopy Create free account
hub / github.com/coreboot/coreboot / ec_idx_read

Function ec_idx_read

util/ectool/ec.c:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144uint8_t ec_idx_read(uint16_t addr)
145{
146 uint16_t lpc_idx = 0x380;
147
148 outb(addr & 0xff, lpc_idx + 2);
149 outb(addr >> 8, lpc_idx + 1);
150
151 return inb(lpc_idx + 3);
152}
153
154uint8_t ec_query(void)
155{

Callers 1

mainFunction · 0.70

Calls 2

outbFunction · 0.70
inbFunction · 0.70

Tested by

no test coverage detected