Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
144
uint8_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
154
uint8_t ec_query(void)
155
{
Callers
1
main
Function · 0.70
Calls
2
outb
Function · 0.70
inb
Function · 0.70
Tested by
no test coverage detected