OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
FlashLayout.h
Go to the documentation of this file.
1
22#ifndef _EFI_FLASH_LAYOUT
23#define _EFI_FLASH_LAYOUT
24
25#include <EfiFlashMap.h>
26
27//
28// Firmware Volume Information for DUET
29//
30#define FV_BLOCK_SIZE 0x10000
31#define FV_BLOCK_MASK 0x0FFFF
32#define EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH (sizeof (EFI_FIRMWARE_VOLUME_HEADER) + sizeof (EFI_FV_BLOCK_MAP_ENTRY))
33
34#define NV_STORAGE_SIZE 0x4000
35#define NV_STORAGE_FVB_SIZE ((NV_STORAGE_SIZE + EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH + FV_BLOCK_MASK) & ~FV_BLOCK_MASK)
36#define NV_STORAGE_FVB_BLOCK_NUM (NV_STORAGE_FVB_SIZE / FV_BLOCK_SIZE)
37
38#define NV_FTW_WORKING_SIZE 0x2000
39#define NV_FTW_SPARE_SIZE 0x10000
40#define NV_FTW_FVB_SIZE ((NV_FTW_WORKING_SIZE + NV_FTW_SPARE_SIZE + EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH + FV_BLOCK_MASK) & ~FV_BLOCK_MASK)
41#define NV_FTW_FVB_BLOCK_NUM (NV_FTW_FVB_SIZE / FV_BLOCK_SIZE)
42
43#define NV_STORAGE_FILE_PATH L".\\Efivar.bin"
44
45#define BOOT1_BASE ((UINTN) 0xE000U)
46#define BOOT1_MAGIC 0xAA55
47
48typedef struct {
49 UINT8 LoaderCode[496];
50 UINT8 Signature[14];
51 UINT16 Magic;
53
54#endif // _EFI_FLASH_LAYOUT
UINT8 Signature[8]
Definition BiosId.h:67