6 Copyright (c) 1998 Intel Corporation
23 typedef unsigned char BOOLEAN
;
29 #define TRUE ((BOOLEAN) 1)
30 #define FALSE ((BOOLEAN) 0)
34 #define NULL ((VOID *) 0)
37 typedef UINTN EFI_STATUS
;
38 typedef UINT64 EFI_LBA
;
39 typedef UINTN EFI_TPL
;
40 typedef VOID
*EFI_HANDLE
;
41 typedef VOID
*EFI_EVENT
;
45 // Prototype argument decoration for EFI parameters to indicate
48 // IN - argument is passed into the function
49 // OUT - argument (pointer) is returned from the function
50 // OPTIONAL - argument is optional
77 UINT16 Year
; // 1998 - 20XX
78 UINT8 Month
; // 1 - 12
81 UINT8 Minute
; // 0 - 59
82 UINT8 Second
; // 0 - 59
84 UINT32 Nanosecond
; // 0 - 999,999,999
85 INT16 TimeZone
; // -1440 to 1440 or 2047
90 // Bit definitions for EFI_TIME.Daylight
91 #define EFI_TIME_ADJUST_DAYLIGHT 0x01
92 #define EFI_TIME_IN_DAYLIGHT 0x02
94 // Value definition for EFI_TIME.TimeZone
95 #define EFI_UNSPECIFIED_TIMEZONE 0x07FF
116 UINT32 ReceivedQueueTimeoutValue
;
117 UINT32 TransmitQueueTimeoutValue
;
118 UINT16 ProtocolTypeFilter
;
119 BOOLEAN EnableUnicastReceive
;
120 BOOLEAN EnableMulticastReceive
;
121 BOOLEAN EnableBroadcastReceive
;
122 BOOLEAN EnablePromiscuousReceive
;
123 BOOLEAN FlushQueuesOnReset
;
124 BOOLEAN EnableReceiveTimestamps
;
125 BOOLEAN DisableBackgroundPolling
;
126 } EFI_MANAGED_NETWORK_CONFIG_DATA
;
132 typedef UINT64 EFI_PHYSICAL_ADDRESS
;
133 typedef UINT64 EFI_VIRTUAL_ADDRESS
;
142 //Preseve the attr on any range supplied.
143 //ConventialMemory must have WB,SR,SW when supplied.
144 //When allocating from ConventialMemory always make it WB,SR,SW
145 //When returning to ConventialMemory always make it WB,SR,SW
146 //When getting the memory map, or on RT for runtime types
150 EfiReservedMemoryType
,
155 EfiRuntimeServicesCode
,
156 EfiRuntimeServicesData
,
157 EfiConventionalMemory
,
159 EfiACPIReclaimMemory
,
162 EfiMemoryMappedIOPortSpace
,
167 // possible caching types for the memory range
168 #define EFI_MEMORY_UC 0x0000000000000001
169 #define EFI_MEMORY_WC 0x0000000000000002
170 #define EFI_MEMORY_WT 0x0000000000000004
171 #define EFI_MEMORY_WB 0x0000000000000008
172 #define EFI_MEMORY_UCE 0x0000000000000010
174 // physical memory protection on range
175 #define EFI_MEMORY_WP 0x0000000000001000
176 #define EFI_MEMORY_RP 0x0000000000002000
177 #define EFI_MEMORY_XP 0x0000000000004000
179 // range requires a runtime mapping
180 #define EFI_MEMORY_RUNTIME 0x8000000000000000
182 #define EFI_MEMORY_DESCRIPTOR_VERSION 1
184 UINT32 Type
; // Field size is 32 bits followed by 32 bit pad
186 EFI_PHYSICAL_ADDRESS PhysicalStart
; // Field size is 64 bits
187 EFI_VIRTUAL_ADDRESS VirtualStart
; // Field size is 64 bits
188 UINT64 NumberOfPages
; // Field size is 64 bits
189 UINT64 Attribute
; // Field size is 64 bits
190 } EFI_MEMORY_DESCRIPTOR
;
193 // International Language
196 typedef CHAR8 ISO_639_2
;
197 #define ISO_639_2_ENTRY_SIZE 3
203 #define EFI_PAGE_SIZE 4096
204 #define EFI_PAGE_MASK 0xFFF
205 #define EFI_PAGE_SHIFT 12
207 #define EFI_SIZE_TO_PAGES(a) \
208 ( ((a) >> EFI_PAGE_SHIFT) + ((a) & EFI_PAGE_MASK ? 1 : 0) )
210 #define EFI_OS_INDICATIONS_BOOT_TO_FW_UI 0x0000000000000001
211 #define EFI_OS_INDICATIONS_TIMESTAMP_REVOCATION 0x0000000000000002
212 #define EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED \
214 #define EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED \
216 #define EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED \