iPXE
PiDxeCis.h
Go to the documentation of this file.
1/** @file
2 Include file matches things in PI.
3
4Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 @par Revision Reference:
8 PI Version 1.8.A
9
10**/
11
12#pragma once
13
14FILE_LICENCE ( BSD2_PATENT );
15FILE_SECBOOT ( PERMITTED );
16
19
20///
21/// Global Coherencey Domain types - Memory type.
22///
23typedef enum {
24 ///
25 /// A memory region that is visible to the boot processor. However, there are no system
26 /// components that are currently decoding this memory region.
27 ///
29 ///
30 /// A memory region that is visible to the boot processor. This memory region is being
31 /// decoded by a system component, but the memory region is not considered to be either
32 /// system memory or memory-mapped I/O.
33 ///
35 ///
36 /// A memory region that is visible to the boot processor. A memory controller is
37 /// currently decoding this memory region and the memory controller is producing a
38 /// tested system memory region that is available to the memory services.
39 ///
41 ///
42 /// A memory region that is visible to the boot processor. This memory region is
43 /// currently being decoded by a component as memory-mapped I/O that can be used to
44 /// access I/O devices in the platform.
45 ///
47 ///
48 /// A memory region that is visible to the boot processor.
49 /// This memory supports byte-addressable non-volatility.
50 ///
52 //
53 // Keep original one for the compatibility.
54 //
56 ///
57 /// A memory region that provides higher reliability relative to other memory in the
58 /// system. If all memory has the same reliability, then this bit is not used.
59 ///
61 ///
62 /// A memory region that describes system memory that has not been accepted
63 /// by a corresponding call to the underlying isolation architecture.
64 ///
68
69///
70/// Global Coherencey Domain types - IO type.
71///
72typedef enum {
73 ///
74 /// An I/O region that is visible to the boot processor. However, there are no system
75 /// components that are currently decoding this I/O region.
76 ///
78 ///
79 /// An I/O region that is visible to the boot processor. This I/O region is currently being
80 /// decoded by a system component, but the I/O region cannot be used to access I/O devices.
81 ///
83 ///
84 /// An I/O region that is visible to the boot processor. This I/O region is currently being
85 /// decoded by a system component that is producing I/O ports that can be used to access I/O devices.
86 ///
90
91///
92/// The type of allocation to perform.
93///
94typedef enum {
95 ///
96 /// The GCD memory space map is searched from the lowest address up to the highest address
97 /// looking for unallocated memory ranges.
98 ///
100 ///
101 /// The GCD memory space map is searched from the lowest address up
102 /// to the specified MaxAddress looking for unallocated memory ranges.
103 ///
105 ///
106 /// The GCD memory space map is checked to see if the memory range starting
107 /// at the specified Address is available.
108 ///
110 ///
111 /// The GCD memory space map is searched from the highest address down to the lowest address
112 /// looking for unallocated memory ranges.
113 ///
115 ///
116 /// The GCD memory space map is searched from the specified MaxAddress
117 /// down to the lowest address looking for unallocated memory ranges.
118 ///
122
123///
124/// EFI_GCD_MEMORY_SPACE_DESCRIPTOR.
125///
126typedef struct {
127 ///
128 /// The physical address of the first byte in the memory region. Type
129 /// EFI_PHYSICAL_ADDRESS is defined in the AllocatePages() function
130 /// description in the UEFI 2.0 specification.
131 ///
133
134 ///
135 /// The number of bytes in the memory region.
136 ///
138
139 ///
140 /// The bit mask of attributes that the memory region is capable of supporting. The bit
141 /// mask of available attributes is defined in the GetMemoryMap() function description
142 /// in the UEFI 2.0 specification.
143 ///
145 ///
146 /// The bit mask of attributes that the memory region is currently using. The bit mask of
147 /// available attributes is defined in GetMemoryMap().
148 ///
150 ///
151 /// Type of the memory region. Type EFI_GCD_MEMORY_TYPE is defined in the
152 /// AddMemorySpace() function description.
153 ///
155
156 ///
157 /// The image handle of the agent that allocated the memory resource described by
158 /// PhysicalStart and NumberOfBytes. If this field is NULL, then the memory
159 /// resource is not currently allocated. Type EFI_HANDLE is defined in
160 /// InstallProtocolInterface() in the UEFI 2.0 specification.
161 ///
163
164 ///
165 /// The device handle for which the memory resource has been allocated. If
166 /// ImageHandle is NULL, then the memory resource is not currently allocated. If this
167 /// field is NULL, then the memory resource is not associated with a device that is
168 /// described by a device handle. Type EFI_HANDLE is defined in
169 /// InstallProtocolInterface() in the UEFI 2.0 specification.
170 ///
173
174///
175/// EFI_GCD_IO_SPACE_DESCRIPTOR.
176///
177typedef struct {
178 ///
179 /// Physical address of the first byte in the I/O region. Type
180 /// EFI_PHYSICAL_ADDRESS is defined in the AllocatePages() function
181 /// description in the UEFI 2.0 specification.
182 ///
184
185 ///
186 /// Number of bytes in the I/O region.
187 ///
189
190 ///
191 /// Type of the I/O region. Type EFI_GCD_IO_TYPE is defined in the
192 /// AddIoSpace() function description.
193 ///
195
196 ///
197 /// The image handle of the agent that allocated the I/O resource described by
198 /// PhysicalStart and NumberOfBytes. If this field is NULL, then the I/O
199 /// resource is not currently allocated. Type EFI_HANDLE is defined in
200 /// InstallProtocolInterface() in the UEFI 2.0 specification.
201 ///
203
204 ///
205 /// The device handle for which the I/O resource has been allocated. If ImageHandle
206 /// is NULL, then the I/O resource is not currently allocated. If this field is NULL, then
207 /// the I/O resource is not associated with a device that is described by a device handle.
208 /// Type EFI_HANDLE is defined in InstallProtocolInterface() in the UEFI
209 /// 2.0 specification.
210 ///
213
214/**
215 Adds reserved memory, system memory, or memory-mapped I/O resources to the
216 global coherency domain of the processor.
217
218 @param GcdMemoryType The type of memory resource being added.
219 @param BaseAddress The physical address that is the start address
220 of the memory resource being added.
221 @param Length The size, in bytes, of the memory resource that
222 is being added.
223 @param Capabilities The bit mask of attributes that the memory
224 resource region supports.
225
226 @retval EFI_SUCCESS The memory resource was added to the global
227 coherency domain of the processor.
228 @retval EFI_INVALID_PARAMETER GcdMemoryType is invalid.
229 @retval EFI_INVALID_PARAMETER Length is zero.
230 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to add
231 the memory resource to the global coherency
232 domain of the processor.
233 @retval EFI_UNSUPPORTED The processor does not support one or more bytes
234 of the memory resource range specified by
235 BaseAddress and Length.
236 @retval EFI_ACCESS_DENIED One or more bytes of the memory resource range
237 specified by BaseAddress and Length conflicts
238 with a memory resource range that was previously
239 added to the global coherency domain of the processor.
240 @retval EFI_ACCESS_DENIED One or more bytes of the memory resource range
241 specified by BaseAddress and Length was allocated
242 in a prior call to AllocateMemorySpace().
243
244**/
245typedef
248 IN EFI_GCD_MEMORY_TYPE GcdMemoryType,
251 IN UINT64 Capabilities
252 );
253
254/**
255 Allocates nonexistent memory, reserved memory, system memory, or memorymapped
256 I/O resources from the global coherency domain of the processor.
257
258 @param GcdAllocateType The type of allocation to perform.
259 @param GcdMemoryType The type of memory resource being allocated.
260 @param Alignment The log base 2 of the boundary that BaseAddress must
261 be aligned on output. Align with 2^Alignment.
262 @param Length The size in bytes of the memory resource range that
263 is being allocated.
264 @param BaseAddress A pointer to a physical address to allocate.
265 @param Imagehandle The image handle of the agent that is allocating
266 the memory resource.
267 @param DeviceHandle The device handle for which the memory resource
268 is being allocated.
269
270 @retval EFI_INVALID_PARAMETER GcdAllocateType is invalid.
271 @retval EFI_INVALID_PARAMETER GcdMemoryType is invalid.
272 @retval EFI_INVALID_PARAMETER Length is zero.
273 @retval EFI_INVALID_PARAMETER BaseAddress is NULL.
274 @retval EFI_INVALID_PARAMETER ImageHandle is NULL.
275 @retval EFI_NOT_FOUND The memory resource request could not be satisfied.
276 No descriptor contains the desired space.
277 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to allocate the memory
278 resource from the global coherency domain of the processor.
279 @retval EFI_SUCCESS The memory resource was allocated from the global coherency
280 domain of the processor.
281
282
283**/
284typedef
287 IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType,
288 IN EFI_GCD_MEMORY_TYPE GcdMemoryType,
292 IN EFI_HANDLE ImageHandle,
293 IN EFI_HANDLE DeviceHandle OPTIONAL
294 );
295
296/**
297 Frees nonexistent memory, reserved memory, system memory, or memory-mapped
298 I/O resources from the global coherency domain of the processor.
299
300 @param BaseAddress The physical address that is the start address of the memory resource being freed.
301 @param Length The size in bytes of the memory resource range that is being freed.
302
303 @retval EFI_SUCCESS The memory resource was freed from the global coherency domain of
304 the processor.
305 @retval EFI_INVALID_PARAMETER Length is zero.
306 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
307 resource range specified by BaseAddress and Length.
308 @retval EFI_NOT_FOUND The memory resource range specified by BaseAddress and
309 Length was not allocated with previous calls to AllocateMemorySpace().
310 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to free the memory resource
311 from the global coherency domain of the processor.
312
313**/
314typedef
319 );
320
321/**
322 Removes reserved memory, system memory, or memory-mapped I/O resources from
323 the global coherency domain of the processor.
324
325 @param BaseAddress The physical address that is the start address of the memory resource being removed.
326 @param Length The size in bytes of the memory resource that is being removed.
327
328 @retval EFI_SUCCESS The memory resource was removed from the global coherency
329 domain of the processor.
330 @retval EFI_INVALID_PARAMETER Length is zero.
331 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
332 resource range specified by BaseAddress and Length.
333 @retval EFI_NOT_FOUND One or more bytes of the memory resource range specified by
334 BaseAddress and Length was not added with previous calls to
335 AddMemorySpace().
336 @retval EFI_ACCESS_DEFINED One or more bytes of the memory resource range specified by
337 BaseAddress and Length has been allocated with AllocateMemorySpace().
338 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to remove the memory
339 resource from the global coherency domain of the processor.
340
341**/
342typedef
347 );
348
349/**
350 Retrieves the descriptor for a memory region containing a specified address.
351
352 @param BaseAddress The physical address that is the start address of a memory region.
353 @param Descriptor A pointer to a caller allocated descriptor.
354
355 @retval EFI_SUCCESS The descriptor for the memory resource region containing
356 BaseAddress was returned in Descriptor.
357 @retval EFI_INVALID_PARAMETER Descriptor is NULL.
358 @retval EFI_NOT_FOUND A memory resource range containing BaseAddress was not found.
359
360**/
361typedef
366 );
367
368/**
369 Modifies the attributes for a memory region in the global coherency domain of the
370 processor.
371
372 @param BaseAddress The physical address that is the start address of a memory region.
373 @param Length The size in bytes of the memory region.
374 @param Attributes The bit mask of attributes to set for the memory region.
375
376 @retval EFI_SUCCESS The attributes were set for the memory region.
377 @retval EFI_INVALID_PARAMETER Length is zero.
378 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
379 resource range specified by BaseAddress and Length.
380 @retval EFI_UNSUPPORTED The bit mask of attributes is not support for the memory resource
381 range specified by BaseAddress and Length.
382 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
383 BaseAddress and Length cannot be modified.
384 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
385 the memory resource range.
386 @retval EFI_NOT_AVAILABLE_YET The attributes cannot be set because CPU architectural protocol is
387 not available yet.
388**/
389typedef
394 IN UINT64 Attributes
395 );
396
397/**
398 Modifies the capabilities for a memory region in the global coherency domain of the
399 processor.
400
401 @param BaseAddress The physical address that is the start address of a memory region.
402 @param Length The size in bytes of the memory region.
403 @param Capabilities The bit mask of capabilities that the memory region supports.
404
405 @retval EFI_SUCCESS The capabilities were set for the memory region.
406 @retval EFI_INVALID_PARAMETER Length is zero.
407 @retval EFI_UNSUPPORTED The capabilities specified by Capabilities do not include the
408 memory region attributes currently in use.
409 @retval EFI_ACCESS_DENIED The capabilities for the memory resource range specified by
410 BaseAddress and Length cannot be modified.
411 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the capabilities
412 of the memory resource range.
413**/
414typedef
419 IN UINT64 Capabilities
420 );
421
422/**
423 Returns a map of the memory resources in the global coherency domain of the
424 processor.
425
426 @param NumberOfDescriptors A pointer to number of descriptors returned in the MemorySpaceMap buffer.
427 @param MemorySpaceMap A pointer to the array of EFI_GCD_MEMORY_SPACE_DESCRIPTORs.
428
429 @retval EFI_SUCCESS The memory space map was returned in the MemorySpaceMap
430 buffer, and the number of descriptors in MemorySpaceMap was
431 returned in NumberOfDescriptors.
432 @retval EFI_INVALID_PARAMETER NumberOfDescriptors is NULL.
433 @retval EFI_INVALID_PARAMETER MemorySpaceMap is NULL.
434 @retval EFI_OUT_OF_RESOURCES There are not enough resources to allocate MemorySpaceMap.
435
436**/
437typedef
440 OUT UINTN *NumberOfDescriptors,
441 OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap
442 );
443
444/**
445 Adds reserved I/O or I/O resources to the global coherency domain of the processor.
446
447 @param GcdIoType The type of I/O resource being added.
448 @param BaseAddress The physical address that is the start address of the I/O resource being added.
449 @param Length The size in bytes of the I/O resource that is being added.
450
451 @retval EFI_SUCCESS The I/O resource was added to the global coherency domain of
452 the processor.
453 @retval EFI_INVALID_PARAMETER GcdIoType is invalid.
454 @retval EFI_INVALID_PARAMETER Length is zero.
455 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to add the I/O resource to
456 the global coherency domain of the processor.
457 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O
458 resource range specified by BaseAddress and Length.
459 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
460 BaseAddress and Length conflicts with an I/O resource
461 range that was previously added to the global coherency domain
462 of the processor.
463 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
464 BaseAddress and Length was allocated in a prior call to
465 AllocateIoSpace().
466
467**/
468typedef
471 IN EFI_GCD_IO_TYPE GcdIoType,
474 );
475
476/**
477 Allocates nonexistent I/O, reserved I/O, or I/O resources from the global coherency
478 domain of the processor.
479
480 @param GcdAllocateType The type of allocation to perform.
481 @param GcdIoType The type of I/O resource being allocated.
482 @param Alignment The log base 2 of the boundary that BaseAddress must be aligned on output.
483 @param Length The size in bytes of the I/O resource range that is being allocated.
484 @param BaseAddress A pointer to a physical address.
485 @param Imagehandle The image handle of the agent that is allocating the I/O resource.
486 @param DeviceHandle The device handle for which the I/O resource is being allocated.
487
488 @retval EFI_SUCCESS The I/O resource was allocated from the global coherency domain
489 of the processor.
490 @retval EFI_INVALID_PARAMETER GcdAllocateType is invalid.
491 @retval EFI_INVALID_PARAMETER GcdIoType is invalid.
492 @retval EFI_INVALID_PARAMETER Length is zero.
493 @retval EFI_INVALID_PARAMETER BaseAddress is NULL.
494 @retval EFI_INVALID_PARAMETER ImageHandle is NULL.
495 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to allocate the I/O
496 resource from the global coherency domain of the processor.
497 @retval EFI_NOT_FOUND The I/O resource request could not be satisfied.
498
499**/
500typedef
503 IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType,
504 IN EFI_GCD_IO_TYPE GcdIoType,
508 IN EFI_HANDLE ImageHandle,
509 IN EFI_HANDLE DeviceHandle OPTIONAL
510 );
511
512/**
513 Frees nonexistent I/O, reserved I/O, or I/O resources from the global coherency
514 domain of the processor.
515
516 @param BaseAddress The physical address that is the start address of the I/O resource being freed.
517 @param Length The size in bytes of the I/O resource range that is being freed.
518
519 @retval EFI_SUCCESS The I/O resource was freed from the global coherency domain of the
520 processor.
521 @retval EFI_INVALID_PARAMETER Length is zero.
522 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O resource
523 range specified by BaseAddress and Length.
524 @retval EFI_NOT_FOUND The I/O resource range specified by BaseAddress and Length
525 was not allocated with previous calls to AllocateIoSpace().
526 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to free the I/O resource from
527 the global coherency domain of the processor.
528
529**/
530typedef
535 );
536
537/**
538 Removes reserved I/O or I/O resources from the global coherency domain of the
539 processor.
540
541 @param BaseAddress A pointer to a physical address that is the start address of the I/O resource being
542 removed.
543 @param Length The size in bytes of the I/O resource that is being removed.
544
545 @retval EFI_SUCCESS The I/O resource was removed from the global coherency domain
546 of the processor.
547 @retval EFI_INVALID_PARAMETER Length is zero.
548 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O
549 resource range specified by BaseAddress and Length.
550 @retval EFI_NOT_FOUND One or more bytes of the I/O resource range specified by
551 BaseAddress and Length was not added with previous
552 calls to AddIoSpace().
553 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
554 BaseAddress and Length has been allocated with
555 AllocateIoSpace().
556 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to remove the I/O
557 resource from the global coherency domain of the processor.
558
559**/
560typedef
565 );
566
567/**
568 Retrieves the descriptor for an I/O region containing a specified address.
569
570 @param BaseAddress The physical address that is the start address of an I/O region.
571 @param Descriptor A pointer to a caller allocated descriptor.
572
573 @retval EFI_SUCCESS The descriptor for the I/O resource region containing
574 BaseAddress was returned in Descriptor.
575 @retval EFI_INVALID_PARAMETER Descriptor is NULL.
576 @retval EFI_NOT_FOUND An I/O resource range containing BaseAddress was not found.
577
578**/
579typedef
584 );
585
586/**
587 Returns a map of the I/O resources in the global coherency domain of the processor.
588
589 @param NumberOfDescriptors A pointer to number of descriptors returned in the IoSpaceMap buffer.
590 @param MemorySpaceMap A pointer to the array of EFI_GCD_IO_SPACE_DESCRIPTORs.
591
592 @retval EFI_SUCCESS The I/O space map was returned in the IoSpaceMap buffer, and
593 the number of descriptors in IoSpaceMap was returned in
594 NumberOfDescriptors.
595 @retval EFI_INVALID_PARAMETER NumberOfDescriptors is NULL.
596 @retval EFI_INVALID_PARAMETER IoSpaceMap is NULL.
597 @retval EFI_OUT_OF_RESOURCES There are not enough resources to allocate IoSpaceMap.
598
599
600**/
601typedef
604 OUT UINTN *NumberOfDescriptors,
606 );
607
608/**
609 Loads and executed DXE drivers from firmware volumes.
610
611 The Dispatch() function searches for DXE drivers in firmware volumes that have been
612 installed since the last time the Dispatch() service was called. It then evaluates
613 the dependency expressions of all the DXE drivers and loads and executes those DXE
614 drivers whose dependency expression evaluate to TRUE. This service must interact with
615 the Security Architectural Protocol to authenticate DXE drivers before they are executed.
616 This process is continued until no more DXE drivers can be executed.
617
618 @retval EFI_SUCCESS One or more DXE driver were dispatched.
619 @retval EFI_NOT_FOUND No DXE drivers were dispatched.
620 @retval EFI_ALREADY_STARTED An attempt is being made to start the DXE Dispatcher recursively.
621 Thus, no action was taken.
622
623**/
624typedef
627 VOID
628 );
629
630/**
631 Clears the Schedule on Request (SOR) flag for a component that is stored in a firmware volume.
632
633 @param FirmwareVolumeHandle The handle of the firmware volume that contains the file specified by FileName.
634 @param FileName A pointer to the name of the file in a firmware volume.
635
636 @retval EFI_SUCCESS The DXE driver was found and its SOR bit was cleared.
637 @retval EFI_NOT_FOUND The DXE driver does not exist, or the DXE driver exists and its SOR
638 bit is not set.
639
640**/
641typedef
644 IN EFI_HANDLE FirmwareVolumeHandle,
646 );
647
648/**
649 Promotes a file stored in a firmware volume from the untrusted to the trusted state.
650
651 @param FirmwareVolumeHandle The handle of the firmware volume that contains the file specified by FileName.
652 @param DriverName A pointer to the name of the file in a firmware volume.
653
654 @return Status of promoting FFS from untrusted to trusted
655 state.
656 @retval EFI_NOT_FOUND The file was not found in the untrusted state.
657
658**/
659typedef
662 IN EFI_HANDLE FirmwareVolumeHandle,
664 );
665
666/**
667 Creates a firmware volume handle for a firmware volume that is present in system memory.
668
669 @param FirmwareVolumeHeader A pointer to the header of the firmware volume.
670 @param Size The size, in bytes, of the firmware volume.
671 @param FirmwareVolumeHandle On output, a pointer to the created handle.
672
673 @retval EFI_SUCCESS The EFI_FIRMWARE_VOLUME_PROTOCOL and
674 EFI_DEVICE_PATH_PROTOCOL were installed onto
675 FirmwareVolumeHandle for the firmware volume described
676 by FirmwareVolumeHeader and Size.
677 @retval EFI_VOLUME_CORRUPTED The firmware volume described by FirmwareVolumeHeader
678 and Size is corrupted.
679 @retval EFI_OUT_OF_RESOURCES There are not enough system resources available to produce the
680 EFI_FIRMWARE_VOLUME_PROTOCOL and EFI_DEVICE_PATH_PROTOCOL
681 for the firmware volume described by FirmwareVolumeHeader and Size.
682
683**/
684typedef
687 IN CONST VOID *FirmwareVolumeHeader,
688 IN UINTN Size,
689 OUT EFI_HANDLE *FirmwareVolumeHandle
690 );
691
692//
693// DXE Services Table
694//
695#define DXE_SERVICES_SIGNATURE 0x565245535f455844ULL
696#define DXE_SPECIFICATION_MAJOR_REVISION PI_SPECIFICATION_MAJOR_REVISION
697#define DXE_SPECIFICATION_MINOR_REVISION PI_SPECIFICATION_MINOR_REVISION
698#define DXE_SERVICES_REVISION ((DXE_SPECIFICATION_MAJOR_REVISION<<16) | (DXE_SPECIFICATION_MINOR_REVISION))
699
739
UINT64 UINTN
Unsigned value of native width.
unsigned long long UINT64
8-byte unsigned value.
#define EFIAPI
UINT16 BaseAddress
Definition Acpi10.h:194
UINT8 Alignment
Definition Acpi10.h:185
#define CONST
Datum is read-only.
Definition Base.h:261
#define VOID
Undeclared type.
Definition Base.h:271
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition Base.h:292
EFI_STATUS(EFIAPI * EFI_SET_MEMORY_SPACE_CAPABILITIES)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Capabilities)
Modifies the capabilities for a memory region in the global coherency domain of the processor.
Definition PiDxeCis.h:416
EFI_STATUS(EFIAPI * EFI_SCHEDULE)(IN EFI_HANDLE FirmwareVolumeHandle, IN CONST EFI_GUID *FileName)
Clears the Schedule on Request (SOR) flag for a component that is stored in a firmware volume.
Definition PiDxeCis.h:643
EFI_STATUS(EFIAPI * EFI_FREE_IO_SPACE)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Frees nonexistent I/O, reserved I/O, or I/O resources from the global coherency domain of the process...
Definition PiDxeCis.h:532
EFI_STATUS(EFIAPI * EFI_GET_MEMORY_SPACE_MAP)(OUT UINTN *NumberOfDescriptors, OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap)
Returns a map of the memory resources in the global coherency domain of the processor.
Definition PiDxeCis.h:439
EFI_GCD_MEMORY_TYPE
Global Coherencey Domain types - Memory type.
Definition PiDxeCis.h:23
@ EfiGcdMemoryTypeReserved
A memory region that is visible to the boot processor.
Definition PiDxeCis.h:34
@ EfiGcdMemoryTypeNonExistent
A memory region that is visible to the boot processor.
Definition PiDxeCis.h:28
@ EfiGcdMemoryTypePersistent
A memory region that is visible to the boot processor.
Definition PiDxeCis.h:51
@ EfiGcdMemoryTypeMoreReliable
A memory region that provides higher reliability relative to other memory in the system.
Definition PiDxeCis.h:60
@ EfiGcdMemoryTypeMaximum
Definition PiDxeCis.h:66
@ EfiGcdMemoryTypeUnaccepted
A memory region that describes system memory that has not been accepted by a corresponding call to th...
Definition PiDxeCis.h:65
@ EfiGcdMemoryTypeSystemMemory
A memory region that is visible to the boot processor.
Definition PiDxeCis.h:40
@ EfiGcdMemoryTypeMemoryMappedIo
A memory region that is visible to the boot processor.
Definition PiDxeCis.h:46
@ EfiGcdMemoryTypePersistentMemory
Definition PiDxeCis.h:55
EFI_STATUS(EFIAPI * EFI_PROCESS_FIRMWARE_VOLUME)(IN CONST VOID *FirmwareVolumeHeader, IN UINTN Size, OUT EFI_HANDLE *FirmwareVolumeHandle)
Creates a firmware volume handle for a firmware volume that is present in system memory.
Definition PiDxeCis.h:686
DXE_SERVICES EFI_DXE_SERVICES
Definition PiDxeCis.h:740
EFI_GCD_ALLOCATE_TYPE
The type of allocation to perform.
Definition PiDxeCis.h:94
@ EfiGcdAllocateMaxAddressSearchBottomUp
The GCD memory space map is searched from the lowest address up to the specified MaxAddress looking f...
Definition PiDxeCis.h:104
@ EfiGcdAllocateMaxAddressSearchTopDown
The GCD memory space map is searched from the specified MaxAddress down to the lowest address looking...
Definition PiDxeCis.h:119
@ EfiGcdAllocateAnySearchTopDown
The GCD memory space map is searched from the highest address down to the lowest address looking for ...
Definition PiDxeCis.h:114
@ EfiGcdAllocateAddress
The GCD memory space map is checked to see if the memory range starting at the specified Address is a...
Definition PiDxeCis.h:109
@ EfiGcdAllocateAnySearchBottomUp
The GCD memory space map is searched from the lowest address up to the highest address looking for un...
Definition PiDxeCis.h:99
@ EfiGcdMaxAllocateType
Definition PiDxeCis.h:120
EFI_STATUS(EFIAPI * EFI_SET_MEMORY_SPACE_ATTRIBUTES)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes)
Modifies the attributes for a memory region in the global coherency domain of the processor.
Definition PiDxeCis.h:391
EFI_STATUS(EFIAPI * EFI_ADD_MEMORY_SPACE)(IN EFI_GCD_MEMORY_TYPE GcdMemoryType, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Capabilities)
Adds reserved memory, system memory, or memory-mapped I/O resources to the global coherency domain of...
Definition PiDxeCis.h:247
EFI_STATUS(EFIAPI * EFI_REMOVE_IO_SPACE)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Removes reserved I/O or I/O resources from the global coherency domain of the processor.
Definition PiDxeCis.h:562
EFI_GCD_IO_TYPE
Global Coherencey Domain types - IO type.
Definition PiDxeCis.h:72
@ EfiGcdIoTypeNonExistent
An I/O region that is visible to the boot processor.
Definition PiDxeCis.h:77
@ EfiGcdIoTypeMaximum
Definition PiDxeCis.h:88
@ EfiGcdIoTypeReserved
An I/O region that is visible to the boot processor.
Definition PiDxeCis.h:82
@ EfiGcdIoTypeIo
An I/O region that is visible to the boot processor.
Definition PiDxeCis.h:87
EFI_STATUS(EFIAPI * EFI_GET_IO_SPACE_MAP)(OUT UINTN *NumberOfDescriptors, OUT EFI_GCD_IO_SPACE_DESCRIPTOR **IoSpaceMap)
Returns a map of the I/O resources in the global coherency domain of the processor.
Definition PiDxeCis.h:603
EFI_STATUS(EFIAPI * EFI_DISPATCH)(VOID)
Loads and executed DXE drivers from firmware volumes.
Definition PiDxeCis.h:626
EFI_STATUS(EFIAPI * EFI_FREE_MEMORY_SPACE)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Frees nonexistent memory, reserved memory, system memory, or memory-mapped I/O resources from the glo...
Definition PiDxeCis.h:316
EFI_STATUS(EFIAPI * EFI_REMOVE_MEMORY_SPACE)(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Removes reserved memory, system memory, or memory-mapped I/O resources from the global coherency doma...
Definition PiDxeCis.h:344
EFI_STATUS(EFIAPI * EFI_ALLOCATE_MEMORY_SPACE)(IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType, IN EFI_GCD_MEMORY_TYPE GcdMemoryType, IN UINTN Alignment, IN UINT64 Length, IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress, IN EFI_HANDLE ImageHandle, IN EFI_HANDLE DeviceHandle OPTIONAL)
Allocates nonexistent memory, reserved memory, system memory, or memorymapped I/O resources from the ...
Definition PiDxeCis.h:286
EFI_STATUS(EFIAPI * EFI_TRUST)(IN EFI_HANDLE FirmwareVolumeHandle, IN CONST EFI_GUID *FileName)
Promotes a file stored in a firmware volume from the untrusted to the trusted state.
Definition PiDxeCis.h:661
EFI_STATUS(EFIAPI * EFI_ALLOCATE_IO_SPACE)(IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType, IN EFI_GCD_IO_TYPE GcdIoType, IN UINTN Alignment, IN UINT64 Length, IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress, IN EFI_HANDLE ImageHandle, IN EFI_HANDLE DeviceHandle OPTIONAL)
Allocates nonexistent I/O, reserved I/O, or I/O resources from the global coherency domain of the pro...
Definition PiDxeCis.h:502
EFI_STATUS(EFIAPI * EFI_ADD_IO_SPACE)(IN EFI_GCD_IO_TYPE GcdIoType, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Adds reserved I/O or I/O resources to the global coherency domain of the processor.
Definition PiDxeCis.h:470
EFI_STATUS(EFIAPI * EFI_GET_IO_SPACE_DESCRIPTOR)(IN EFI_PHYSICAL_ADDRESS BaseAddress, OUT EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor)
Retrieves the descriptor for an I/O region containing a specified address.
Definition PiDxeCis.h:581
EFI_STATUS(EFIAPI * EFI_GET_MEMORY_SPACE_DESCRIPTOR)(IN EFI_PHYSICAL_ADDRESS BaseAddress, OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor)
Retrieves the descriptor for a memory region containing a specified address.
Definition PiDxeCis.h:363
Include file matches things in PI for multiple module types.
UINT64 EFI_PHYSICAL_ADDRESS
64-bit physical memory address.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
This includes some definitions introduced in UEFI that will be used in both PEI and DXE phases.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:921
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:951
#define EFI_HANDLE
Definition efi.h:53
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
UINT8_t FileName[128]
File name.
Definition pxe_api.h:3
UINT8_t Length
Length of this structure.
Definition pxe_api.h:13
UINT16_t Size
Size of structure.
Definition pxe_api.h:1
EFI_ADD_IO_SPACE AddIoSpace
Definition PiDxeCis.h:717
EFI_SET_MEMORY_SPACE_ATTRIBUTES SetMemorySpaceAttributes
Definition PiDxeCis.h:715
EFI_ALLOCATE_MEMORY_SPACE AllocateMemorySpace
Definition PiDxeCis.h:711
EFI_FREE_IO_SPACE FreeIoSpace
Definition PiDxeCis.h:719
EFI_TRUST Trust
Definition PiDxeCis.h:729
EFI_ALLOCATE_IO_SPACE AllocateIoSpace
Definition PiDxeCis.h:718
EFI_GET_IO_SPACE_MAP GetIoSpaceMap
Definition PiDxeCis.h:722
EFI_GET_MEMORY_SPACE_MAP GetMemorySpaceMap
Definition PiDxeCis.h:716
EFI_ADD_MEMORY_SPACE AddMemorySpace
Definition PiDxeCis.h:710
EFI_GET_MEMORY_SPACE_DESCRIPTOR GetMemorySpaceDescriptor
Definition PiDxeCis.h:714
EFI_REMOVE_IO_SPACE RemoveIoSpace
Definition PiDxeCis.h:720
EFI_REMOVE_MEMORY_SPACE RemoveMemorySpace
Definition PiDxeCis.h:713
EFI_GET_IO_SPACE_DESCRIPTOR GetIoSpaceDescriptor
Definition PiDxeCis.h:721
EFI_TABLE_HEADER Hdr
The table header for the DXE Services Table.
Definition PiDxeCis.h:705
EFI_SET_MEMORY_SPACE_CAPABILITIES SetMemorySpaceCapabilities
Definition PiDxeCis.h:737
EFI_SCHEDULE Schedule
Definition PiDxeCis.h:728
EFI_DISPATCH Dispatch
Definition PiDxeCis.h:727
EFI_FREE_MEMORY_SPACE FreeMemorySpace
Definition PiDxeCis.h:712
EFI_PROCESS_FIRMWARE_VOLUME ProcessFirmwareVolume
Definition PiDxeCis.h:733
EFI_GCD_IO_SPACE_DESCRIPTOR.
Definition PiDxeCis.h:177
EFI_HANDLE ImageHandle
The image handle of the agent that allocated the I/O resource described by PhysicalStart and NumberOf...
Definition PiDxeCis.h:202
EFI_PHYSICAL_ADDRESS BaseAddress
Physical address of the first byte in the I/O region.
Definition PiDxeCis.h:183
UINT64 Length
Number of bytes in the I/O region.
Definition PiDxeCis.h:188
EFI_HANDLE DeviceHandle
The device handle for which the I/O resource has been allocated.
Definition PiDxeCis.h:211
EFI_GCD_IO_TYPE GcdIoType
Type of the I/O region.
Definition PiDxeCis.h:194
EFI_GCD_MEMORY_SPACE_DESCRIPTOR.
Definition PiDxeCis.h:126
EFI_GCD_MEMORY_TYPE GcdMemoryType
Type of the memory region.
Definition PiDxeCis.h:154
UINT64 Attributes
The bit mask of attributes that the memory region is currently using.
Definition PiDxeCis.h:149
EFI_HANDLE DeviceHandle
The device handle for which the memory resource has been allocated.
Definition PiDxeCis.h:171
EFI_HANDLE ImageHandle
The image handle of the agent that allocated the memory resource described by PhysicalStart and Numbe...
Definition PiDxeCis.h:162
EFI_PHYSICAL_ADDRESS BaseAddress
The physical address of the first byte in the memory region.
Definition PiDxeCis.h:132
UINT64 Length
The number of bytes in the memory region.
Definition PiDxeCis.h:137
UINT64 Capabilities
The bit mask of attributes that the memory region is capable of supporting.
Definition PiDxeCis.h:144
Data structure that precedes all of the standard EFI table types.