38 #define TRUE ((BOOLEAN) 1)
39 #define FALSE ((BOOLEAN) 0)
43 #define NULL ((VOID *) 0)
46typedef UINTN EFI_STATUS;
47typedef UINT64 EFI_LBA;
49typedef VOID *EFI_HANDLE;
50typedef VOID *EFI_EVENT;
101#define EFI_TIME_ADJUST_DAYLIGHT 0x01
102#define EFI_TIME_IN_DAYLIGHT 0x02
105#define EFI_UNSPECIFIED_TIMEZONE 0x07FF
126 UINT32 ReceivedQueueTimeoutValue;
127 UINT32 TransmitQueueTimeoutValue;
128 UINT16 ProtocolTypeFilter;
129 BOOLEAN EnableUnicastReceive;
130 BOOLEAN EnableMulticastReceive;
131 BOOLEAN EnableBroadcastReceive;
132 BOOLEAN EnablePromiscuousReceive;
133 BOOLEAN FlushQueuesOnReset;
134 BOOLEAN EnableReceiveTimestamps;
135 BOOLEAN DisableBackgroundPolling;
142typedef UINT64 EFI_PHYSICAL_ADDRESS;
143typedef UINT64 EFI_VIRTUAL_ADDRESS;
160 EfiReservedMemoryType,
165 EfiRuntimeServicesCode,
166 EfiRuntimeServicesData,
167 EfiConventionalMemory,
169 EfiACPIReclaimMemory,
172 EfiMemoryMappedIOPortSpace,
179#define EFI_MEMORY_UC 0x0000000000000001
180#define EFI_MEMORY_WC 0x0000000000000002
181#define EFI_MEMORY_WT 0x0000000000000004
182#define EFI_MEMORY_WB 0x0000000000000008
183#define EFI_MEMORY_UCE 0x0000000000000010
186#define EFI_MEMORY_WP 0x0000000000001000
187#define EFI_MEMORY_RP 0x0000000000002000
188#define EFI_MEMORY_XP 0x0000000000004000
189#define EFI_MEMORY_NV 0x0000000000008000
190#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000
191#define EFI_MEMORY_RO 0x0000000000020000
194#define EFI_MEMORY_RUNTIME 0x8000000000000000
196#define EFI_MEMORY_DESCRIPTOR_VERSION 1
200 EFI_PHYSICAL_ADDRESS PhysicalStart;
201 EFI_VIRTUAL_ADDRESS VirtualStart;
202 UINT64 NumberOfPages;
210typedef UINT8 ISO_639_2;
211#define ISO_639_2_ENTRY_SIZE 3
217#define EFI_PAGE_SIZE 4096
218#define EFI_PAGE_MASK 0xFFF
219#define EFI_PAGE_SHIFT 12
221#define EFI_SIZE_TO_PAGES(a) \
222 ( ((a) >> EFI_PAGE_SHIFT) + (((a) & EFI_PAGE_MASK) ? 1 : 0) )