| 90 | static const char *name = "coreboot"; |
| 91 | |
| 92 | static void mock_rdev(bool init) |
| 93 | { |
| 94 | if (init) { |
| 95 | /* Emulate NOR flash by setting all bits to 1 */ |
| 96 | memset(flash_buffer, 0xff, sizeof(flash_buffer)); |
| 97 | /* Place _FVH and VIH headers, as well as test data */ |
| 98 | memcpy(flash_buffer, FVH, sizeof(FVH)); |
| 99 | } |
| 100 | |
| 101 | rdev_chain_mem_rw(&flash_rdev_rw, flash_buffer, sizeof(flash_buffer)); |
| 102 | } |
| 103 | |
| 104 | static const EFI_GUID EficorebootNvDataGuid = { |
| 105 | 0xceae4c1d, 0x335b, 0x4685, { 0xa4, 0xa0, 0xfc, 0x4a, 0x94, 0xee, 0xa0, 0x85 } }; |
no test coverage detected