]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | HOB related definitions in PI.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | @par Revision Reference:\r | |
8 | PI Version 1.6\r | |
9 | \r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef __PI_HOB_H__\r | |
13 | #define __PI_HOB_H__\r | |
14 | \r | |
15 | //\r | |
16 | // HobType of EFI_HOB_GENERIC_HEADER.\r | |
17 | //\r | |
18 | #define EFI_HOB_TYPE_HANDOFF 0x0001\r | |
19 | #define EFI_HOB_TYPE_MEMORY_ALLOCATION 0x0002\r | |
20 | #define EFI_HOB_TYPE_RESOURCE_DESCRIPTOR 0x0003\r | |
21 | #define EFI_HOB_TYPE_GUID_EXTENSION 0x0004\r | |
22 | #define EFI_HOB_TYPE_FV 0x0005\r | |
23 | #define EFI_HOB_TYPE_CPU 0x0006\r | |
24 | #define EFI_HOB_TYPE_MEMORY_POOL 0x0007\r | |
25 | #define EFI_HOB_TYPE_FV2 0x0009\r | |
26 | #define EFI_HOB_TYPE_LOAD_PEIM_UNUSED 0x000A\r | |
27 | #define EFI_HOB_TYPE_UEFI_CAPSULE 0x000B\r | |
28 | #define EFI_HOB_TYPE_FV3 0x000C\r | |
29 | #define EFI_HOB_TYPE_UNUSED 0xFFFE\r | |
30 | #define EFI_HOB_TYPE_END_OF_HOB_LIST 0xFFFF\r | |
31 | \r | |
32 | ///\r | |
33 | /// Describes the format and size of the data inside the HOB.\r | |
34 | /// All HOBs must contain this generic HOB header.\r | |
35 | ///\r | |
36 | typedef struct {\r | |
37 | ///\r | |
38 | /// Identifies the HOB data structure type.\r | |
39 | ///\r | |
40 | UINT16 HobType;\r | |
41 | ///\r | |
42 | /// The length in bytes of the HOB.\r | |
43 | ///\r | |
44 | UINT16 HobLength;\r | |
45 | ///\r | |
46 | /// This field must always be set to zero.\r | |
47 | ///\r | |
48 | UINT32 Reserved;\r | |
49 | } EFI_HOB_GENERIC_HEADER;\r | |
50 | \r | |
51 | ///\r | |
52 | /// Value of version in EFI_HOB_HANDOFF_INFO_TABLE.\r | |
53 | ///\r | |
54 | #define EFI_HOB_HANDOFF_TABLE_VERSION 0x0009\r | |
55 | \r | |
56 | ///\r | |
57 | /// Contains general state information used by the HOB producer phase.\r | |
58 | /// This HOB must be the first one in the HOB list.\r | |
59 | ///\r | |
60 | typedef struct {\r | |
61 | ///\r | |
62 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_HANDOFF.\r | |
63 | ///\r | |
64 | EFI_HOB_GENERIC_HEADER Header;\r | |
65 | ///\r | |
66 | /// The version number pertaining to the PHIT HOB definition.\r | |
67 | /// This value is four bytes in length to provide an 8-byte aligned entry\r | |
68 | /// when it is combined with the 4-byte BootMode.\r | |
69 | ///\r | |
70 | UINT32 Version;\r | |
71 | ///\r | |
72 | /// The system boot mode as determined during the HOB producer phase.\r | |
73 | ///\r | |
74 | EFI_BOOT_MODE BootMode;\r | |
75 | ///\r | |
76 | /// The highest address location of memory that is allocated for use by the HOB producer\r | |
77 | /// phase. This address must be 4-KB aligned to meet page restrictions of UEFI.\r | |
78 | ///\r | |
79 | EFI_PHYSICAL_ADDRESS EfiMemoryTop;\r | |
80 | ///\r | |
81 | /// The lowest address location of memory that is allocated for use by the HOB producer phase.\r | |
82 | ///\r | |
83 | EFI_PHYSICAL_ADDRESS EfiMemoryBottom;\r | |
84 | ///\r | |
85 | /// The highest address location of free memory that is currently available\r | |
86 | /// for use by the HOB producer phase.\r | |
87 | ///\r | |
88 | EFI_PHYSICAL_ADDRESS EfiFreeMemoryTop;\r | |
89 | ///\r | |
90 | /// The lowest address location of free memory that is available for use by the HOB producer phase.\r | |
91 | ///\r | |
92 | EFI_PHYSICAL_ADDRESS EfiFreeMemoryBottom;\r | |
93 | ///\r | |
94 | /// The end of the HOB list.\r | |
95 | ///\r | |
96 | EFI_PHYSICAL_ADDRESS EfiEndOfHobList;\r | |
97 | } EFI_HOB_HANDOFF_INFO_TABLE;\r | |
98 | \r | |
99 | ///\r | |
100 | /// EFI_HOB_MEMORY_ALLOCATION_HEADER describes the\r | |
101 | /// various attributes of the logical memory allocation. The type field will be used for\r | |
102 | /// subsequent inclusion in the UEFI memory map.\r | |
103 | ///\r | |
104 | typedef struct {\r | |
105 | ///\r | |
106 | /// A GUID that defines the memory allocation region's type and purpose, as well as\r | |
107 | /// other fields within the memory allocation HOB. This GUID is used to define the\r | |
108 | /// additional data within the HOB that may be present for the memory allocation HOB.\r | |
109 | /// Type EFI_GUID is defined in InstallProtocolInterface() in the UEFI 2.0\r | |
110 | /// specification.\r | |
111 | ///\r | |
112 | EFI_GUID Name;\r | |
113 | \r | |
114 | ///\r | |
115 | /// The base address of memory allocated by this HOB. Type\r | |
116 | /// EFI_PHYSICAL_ADDRESS is defined in AllocatePages() in the UEFI 2.0\r | |
117 | /// specification.\r | |
118 | ///\r | |
119 | EFI_PHYSICAL_ADDRESS MemoryBaseAddress;\r | |
120 | \r | |
121 | ///\r | |
122 | /// The length in bytes of memory allocated by this HOB.\r | |
123 | ///\r | |
124 | UINT64 MemoryLength;\r | |
125 | \r | |
126 | ///\r | |
127 | /// Defines the type of memory allocated by this HOB. The memory type definition\r | |
128 | /// follows the EFI_MEMORY_TYPE definition. Type EFI_MEMORY_TYPE is defined\r | |
129 | /// in AllocatePages() in the UEFI 2.0 specification.\r | |
130 | ///\r | |
131 | EFI_MEMORY_TYPE MemoryType;\r | |
132 | \r | |
133 | ///\r | |
134 | /// Padding for Itanium processor family\r | |
135 | ///\r | |
136 | UINT8 Reserved[4];\r | |
137 | } EFI_HOB_MEMORY_ALLOCATION_HEADER;\r | |
138 | \r | |
139 | ///\r | |
140 | /// Describes all memory ranges used during the HOB producer\r | |
141 | /// phase that exist outside the HOB list. This HOB type\r | |
142 | /// describes how memory is used, not the physical attributes of memory.\r | |
143 | ///\r | |
144 | typedef struct {\r | |
145 | ///\r | |
146 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_MEMORY_ALLOCATION.\r | |
147 | ///\r | |
148 | EFI_HOB_GENERIC_HEADER Header;\r | |
149 | ///\r | |
150 | /// An instance of the EFI_HOB_MEMORY_ALLOCATION_HEADER that describes the\r | |
151 | /// various attributes of the logical memory allocation.\r | |
152 | ///\r | |
153 | EFI_HOB_MEMORY_ALLOCATION_HEADER AllocDescriptor;\r | |
154 | //\r | |
155 | // Additional data pertaining to the "Name" Guid memory\r | |
156 | // may go here.\r | |
157 | //\r | |
158 | } EFI_HOB_MEMORY_ALLOCATION;\r | |
159 | \r | |
160 | ///\r | |
161 | /// Describes the memory stack that is produced by the HOB producer\r | |
162 | /// phase and upon which all post-memory-installed executable\r | |
163 | /// content in the HOB producer phase is executing.\r | |
164 | ///\r | |
165 | typedef struct {\r | |
166 | ///\r | |
167 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_MEMORY_ALLOCATION.\r | |
168 | ///\r | |
169 | EFI_HOB_GENERIC_HEADER Header;\r | |
170 | ///\r | |
171 | /// An instance of the EFI_HOB_MEMORY_ALLOCATION_HEADER that describes the\r | |
172 | /// various attributes of the logical memory allocation.\r | |
173 | ///\r | |
174 | EFI_HOB_MEMORY_ALLOCATION_HEADER AllocDescriptor;\r | |
175 | } EFI_HOB_MEMORY_ALLOCATION_STACK;\r | |
176 | \r | |
177 | ///\r | |
178 | /// Defines the location of the boot-strap\r | |
179 | /// processor (BSP) BSPStore ("Backing Store Pointer Store").\r | |
180 | /// This HOB is valid for the Itanium processor family only\r | |
181 | /// register overflow store.\r | |
182 | ///\r | |
183 | typedef struct {\r | |
184 | ///\r | |
185 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_MEMORY_ALLOCATION.\r | |
186 | ///\r | |
187 | EFI_HOB_GENERIC_HEADER Header;\r | |
188 | ///\r | |
189 | /// An instance of the EFI_HOB_MEMORY_ALLOCATION_HEADER that describes the\r | |
190 | /// various attributes of the logical memory allocation.\r | |
191 | ///\r | |
192 | EFI_HOB_MEMORY_ALLOCATION_HEADER AllocDescriptor;\r | |
193 | } EFI_HOB_MEMORY_ALLOCATION_BSP_STORE;\r | |
194 | \r | |
195 | ///\r | |
196 | /// Defines the location and entry point of the HOB consumer phase.\r | |
197 | ///\r | |
198 | typedef struct {\r | |
199 | ///\r | |
200 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_MEMORY_ALLOCATION.\r | |
201 | ///\r | |
202 | EFI_HOB_GENERIC_HEADER Header;\r | |
203 | ///\r | |
204 | /// An instance of the EFI_HOB_MEMORY_ALLOCATION_HEADER that describes the\r | |
205 | /// various attributes of the logical memory allocation.\r | |
206 | ///\r | |
207 | EFI_HOB_MEMORY_ALLOCATION_HEADER MemoryAllocationHeader;\r | |
208 | ///\r | |
209 | /// The GUID specifying the values of the firmware file system name\r | |
210 | /// that contains the HOB consumer phase component.\r | |
211 | ///\r | |
212 | EFI_GUID ModuleName;\r | |
213 | ///\r | |
214 | /// The address of the memory-mapped firmware volume\r | |
215 | /// that contains the HOB consumer phase firmware file.\r | |
216 | ///\r | |
217 | EFI_PHYSICAL_ADDRESS EntryPoint;\r | |
218 | } EFI_HOB_MEMORY_ALLOCATION_MODULE;\r | |
219 | \r | |
220 | ///\r | |
221 | /// The resource type.\r | |
222 | ///\r | |
223 | typedef UINT32 EFI_RESOURCE_TYPE;\r | |
224 | \r | |
225 | //\r | |
226 | // Value of ResourceType in EFI_HOB_RESOURCE_DESCRIPTOR.\r | |
227 | //\r | |
228 | #define EFI_RESOURCE_SYSTEM_MEMORY 0x00000000\r | |
229 | #define EFI_RESOURCE_MEMORY_MAPPED_IO 0x00000001\r | |
230 | #define EFI_RESOURCE_IO 0x00000002\r | |
231 | #define EFI_RESOURCE_FIRMWARE_DEVICE 0x00000003\r | |
232 | #define EFI_RESOURCE_MEMORY_MAPPED_IO_PORT 0x00000004\r | |
233 | #define EFI_RESOURCE_MEMORY_RESERVED 0x00000005\r | |
234 | #define EFI_RESOURCE_IO_RESERVED 0x00000006\r | |
235 | #define EFI_RESOURCE_MAX_MEMORY_TYPE 0x00000007\r | |
236 | \r | |
237 | ///\r | |
238 | /// A type of recount attribute type.\r | |
239 | ///\r | |
240 | typedef UINT32 EFI_RESOURCE_ATTRIBUTE_TYPE;\r | |
241 | \r | |
242 | //\r | |
243 | // These types can be ORed together as needed.\r | |
244 | //\r | |
245 | // The following attributes are used to describe settings\r | |
246 | //\r | |
247 | #define EFI_RESOURCE_ATTRIBUTE_PRESENT 0x00000001\r | |
248 | #define EFI_RESOURCE_ATTRIBUTE_INITIALIZED 0x00000002\r | |
249 | #define EFI_RESOURCE_ATTRIBUTE_TESTED 0x00000004\r | |
250 | #define EFI_RESOURCE_ATTRIBUTE_READ_PROTECTED 0x00000080\r | |
251 | //\r | |
252 | // This is typically used as memory cacheability attribute today.\r | |
253 | // NOTE: Since PI spec 1.4, please use EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTED\r | |
254 | // as Physical write protected attribute, and EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTED\r | |
255 | // means Memory cacheability attribute: The memory supports being programmed with\r | |
256 | // a writeprotected cacheable attribute.\r | |
257 | //\r | |
258 | #define EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTED 0x00000100\r | |
259 | #define EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTED 0x00000200\r | |
260 | #define EFI_RESOURCE_ATTRIBUTE_PERSISTENT 0x00800000\r | |
261 | //\r | |
262 | // The rest of the attributes are used to describe capabilities\r | |
263 | //\r | |
264 | #define EFI_RESOURCE_ATTRIBUTE_SINGLE_BIT_ECC 0x00000008\r | |
265 | #define EFI_RESOURCE_ATTRIBUTE_MULTIPLE_BIT_ECC 0x00000010\r | |
266 | #define EFI_RESOURCE_ATTRIBUTE_ECC_RESERVED_1 0x00000020\r | |
267 | #define EFI_RESOURCE_ATTRIBUTE_ECC_RESERVED_2 0x00000040\r | |
268 | #define EFI_RESOURCE_ATTRIBUTE_UNCACHEABLE 0x00000400\r | |
269 | #define EFI_RESOURCE_ATTRIBUTE_WRITE_COMBINEABLE 0x00000800\r | |
270 | #define EFI_RESOURCE_ATTRIBUTE_WRITE_THROUGH_CACHEABLE 0x00001000\r | |
271 | #define EFI_RESOURCE_ATTRIBUTE_WRITE_BACK_CACHEABLE 0x00002000\r | |
272 | #define EFI_RESOURCE_ATTRIBUTE_16_BIT_IO 0x00004000\r | |
273 | #define EFI_RESOURCE_ATTRIBUTE_32_BIT_IO 0x00008000\r | |
274 | #define EFI_RESOURCE_ATTRIBUTE_64_BIT_IO 0x00010000\r | |
275 | #define EFI_RESOURCE_ATTRIBUTE_UNCACHED_EXPORTED 0x00020000\r | |
276 | #define EFI_RESOURCE_ATTRIBUTE_READ_PROTECTABLE 0x00100000\r | |
277 | //\r | |
278 | // This is typically used as memory cacheability attribute today.\r | |
279 | // NOTE: Since PI spec 1.4, please use EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTABLE\r | |
280 | // as Memory capability attribute: The memory supports being protected from processor\r | |
281 | // writes, and EFI_RESOURCE_ATTRIBUTE_WRITE_PROTEC TABLE means Memory cacheability attribute:\r | |
282 | // The memory supports being programmed with a writeprotected cacheable attribute.\r | |
283 | //\r | |
284 | #define EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTABLE 0x00200000\r | |
285 | #define EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTABLE 0x00400000\r | |
286 | #define EFI_RESOURCE_ATTRIBUTE_PERSISTABLE 0x01000000\r | |
287 | \r | |
288 | #define EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTED 0x00040000\r | |
289 | #define EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTABLE 0x00080000\r | |
290 | \r | |
291 | //\r | |
292 | // Physical memory relative reliability attribute. This\r | |
293 | // memory provides higher reliability relative to other\r | |
294 | // memory in the system. If all memory has the same\r | |
295 | // reliability, then this bit is not used.\r | |
296 | //\r | |
297 | #define EFI_RESOURCE_ATTRIBUTE_MORE_RELIABLE 0x02000000\r | |
298 | \r | |
299 | ///\r | |
300 | /// Describes the resource properties of all fixed,\r | |
301 | /// nonrelocatable resource ranges found on the processor\r | |
302 | /// host bus during the HOB producer phase.\r | |
303 | ///\r | |
304 | typedef struct {\r | |
305 | ///\r | |
306 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_RESOURCE_DESCRIPTOR.\r | |
307 | ///\r | |
308 | EFI_HOB_GENERIC_HEADER Header;\r | |
309 | ///\r | |
310 | /// A GUID representing the owner of the resource. This GUID is used by HOB\r | |
311 | /// consumer phase components to correlate device ownership of a resource.\r | |
312 | ///\r | |
313 | EFI_GUID Owner;\r | |
314 | ///\r | |
315 | /// The resource type enumeration as defined by EFI_RESOURCE_TYPE.\r | |
316 | ///\r | |
317 | EFI_RESOURCE_TYPE ResourceType;\r | |
318 | ///\r | |
319 | /// Resource attributes as defined by EFI_RESOURCE_ATTRIBUTE_TYPE.\r | |
320 | ///\r | |
321 | EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute;\r | |
322 | ///\r | |
323 | /// The physical start address of the resource region.\r | |
324 | ///\r | |
325 | EFI_PHYSICAL_ADDRESS PhysicalStart;\r | |
326 | ///\r | |
327 | /// The number of bytes of the resource region.\r | |
328 | ///\r | |
329 | UINT64 ResourceLength;\r | |
330 | } EFI_HOB_RESOURCE_DESCRIPTOR;\r | |
331 | \r | |
332 | ///\r | |
333 | /// Allows writers of executable content in the HOB producer phase to\r | |
334 | /// maintain and manage HOBs with specific GUID.\r | |
335 | ///\r | |
336 | typedef struct {\r | |
337 | ///\r | |
338 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_GUID_EXTENSION.\r | |
339 | ///\r | |
340 | EFI_HOB_GENERIC_HEADER Header;\r | |
341 | ///\r | |
342 | /// A GUID that defines the contents of this HOB.\r | |
343 | ///\r | |
344 | EFI_GUID Name;\r | |
345 | //\r | |
346 | // Guid specific data goes here\r | |
347 | //\r | |
348 | } EFI_HOB_GUID_TYPE;\r | |
349 | \r | |
350 | ///\r | |
351 | /// Details the location of firmware volumes that contain firmware files.\r | |
352 | ///\r | |
353 | typedef struct {\r | |
354 | ///\r | |
355 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_FV.\r | |
356 | ///\r | |
357 | EFI_HOB_GENERIC_HEADER Header;\r | |
358 | ///\r | |
359 | /// The physical memory-mapped base address of the firmware volume.\r | |
360 | ///\r | |
361 | EFI_PHYSICAL_ADDRESS BaseAddress;\r | |
362 | ///\r | |
363 | /// The length in bytes of the firmware volume.\r | |
364 | ///\r | |
365 | UINT64 Length;\r | |
366 | } EFI_HOB_FIRMWARE_VOLUME;\r | |
367 | \r | |
368 | ///\r | |
369 | /// Details the location of a firmware volume that was extracted\r | |
370 | /// from a file within another firmware volume.\r | |
371 | ///\r | |
372 | typedef struct {\r | |
373 | ///\r | |
374 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_FV2.\r | |
375 | ///\r | |
376 | EFI_HOB_GENERIC_HEADER Header;\r | |
377 | ///\r | |
378 | /// The physical memory-mapped base address of the firmware volume.\r | |
379 | ///\r | |
380 | EFI_PHYSICAL_ADDRESS BaseAddress;\r | |
381 | ///\r | |
382 | /// The length in bytes of the firmware volume.\r | |
383 | ///\r | |
384 | UINT64 Length;\r | |
385 | ///\r | |
386 | /// The name of the firmware volume.\r | |
387 | ///\r | |
388 | EFI_GUID FvName;\r | |
389 | ///\r | |
390 | /// The name of the firmware file that contained this firmware volume.\r | |
391 | ///\r | |
392 | EFI_GUID FileName;\r | |
393 | } EFI_HOB_FIRMWARE_VOLUME2;\r | |
394 | \r | |
395 | ///\r | |
396 | /// Details the location of a firmware volume that was extracted\r | |
397 | /// from a file within another firmware volume.\r | |
398 | ///\r | |
399 | typedef struct {\r | |
400 | ///\r | |
401 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_FV3.\r | |
402 | ///\r | |
403 | EFI_HOB_GENERIC_HEADER Header;\r | |
404 | ///\r | |
405 | /// The physical memory-mapped base address of the firmware volume.\r | |
406 | ///\r | |
407 | EFI_PHYSICAL_ADDRESS BaseAddress;\r | |
408 | ///\r | |
409 | /// The length in bytes of the firmware volume.\r | |
410 | ///\r | |
411 | UINT64 Length;\r | |
412 | ///\r | |
413 | /// The authentication status.\r | |
414 | ///\r | |
415 | UINT32 AuthenticationStatus;\r | |
416 | ///\r | |
417 | /// TRUE if the FV was extracted as a file within another firmware volume.\r | |
418 | /// FALSE otherwise.\r | |
419 | ///\r | |
420 | BOOLEAN ExtractedFv;\r | |
421 | ///\r | |
422 | /// The name of the firmware volume.\r | |
423 | /// Valid only if IsExtractedFv is TRUE.\r | |
424 | ///\r | |
425 | EFI_GUID FvName;\r | |
426 | ///\r | |
427 | /// The name of the firmware file that contained this firmware volume.\r | |
428 | /// Valid only if IsExtractedFv is TRUE.\r | |
429 | ///\r | |
430 | EFI_GUID FileName;\r | |
431 | } EFI_HOB_FIRMWARE_VOLUME3;\r | |
432 | \r | |
433 | ///\r | |
434 | /// Describes processor information, such as address space and I/O space capabilities.\r | |
435 | ///\r | |
436 | typedef struct {\r | |
437 | ///\r | |
438 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_CPU.\r | |
439 | ///\r | |
440 | EFI_HOB_GENERIC_HEADER Header;\r | |
441 | ///\r | |
442 | /// Identifies the maximum physical memory addressability of the processor.\r | |
443 | ///\r | |
444 | UINT8 SizeOfMemorySpace;\r | |
445 | ///\r | |
446 | /// Identifies the maximum physical I/O addressability of the processor.\r | |
447 | ///\r | |
448 | UINT8 SizeOfIoSpace;\r | |
449 | ///\r | |
450 | /// This field will always be set to zero.\r | |
451 | ///\r | |
452 | UINT8 Reserved[6];\r | |
453 | } EFI_HOB_CPU;\r | |
454 | \r | |
455 | ///\r | |
456 | /// Describes pool memory allocations.\r | |
457 | ///\r | |
458 | typedef struct {\r | |
459 | ///\r | |
460 | /// The HOB generic header. Header.HobType = EFI_HOB_TYPE_MEMORY_POOL.\r | |
461 | ///\r | |
462 | EFI_HOB_GENERIC_HEADER Header;\r | |
463 | } EFI_HOB_MEMORY_POOL;\r | |
464 | \r | |
465 | ///\r | |
466 | /// Each UEFI capsule HOB details the location of a UEFI capsule. It includes a base address and length\r | |
467 | /// which is based upon memory blocks with a EFI_CAPSULE_HEADER and the associated\r | |
468 | /// CapsuleImageSize-based payloads. These HOB's shall be created by the PEI PI firmware\r | |
469 | /// sometime after the UEFI UpdateCapsule service invocation with the\r | |
470 | /// CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flag set in the EFI_CAPSULE_HEADER.\r | |
471 | ///\r | |
472 | typedef struct {\r | |
473 | ///\r | |
474 | /// The HOB generic header where Header.HobType = EFI_HOB_TYPE_UEFI_CAPSULE.\r | |
475 | ///\r | |
476 | EFI_HOB_GENERIC_HEADER Header;\r | |
477 | \r | |
478 | ///\r | |
479 | /// The physical memory-mapped base address of an UEFI capsule. This value is set to\r | |
480 | /// point to the base of the contiguous memory of the UEFI capsule.\r | |
481 | /// The length of the contiguous memory in bytes.\r | |
482 | ///\r | |
483 | EFI_PHYSICAL_ADDRESS BaseAddress;\r | |
484 | UINT64 Length;\r | |
485 | } EFI_HOB_UEFI_CAPSULE;\r | |
486 | \r | |
487 | ///\r | |
488 | /// Union of all the possible HOB Types.\r | |
489 | ///\r | |
490 | typedef union {\r | |
491 | EFI_HOB_GENERIC_HEADER *Header;\r | |
492 | EFI_HOB_HANDOFF_INFO_TABLE *HandoffInformationTable;\r | |
493 | EFI_HOB_MEMORY_ALLOCATION *MemoryAllocation;\r | |
494 | EFI_HOB_MEMORY_ALLOCATION_BSP_STORE *MemoryAllocationBspStore;\r | |
495 | EFI_HOB_MEMORY_ALLOCATION_STACK *MemoryAllocationStack;\r | |
496 | EFI_HOB_MEMORY_ALLOCATION_MODULE *MemoryAllocationModule;\r | |
497 | EFI_HOB_RESOURCE_DESCRIPTOR *ResourceDescriptor;\r | |
498 | EFI_HOB_GUID_TYPE *Guid;\r | |
499 | EFI_HOB_FIRMWARE_VOLUME *FirmwareVolume;\r | |
500 | EFI_HOB_FIRMWARE_VOLUME2 *FirmwareVolume2;\r | |
501 | EFI_HOB_FIRMWARE_VOLUME3 *FirmwareVolume3;\r | |
502 | EFI_HOB_CPU *Cpu;\r | |
503 | EFI_HOB_MEMORY_POOL *Pool;\r | |
504 | EFI_HOB_UEFI_CAPSULE *Capsule;\r | |
505 | UINT8 *Raw;\r | |
506 | } EFI_PEI_HOB_POINTERS;\r | |
507 | \r | |
508 | #endif\r |