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

Function ec_ext_write

util/ectool/ec.c:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125int ec_ext_write(uint16_t addr, uint8_t data)
126{
127 send_ec_command(WR_EC);
128 send_ec_data(0x02);
129 send_ec_data(addr & 0xff);
130 send_ec_command(WX_EC);
131 send_ec_data(addr >> 8);
132
133 return send_ec_data(data);
134}
135
136int ec_write(uint8_t addr, uint8_t data)
137{

Callers

nothing calls this directly

Calls 2

send_ec_commandFunction · 0.70
send_ec_dataFunction · 0.70

Tested by

no test coverage detected