2 Include file matches things in PI.
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
7 @par Revision Reference:
12 #ifndef __PI_DXECIS_H__
13 #define __PI_DXECIS_H__
15 #include <Uefi/UefiMultiPhase.h>
16 #include <Pi/PiMultiPhase.h>
19 /// Global Coherencey Domain types - Memory type.
23 /// A memory region that is visible to the boot processor. However, there are no system
24 /// components that are currently decoding this memory region.
26 EfiGcdMemoryTypeNonExistent
,
28 /// A memory region that is visible to the boot processor. This memory region is being
29 /// decoded by a system component, but the memory region is not considered to be either
30 /// system memory or memory-mapped I/O.
32 EfiGcdMemoryTypeReserved
,
34 /// A memory region that is visible to the boot processor. A memory controller is
35 /// currently decoding this memory region and the memory controller is producing a
36 /// tested system memory region that is available to the memory services.
38 EfiGcdMemoryTypeSystemMemory
,
40 /// A memory region that is visible to the boot processor. This memory region is
41 /// currently being decoded by a component as memory-mapped I/O that can be used to
42 /// access I/O devices in the platform.
44 EfiGcdMemoryTypeMemoryMappedIo
,
46 /// A memory region that is visible to the boot processor.
47 /// This memory supports byte-addressable non-volatility.
49 EfiGcdMemoryTypePersistent
,
51 // Keep original one for the compatibility.
53 EfiGcdMemoryTypePersistentMemory
= EfiGcdMemoryTypePersistent
,
55 /// A memory region that provides higher reliability relative to other memory in the
56 /// system. If all memory has the same reliability, then this bit is not used.
58 EfiGcdMemoryTypeMoreReliable
,
59 EfiGcdMemoryTypeMaximum
60 } EFI_GCD_MEMORY_TYPE
;
63 /// Global Coherencey Domain types - IO type.
67 /// An I/O region that is visible to the boot processor. However, there are no system
68 /// components that are currently decoding this I/O region.
70 EfiGcdIoTypeNonExistent
,
72 /// An I/O region that is visible to the boot processor. This I/O region is currently being
73 /// decoded by a system component, but the I/O region cannot be used to access I/O devices.
77 /// An I/O region that is visible to the boot processor. This I/O region is currently being
78 /// decoded by a system component that is producing I/O ports that can be used to access I/O devices.
85 /// The type of allocation to perform.
89 /// The GCD memory space map is searched from the lowest address up to the highest address
90 /// looking for unallocated memory ranges.
92 EfiGcdAllocateAnySearchBottomUp
,
94 /// The GCD memory space map is searched from the lowest address up
95 /// to the specified MaxAddress looking for unallocated memory ranges.
97 EfiGcdAllocateMaxAddressSearchBottomUp
,
99 /// The GCD memory space map is checked to see if the memory range starting
100 /// at the specified Address is available.
102 EfiGcdAllocateAddress
,
104 /// The GCD memory space map is searched from the highest address down to the lowest address
105 /// looking for unallocated memory ranges.
107 EfiGcdAllocateAnySearchTopDown
,
109 /// The GCD memory space map is searched from the specified MaxAddress
110 /// down to the lowest address looking for unallocated memory ranges.
112 EfiGcdAllocateMaxAddressSearchTopDown
,
113 EfiGcdMaxAllocateType
114 } EFI_GCD_ALLOCATE_TYPE
;
117 /// EFI_GCD_MEMORY_SPACE_DESCRIPTOR.
121 /// The physical address of the first byte in the memory region. Type
122 /// EFI_PHYSICAL_ADDRESS is defined in the AllocatePages() function
123 /// description in the UEFI 2.0 specification.
125 EFI_PHYSICAL_ADDRESS BaseAddress
;
128 /// The number of bytes in the memory region.
133 /// The bit mask of attributes that the memory region is capable of supporting. The bit
134 /// mask of available attributes is defined in the GetMemoryMap() function description
135 /// in the UEFI 2.0 specification.
139 /// The bit mask of attributes that the memory region is currently using. The bit mask of
140 /// available attributes is defined in GetMemoryMap().
144 /// Type of the memory region. Type EFI_GCD_MEMORY_TYPE is defined in the
145 /// AddMemorySpace() function description.
147 EFI_GCD_MEMORY_TYPE GcdMemoryType
;
150 /// The image handle of the agent that allocated the memory resource described by
151 /// PhysicalStart and NumberOfBytes. If this field is NULL, then the memory
152 /// resource is not currently allocated. Type EFI_HANDLE is defined in
153 /// InstallProtocolInterface() in the UEFI 2.0 specification.
155 EFI_HANDLE ImageHandle
;
158 /// The device handle for which the memory resource has been allocated. If
159 /// ImageHandle is NULL, then the memory resource is not currently allocated. If this
160 /// field is NULL, then the memory resource is not associated with a device that is
161 /// described by a device handle. Type EFI_HANDLE is defined in
162 /// InstallProtocolInterface() in the UEFI 2.0 specification.
164 EFI_HANDLE DeviceHandle
;
165 } EFI_GCD_MEMORY_SPACE_DESCRIPTOR
;
168 /// EFI_GCD_IO_SPACE_DESCRIPTOR.
172 /// Physical address of the first byte in the I/O region. Type
173 /// EFI_PHYSICAL_ADDRESS is defined in the AllocatePages() function
174 /// description in the UEFI 2.0 specification.
176 EFI_PHYSICAL_ADDRESS BaseAddress
;
179 /// Number of bytes in the I/O region.
184 /// Type of the I/O region. Type EFI_GCD_IO_TYPE is defined in the
185 /// AddIoSpace() function description.
187 EFI_GCD_IO_TYPE GcdIoType
;
190 /// The image handle of the agent that allocated the I/O resource described by
191 /// PhysicalStart and NumberOfBytes. If this field is NULL, then the I/O
192 /// resource is not currently allocated. Type EFI_HANDLE is defined in
193 /// InstallProtocolInterface() in the UEFI 2.0 specification.
195 EFI_HANDLE ImageHandle
;
198 /// The device handle for which the I/O resource has been allocated. If ImageHandle
199 /// is NULL, then the I/O resource is not currently allocated. If this field is NULL, then
200 /// the I/O resource is not associated with a device that is described by a device handle.
201 /// Type EFI_HANDLE is defined in InstallProtocolInterface() in the UEFI
202 /// 2.0 specification.
204 EFI_HANDLE DeviceHandle
;
205 } EFI_GCD_IO_SPACE_DESCRIPTOR
;
209 Adds reserved memory, system memory, or memory-mapped I/O resources to the
210 global coherency domain of the processor.
212 @param GcdMemoryType The type of memory resource being added.
213 @param BaseAddress The physical address that is the start address
214 of the memory resource being added.
215 @param Length The size, in bytes, of the memory resource that
217 @param Capabilities The bit mask of attributes that the memory
218 resource region supports.
220 @retval EFI_SUCCESS The memory resource was added to the global
221 coherency domain of the processor.
222 @retval EFI_INVALID_PARAMETER GcdMemoryType is invalid.
223 @retval EFI_INVALID_PARAMETER Length is zero.
224 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to add
225 the memory resource to the global coherency
226 domain of the processor.
227 @retval EFI_UNSUPPORTED The processor does not support one or more bytes
228 of the memory resource range specified by
229 BaseAddress and Length.
230 @retval EFI_ACCESS_DENIED One or more bytes of the memory resource range
231 specified by BaseAddress and Length conflicts
232 with a memory resource range that was previously
233 added to the global coherency domain of the processor.
234 @retval EFI_ACCESS_DENIED One or more bytes of the memory resource range
235 specified by BaseAddress and Length was allocated
236 in a prior call to AllocateMemorySpace().
241 (EFIAPI
*EFI_ADD_MEMORY_SPACE
)(
242 IN EFI_GCD_MEMORY_TYPE GcdMemoryType
,
243 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
245 IN UINT64 Capabilities
249 Allocates nonexistent memory, reserved memory, system memory, or memorymapped
250 I/O resources from the global coherency domain of the processor.
252 @param GcdAllocateType The type of allocation to perform.
253 @param GcdMemoryType The type of memory resource being allocated.
254 @param Alignment The log base 2 of the boundary that BaseAddress must
255 be aligned on output. Align with 2^Alignment.
256 @param Length The size in bytes of the memory resource range that
258 @param BaseAddress A pointer to a physical address to allocate.
259 @param Imagehandle The image handle of the agent that is allocating
261 @param DeviceHandle The device handle for which the memory resource
264 @retval EFI_INVALID_PARAMETER GcdAllocateType is invalid.
265 @retval EFI_INVALID_PARAMETER GcdMemoryType is invalid.
266 @retval EFI_INVALID_PARAMETER Length is zero.
267 @retval EFI_INVALID_PARAMETER BaseAddress is NULL.
268 @retval EFI_INVALID_PARAMETER ImageHandle is NULL.
269 @retval EFI_NOT_FOUND The memory resource request could not be satisfied.
270 No descriptor contains the desired space.
271 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to allocate the memory
272 resource from the global coherency domain of the processor.
273 @retval EFI_SUCCESS The memory resource was allocated from the global coherency
274 domain of the processor.
280 (EFIAPI
*EFI_ALLOCATE_MEMORY_SPACE
)(
281 IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType
,
282 IN EFI_GCD_MEMORY_TYPE GcdMemoryType
,
285 IN OUT EFI_PHYSICAL_ADDRESS
*BaseAddress
,
286 IN EFI_HANDLE ImageHandle
,
287 IN EFI_HANDLE DeviceHandle OPTIONAL
291 Frees nonexistent memory, reserved memory, system memory, or memory-mapped
292 I/O resources from the global coherency domain of the processor.
294 @param BaseAddress The physical address that is the start address of the memory resource being freed.
295 @param Length The size in bytes of the memory resource range that is being freed.
297 @retval EFI_SUCCESS The memory resource was freed from the global coherency domain of
299 @retval EFI_INVALID_PARAMETER Length is zero.
300 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
301 resource range specified by BaseAddress and Length.
302 @retval EFI_NOT_FOUND The memory resource range specified by BaseAddress and
303 Length was not allocated with previous calls to AllocateMemorySpace().
304 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to free the memory resource
305 from the global coherency domain of the processor.
310 (EFIAPI
*EFI_FREE_MEMORY_SPACE
)(
311 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
316 Removes reserved memory, system memory, or memory-mapped I/O resources from
317 the global coherency domain of the processor.
319 @param BaseAddress The physical address that is the start address of the memory resource being removed.
320 @param Length The size in bytes of the memory resource that is being removed.
322 @retval EFI_SUCCESS The memory resource was removed from the global coherency
323 domain of the processor.
324 @retval EFI_INVALID_PARAMETER Length is zero.
325 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
326 resource range specified by BaseAddress and Length.
327 @retval EFI_NOT_FOUND One or more bytes of the memory resource range specified by
328 BaseAddress and Length was not added with previous calls to
330 @retval EFI_ACCESS_DEFINED One or more bytes of the memory resource range specified by
331 BaseAddress and Length has been allocated with AllocateMemorySpace().
332 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to remove the memory
333 resource from the global coherency domain of the processor.
338 (EFIAPI
*EFI_REMOVE_MEMORY_SPACE
)(
339 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
344 Retrieves the descriptor for a memory region containing a specified address.
346 @param BaseAddress The physical address that is the start address of a memory region.
347 @param Descriptor A pointer to a caller allocated descriptor.
349 @retval EFI_SUCCESS The descriptor for the memory resource region containing
350 BaseAddress was returned in Descriptor.
351 @retval EFI_INVALID_PARAMETER Descriptor is NULL.
352 @retval EFI_NOT_FOUND A memory resource range containing BaseAddress was not found.
357 (EFIAPI
*EFI_GET_MEMORY_SPACE_DESCRIPTOR
)(
358 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
359 OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR
*Descriptor
363 Modifies the attributes for a memory region in the global coherency domain of the
366 @param BaseAddress The physical address that is the start address of a memory region.
367 @param Length The size in bytes of the memory region.
368 @param Attributes The bit mask of attributes to set for the memory region.
370 @retval EFI_SUCCESS The attributes were set for the memory region.
371 @retval EFI_INVALID_PARAMETER Length is zero.
372 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the memory
373 resource range specified by BaseAddress and Length.
374 @retval EFI_UNSUPPORTED The bit mask of attributes is not support for the memory resource
375 range specified by BaseAddress and Length.
376 @retval EFI_ACCESS_DENIED The attributes for the memory resource range specified by
377 BaseAddress and Length cannot be modified.
378 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the attributes of
379 the memory resource range.
380 @retval EFI_NOT_AVAILABLE_YET The attributes cannot be set because CPU architectural protocol is
385 (EFIAPI
*EFI_SET_MEMORY_SPACE_ATTRIBUTES
)(
386 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
392 Modifies the capabilities for a memory region in the global coherency domain of the
395 @param BaseAddress The physical address that is the start address of a memory region.
396 @param Length The size in bytes of the memory region.
397 @param Capabilities The bit mask of capabilities that the memory region supports.
399 @retval EFI_SUCCESS The capabilities were set for the memory region.
400 @retval EFI_INVALID_PARAMETER Length is zero.
401 @retval EFI_UNSUPPORTED The capabilities specified by Capabilities do not include the
402 memory region attributes currently in use.
403 @retval EFI_ACCESS_DENIED The capabilities for the memory resource range specified by
404 BaseAddress and Length cannot be modified.
405 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to modify the capabilities
406 of the memory resource range.
410 (EFIAPI
*EFI_SET_MEMORY_SPACE_CAPABILITIES
) (
411 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
413 IN UINT64 Capabilities
417 Returns a map of the memory resources in the global coherency domain of the
420 @param NumberOfDescriptors A pointer to number of descriptors returned in the MemorySpaceMap buffer.
421 @param MemorySpaceMap A pointer to the array of EFI_GCD_MEMORY_SPACE_DESCRIPTORs.
423 @retval EFI_SUCCESS The memory space map was returned in the MemorySpaceMap
424 buffer, and the number of descriptors in MemorySpaceMap was
425 returned in NumberOfDescriptors.
426 @retval EFI_INVALID_PARAMETER NumberOfDescriptors is NULL.
427 @retval EFI_INVALID_PARAMETER MemorySpaceMap is NULL.
428 @retval EFI_OUT_OF_RESOURCES There are not enough resources to allocate MemorySpaceMap.
433 (EFIAPI
*EFI_GET_MEMORY_SPACE_MAP
)(
434 OUT UINTN
*NumberOfDescriptors
,
435 OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR
**MemorySpaceMap
439 Adds reserved I/O or I/O resources to the global coherency domain of the processor.
441 @param GcdIoType The type of I/O resource being added.
442 @param BaseAddress The physical address that is the start address of the I/O resource being added.
443 @param Length The size in bytes of the I/O resource that is being added.
445 @retval EFI_SUCCESS The I/O resource was added to the global coherency domain of
447 @retval EFI_INVALID_PARAMETER GcdIoType is invalid.
448 @retval EFI_INVALID_PARAMETER Length is zero.
449 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to add the I/O resource to
450 the global coherency domain of the processor.
451 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O
452 resource range specified by BaseAddress and Length.
453 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
454 BaseAddress and Length conflicts with an I/O resource
455 range that was previously added to the global coherency domain
457 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
458 BaseAddress and Length was allocated in a prior call to
464 (EFIAPI
*EFI_ADD_IO_SPACE
)(
465 IN EFI_GCD_IO_TYPE GcdIoType
,
466 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
471 Allocates nonexistent I/O, reserved I/O, or I/O resources from the global coherency
472 domain of the processor.
474 @param GcdAllocateType The type of allocation to perform.
475 @param GcdIoType The type of I/O resource being allocated.
476 @param Alignment The log base 2 of the boundary that BaseAddress must be aligned on output.
477 @param Length The size in bytes of the I/O resource range that is being allocated.
478 @param BaseAddress A pointer to a physical address.
479 @param Imagehandle The image handle of the agent that is allocating the I/O resource.
480 @param DeviceHandle The device handle for which the I/O resource is being allocated.
482 @retval EFI_SUCCESS The I/O resource was allocated from the global coherency domain
484 @retval EFI_INVALID_PARAMETER GcdAllocateType is invalid.
485 @retval EFI_INVALID_PARAMETER GcdIoType is invalid.
486 @retval EFI_INVALID_PARAMETER Length is zero.
487 @retval EFI_INVALID_PARAMETER BaseAddress is NULL.
488 @retval EFI_INVALID_PARAMETER ImageHandle is NULL.
489 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to allocate the I/O
490 resource from the global coherency domain of the processor.
491 @retval EFI_NOT_FOUND The I/O resource request could not be satisfied.
496 (EFIAPI
*EFI_ALLOCATE_IO_SPACE
)(
497 IN EFI_GCD_ALLOCATE_TYPE GcdAllocateType
,
498 IN EFI_GCD_IO_TYPE GcdIoType
,
501 IN OUT EFI_PHYSICAL_ADDRESS
*BaseAddress
,
502 IN EFI_HANDLE ImageHandle
,
503 IN EFI_HANDLE DeviceHandle OPTIONAL
507 Frees nonexistent I/O, reserved I/O, or I/O resources from the global coherency
508 domain of the processor.
510 @param BaseAddress The physical address that is the start address of the I/O resource being freed.
511 @param Length The size in bytes of the I/O resource range that is being freed.
513 @retval EFI_SUCCESS The I/O resource was freed from the global coherency domain of the
515 @retval EFI_INVALID_PARAMETER Length is zero.
516 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O resource
517 range specified by BaseAddress and Length.
518 @retval EFI_NOT_FOUND The I/O resource range specified by BaseAddress and Length
519 was not allocated with previous calls to AllocateIoSpace().
520 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to free the I/O resource from
521 the global coherency domain of the processor.
526 (EFIAPI
*EFI_FREE_IO_SPACE
)(
527 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
532 Removes reserved I/O or I/O resources from the global coherency domain of the
535 @param BaseAddress A pointer to a physical address that is the start address of the I/O resource being
537 @param Length The size in bytes of the I/O resource that is being removed.
539 @retval EFI_SUCCESS The I/O resource was removed from the global coherency domain
541 @retval EFI_INVALID_PARAMETER Length is zero.
542 @retval EFI_UNSUPPORTED The processor does not support one or more bytes of the I/O
543 resource range specified by BaseAddress and Length.
544 @retval EFI_NOT_FOUND One or more bytes of the I/O resource range specified by
545 BaseAddress and Length was not added with previous
546 calls to AddIoSpace().
547 @retval EFI_ACCESS_DENIED One or more bytes of the I/O resource range specified by
548 BaseAddress and Length has been allocated with
550 @retval EFI_OUT_OF_RESOURCES There are not enough system resources to remove the I/O
551 resource from the global coherency domain of the processor.
556 (EFIAPI
*EFI_REMOVE_IO_SPACE
)(
557 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
562 Retrieves the descriptor for an I/O region containing a specified address.
564 @param BaseAddress The physical address that is the start address of an I/O region.
565 @param Descriptor A pointer to a caller allocated descriptor.
567 @retval EFI_SUCCESS The descriptor for the I/O resource region containing
568 BaseAddress was returned in Descriptor.
569 @retval EFI_INVALID_PARAMETER Descriptor is NULL.
570 @retval EFI_NOT_FOUND An I/O resource range containing BaseAddress was not found.
575 (EFIAPI
*EFI_GET_IO_SPACE_DESCRIPTOR
)(
576 IN EFI_PHYSICAL_ADDRESS BaseAddress
,
577 OUT EFI_GCD_IO_SPACE_DESCRIPTOR
*Descriptor
581 Returns a map of the I/O resources in the global coherency domain of the processor.
583 @param NumberOfDescriptors A pointer to number of descriptors returned in the IoSpaceMap buffer.
584 @param MemorySpaceMap A pointer to the array of EFI_GCD_IO_SPACE_DESCRIPTORs.
586 @retval EFI_SUCCESS The I/O space map was returned in the IoSpaceMap buffer, and
587 the number of descriptors in IoSpaceMap was returned in
589 @retval EFI_INVALID_PARAMETER NumberOfDescriptors is NULL.
590 @retval EFI_INVALID_PARAMETER IoSpaceMap is NULL.
591 @retval EFI_OUT_OF_RESOURCES There are not enough resources to allocate IoSpaceMap.
597 (EFIAPI
*EFI_GET_IO_SPACE_MAP
)(
598 OUT UINTN
*NumberOfDescriptors
,
599 OUT EFI_GCD_IO_SPACE_DESCRIPTOR
**IoSpaceMap
605 Loads and executed DXE drivers from firmware volumes.
607 The Dispatch() function searches for DXE drivers in firmware volumes that have been
608 installed since the last time the Dispatch() service was called. It then evaluates
609 the dependency expressions of all the DXE drivers and loads and executes those DXE
610 drivers whose dependency expression evaluate to TRUE. This service must interact with
611 the Security Architectural Protocol to authenticate DXE drivers before they are executed.
612 This process is continued until no more DXE drivers can be executed.
614 @retval EFI_SUCCESS One or more DXE driver were dispatched.
615 @retval EFI_NOT_FOUND No DXE drivers were dispatched.
616 @retval EFI_ALREADY_STARTED An attempt is being made to start the DXE Dispatcher recursively.
617 Thus, no action was taken.
622 (EFIAPI
*EFI_DISPATCH
)(
627 Clears the Schedule on Request (SOR) flag for a component that is stored in a firmware volume.
629 @param FirmwareVolumeHandle The handle of the firmware volume that contains the file specified by FileName.
630 @param FileName A pointer to the name of the file in a firmware volume.
632 @retval EFI_SUCCESS The DXE driver was found and its SOR bit was cleared.
633 @retval EFI_NOT_FOUND The DXE driver does not exist, or the DXE driver exists and its SOR
639 (EFIAPI
*EFI_SCHEDULE
)(
640 IN EFI_HANDLE FirmwareVolumeHandle
,
641 IN CONST EFI_GUID
*FileName
645 Promotes a file stored in a firmware volume from the untrusted to the trusted state.
647 @param FirmwareVolumeHandle The handle of the firmware volume that contains the file specified by FileName.
648 @param DriverName A pointer to the name of the file in a firmware volume.
650 @return Status of promoting FFS from untrusted to trusted
652 @retval EFI_NOT_FOUND The file was not found in the untrusted state.
658 IN EFI_HANDLE FirmwareVolumeHandle
,
659 IN CONST EFI_GUID
*FileName
663 Creates a firmware volume handle for a firmware volume that is present in system memory.
665 @param FirmwareVolumeHeader A pointer to the header of the firmware volume.
666 @param Size The size, in bytes, of the firmware volume.
667 @param FirmwareVolumeHandle On output, a pointer to the created handle.
669 @retval EFI_SUCCESS The EFI_FIRMWARE_VOLUME_PROTOCOL and
670 EFI_DEVICE_PATH_PROTOCOL were installed onto
671 FirmwareVolumeHandle for the firmware volume described
672 by FirmwareVolumeHeader and Size.
673 @retval EFI_VOLUME_CORRUPTED The firmware volume described by FirmwareVolumeHeader
674 and Size is corrupted.
675 @retval EFI_OUT_OF_RESOURCES There are not enough system resources available to produce the
676 EFI_FIRMWARE_VOLUME_PROTOCOL and EFI_DEVICE_PATH_PROTOCOL
677 for the firmware volume described by FirmwareVolumeHeader and Size.
682 (EFIAPI
*EFI_PROCESS_FIRMWARE_VOLUME
)(
683 IN CONST VOID
*FirmwareVolumeHeader
,
685 OUT EFI_HANDLE
*FirmwareVolumeHandle
689 // DXE Services Table
691 #define DXE_SERVICES_SIGNATURE 0x565245535f455844ULL
692 #define DXE_SPECIFICATION_MAJOR_REVISION 1
693 #define DXE_SPECIFICATION_MINOR_REVISION 60
694 #define DXE_SERVICES_REVISION ((DXE_SPECIFICATION_MAJOR_REVISION<<16) | (DXE_SPECIFICATION_MINOR_REVISION))
698 /// The table header for the DXE Services Table.
699 /// This header contains the DXE_SERVICES_SIGNATURE and DXE_SERVICES_REVISION values.
701 EFI_TABLE_HEADER Hdr
;
704 // Global Coherency Domain Services
706 EFI_ADD_MEMORY_SPACE AddMemorySpace
;
707 EFI_ALLOCATE_MEMORY_SPACE AllocateMemorySpace
;
708 EFI_FREE_MEMORY_SPACE FreeMemorySpace
;
709 EFI_REMOVE_MEMORY_SPACE RemoveMemorySpace
;
710 EFI_GET_MEMORY_SPACE_DESCRIPTOR GetMemorySpaceDescriptor
;
711 EFI_SET_MEMORY_SPACE_ATTRIBUTES SetMemorySpaceAttributes
;
712 EFI_GET_MEMORY_SPACE_MAP GetMemorySpaceMap
;
713 EFI_ADD_IO_SPACE AddIoSpace
;
714 EFI_ALLOCATE_IO_SPACE AllocateIoSpace
;
715 EFI_FREE_IO_SPACE FreeIoSpace
;
716 EFI_REMOVE_IO_SPACE RemoveIoSpace
;
717 EFI_GET_IO_SPACE_DESCRIPTOR GetIoSpaceDescriptor
;
718 EFI_GET_IO_SPACE_MAP GetIoSpaceMap
;
721 // Dispatcher Services
723 EFI_DISPATCH Dispatch
;
724 EFI_SCHEDULE Schedule
;
727 // Service to process a single firmware volume found in a capsule
729 EFI_PROCESS_FIRMWARE_VOLUME ProcessFirmwareVolume
;
731 // Extensions to Global Coherency Domain Services
733 EFI_SET_MEMORY_SPACE_CAPABILITIES SetMemorySpaceCapabilities
;
736 typedef DXE_SERVICES EFI_DXE_SERVICES
;