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

Function rehide_me

util/intelmetool/src/intelmetool.c:198–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static void rehide_me(void)
199{
200 const uint32_t rcba = get_rcba_phys();
201 if (rcba > 0) {
202 if (fd2 & 0x2) {
203 if (debug)
204 printf("Re-hiding MEI device...");
205 if (read_rcba32(FD2, &fd2)) {
206 printf("Error reading RCBA\n");
207 return;
208 }
209 if (write_rcba32(FD2, fd2 | 0x2)) {
210 printf("Error writing RCBA\n");
211 return;
212 }
213 if (debug)
214 printf("done\n");
215 }
216 }
217}
218
219static struct pci_dev *pci_me_interface_scan(const char **name, char *namebuf,
220 int namebuf_size)

Callers 3

pci_me_interface_scanFunction · 0.85
dump_me_infoFunction · 0.85
dump_bootguard_infoFunction · 0.85

Calls 4

get_rcba_physFunction · 0.85
printfFunction · 0.85
read_rcba32Function · 0.85
write_rcba32Function · 0.85

Tested by

no test coverage detected