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

Function ec_ext_read

util/ectool/ec.c:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114uint8_t ec_ext_read(uint16_t addr)
115{
116 send_ec_command(WR_EC);
117 send_ec_data(0x02);
118 send_ec_data(addr & 0xff);
119 send_ec_command(RX_EC);
120 send_ec_data(addr >> 8);
121
122 return recv_ec_data();
123}
124
125int ec_ext_write(uint16_t addr, uint8_t data)
126{

Callers

nothing calls this directly

Calls 3

send_ec_commandFunction · 0.70
send_ec_dataFunction · 0.70
recv_ec_dataFunction · 0.70

Tested by

no test coverage detected