| 196 | } |
| 197 | |
| 198 | static 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 | |
| 219 | static struct pci_dev *pci_me_interface_scan(const char **name, char *namebuf, |
| 220 | int namebuf_size) |
no test coverage detected