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

Function mei_reset

util/intelmetool/src/me.c:157–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void mei_reset(void)
158{
159 struct mei_csr host;
160
161 if (mei_wait_for_me_ready() < 0)
162 return;
163
164 /* Reset host and ME circular buffers for next message */
165 read_host_csr(&host);
166 host.reset = 1;
167 host.interrupt_generate = 1;
168 write_host_csr(&host);
169
170 if (mei_wait_for_me_ready() < 0)
171 return;
172
173 /* Re-init and indicate host is ready */
174 read_host_csr(&host);
175 host.interrupt_generate = 1;
176 host.ready = 1;
177 host.reset = 0;
178 write_host_csr(&host);
179}
180
181static int mei_send_msg(struct mei_header *mei, struct mkhi_header *mkhi,
182 void *req_data)

Callers 3

dump_me_memoryFunction · 0.70
dump_me_infoFunction · 0.70
mei_send_msgFunction · 0.70

Calls 3

mei_wait_for_me_readyFunction · 0.70
read_host_csrFunction · 0.70
write_host_csrFunction · 0.70

Tested by

no test coverage detected