MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -33,24 +33,24 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// The forward declaration for EFI_PEI_RECOVERY_BLOCK_IO_PPI.
|
||||
///
|
||||
typedef struct _EFI_PEI_RECOVERY_BLOCK_IO_PPI EFI_PEI_RECOVERY_BLOCK_IO_PPI;
|
||||
typedef struct _EFI_PEI_RECOVERY_BLOCK_IO_PPI EFI_PEI_RECOVERY_BLOCK_IO_PPI;
|
||||
|
||||
///
|
||||
/// All blocks on the recovery device are addressed with a 64-bit Logical Block Address (LBA).
|
||||
///
|
||||
typedef UINT64 EFI_PEI_LBA;
|
||||
typedef UINT64 EFI_PEI_LBA;
|
||||
|
||||
///
|
||||
/// EFI_PEI_BLOCK_DEVICE_TYPE
|
||||
///
|
||||
typedef enum {
|
||||
LegacyFloppy = 0, ///< The recovery device is a floppy.
|
||||
IdeCDROM = 1, ///< The recovery device is an IDE CD-ROM
|
||||
IdeLS120 = 2, ///< The recovery device is an IDE LS-120
|
||||
UsbMassStorage= 3, ///< The recovery device is a USB Mass Storage device
|
||||
SD = 4, ///< The recovery device is a Secure Digital device
|
||||
EMMC = 5, ///< The recovery device is a eMMC device
|
||||
UfsDevice = 6, ///< The recovery device is a Universal Flash Storage device
|
||||
LegacyFloppy = 0, ///< The recovery device is a floppy.
|
||||
IdeCDROM = 1, ///< The recovery device is an IDE CD-ROM
|
||||
IdeLS120 = 2, ///< The recovery device is an IDE LS-120
|
||||
UsbMassStorage = 3, ///< The recovery device is a USB Mass Storage device
|
||||
SD = 4, ///< The recovery device is a Secure Digital device
|
||||
EMMC = 5, ///< The recovery device is a eMMC device
|
||||
UfsDevice = 6, ///< The recovery device is a Universal Flash Storage device
|
||||
MaxDeviceType
|
||||
} EFI_PEI_BLOCK_DEVICE_TYPE;
|
||||
|
||||
@@ -68,20 +68,20 @@ typedef struct {
|
||||
///
|
||||
/// The type of media device being referenced by DeviceIndex.
|
||||
///
|
||||
EFI_PEI_BLOCK_DEVICE_TYPE DeviceType;
|
||||
EFI_PEI_BLOCK_DEVICE_TYPE DeviceType;
|
||||
///
|
||||
/// A flag that indicates if media is present. This flag is always set for
|
||||
/// nonremovable media devices.
|
||||
///
|
||||
BOOLEAN MediaPresent;
|
||||
BOOLEAN MediaPresent;
|
||||
///
|
||||
/// The last logical block that the device supports.
|
||||
///
|
||||
UINTN LastBlock;
|
||||
UINTN LastBlock;
|
||||
///
|
||||
/// The size of a logical block in bytes.
|
||||
///
|
||||
UINTN BlockSize;
|
||||
UINTN BlockSize;
|
||||
} EFI_PEI_BLOCK_IO_MEDIA;
|
||||
|
||||
/**
|
||||
@@ -214,19 +214,19 @@ struct _EFI_PEI_RECOVERY_BLOCK_IO_PPI {
|
||||
///
|
||||
/// Gets the number of block I/O devices that the specific block driver manages.
|
||||
///
|
||||
EFI_PEI_GET_NUMBER_BLOCK_DEVICES GetNumberOfBlockDevices;
|
||||
EFI_PEI_GET_NUMBER_BLOCK_DEVICES GetNumberOfBlockDevices;
|
||||
|
||||
///
|
||||
/// Gets the specified media information.
|
||||
///
|
||||
EFI_PEI_GET_DEVICE_MEDIA_INFORMATION GetBlockDeviceMediaInfo;
|
||||
EFI_PEI_GET_DEVICE_MEDIA_INFORMATION GetBlockDeviceMediaInfo;
|
||||
|
||||
///
|
||||
/// Reads the requested number of blocks from the specified block device.
|
||||
///
|
||||
EFI_PEI_READ_BLOCKS ReadBlocks;
|
||||
EFI_PEI_READ_BLOCKS ReadBlocks;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiVirtualBlockIoPpiGuid;
|
||||
extern EFI_GUID gEfiPeiVirtualBlockIoPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -28,9 +28,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// The forward declaration for EFI_PEI_RECOVERY_BLOCK_IO_PPI.
|
||||
///
|
||||
typedef struct _EFI_PEI_RECOVERY_BLOCK_IO2_PPI EFI_PEI_RECOVERY_BLOCK_IO2_PPI;
|
||||
typedef struct _EFI_PEI_RECOVERY_BLOCK_IO2_PPI EFI_PEI_RECOVERY_BLOCK_IO2_PPI;
|
||||
|
||||
#define EFI_PEI_RECOVERY_BLOCK_IO2_PPI_REVISION 0x00010000
|
||||
#define EFI_PEI_RECOVERY_BLOCK_IO2_PPI_REVISION 0x00010000
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
@@ -40,28 +40,28 @@ typedef struct {
|
||||
/// When more than one sub-type is associated with the interface, sub-type with
|
||||
/// the smallest number must be used.
|
||||
///
|
||||
UINT8 InterfaceType;
|
||||
UINT8 InterfaceType;
|
||||
///
|
||||
/// A flag that indicates if media is removable.
|
||||
///
|
||||
BOOLEAN RemovableMedia;
|
||||
BOOLEAN RemovableMedia;
|
||||
///
|
||||
/// A flag that indicates if media is present. This flag is always set for
|
||||
/// non-removable media devices.
|
||||
///
|
||||
BOOLEAN MediaPresent;
|
||||
BOOLEAN MediaPresent;
|
||||
///
|
||||
/// A flag that indicates if media is read-only.
|
||||
///
|
||||
BOOLEAN ReadOnly;
|
||||
BOOLEAN ReadOnly;
|
||||
///
|
||||
/// The size of a logical block in bytes.
|
||||
///
|
||||
UINT32 BlockSize;
|
||||
UINT32 BlockSize;
|
||||
///
|
||||
/// The last logical block that the device supports.
|
||||
///
|
||||
EFI_PEI_LBA LastBlock;
|
||||
EFI_PEI_LBA LastBlock;
|
||||
} EFI_PEI_BLOCK_IO2_MEDIA;
|
||||
|
||||
/**
|
||||
@@ -195,23 +195,23 @@ struct _EFI_PEI_RECOVERY_BLOCK_IO2_PPI {
|
||||
/// The revision to which the interface adheres.
|
||||
/// All future revisions must be backwards compatible.
|
||||
///
|
||||
UINT64 Revision;
|
||||
UINT64 Revision;
|
||||
///
|
||||
/// Gets the number of block I/O devices that the specific block driver manages.
|
||||
///
|
||||
EFI_PEI_GET_NUMBER_BLOCK_DEVICES2 GetNumberOfBlockDevices;
|
||||
EFI_PEI_GET_NUMBER_BLOCK_DEVICES2 GetNumberOfBlockDevices;
|
||||
|
||||
///
|
||||
/// Gets the specified media information.
|
||||
///
|
||||
EFI_PEI_GET_DEVICE_MEDIA_INFORMATION2 GetBlockDeviceMediaInfo;
|
||||
EFI_PEI_GET_DEVICE_MEDIA_INFORMATION2 GetBlockDeviceMediaInfo;
|
||||
|
||||
///
|
||||
/// Reads the requested number of blocks from the specified block device.
|
||||
///
|
||||
EFI_PEI_READ_BLOCKS2 ReadBlocks;
|
||||
EFI_PEI_READ_BLOCKS2 ReadBlocks;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiVirtualBlockIo2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiVirtualBlockIo2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -18,7 +18,6 @@
|
||||
0x17ee496a, 0xd8e4, 0x4b9a, {0x94, 0xd1, 0xce, 0x82, 0x72, 0x30, 0x8, 0x50 } \
|
||||
}
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPeiBootInRecoveryModePpiGuid;
|
||||
extern EFI_GUID gEfiPeiBootInRecoveryModePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -115,16 +115,16 @@ EFI_STATUS
|
||||
/// processing, and once memory is available, create a HOB for the capsule.
|
||||
///
|
||||
struct _EFI_PEI_CAPSULE_PPI {
|
||||
EFI_PEI_CAPSULE_COALESCE Coalesce;
|
||||
EFI_PEI_CAPSULE_CHECK_CAPSULE_UPDATE CheckCapsuleUpdate;
|
||||
EFI_PEI_CAPSULE_CREATE_STATE CreateState;
|
||||
EFI_PEI_CAPSULE_COALESCE Coalesce;
|
||||
EFI_PEI_CAPSULE_CHECK_CAPSULE_UPDATE CheckCapsuleUpdate;
|
||||
EFI_PEI_CAPSULE_CREATE_STATE CreateState;
|
||||
};
|
||||
|
||||
///
|
||||
/// Keep name backwards compatible before PI Version 1.4
|
||||
///
|
||||
extern EFI_GUID gPeiCapsulePpiGuid;
|
||||
extern EFI_GUID gPeiCapsulePpiGuid;
|
||||
|
||||
extern EFI_GUID gEfiPeiCapsulePpiGuid;
|
||||
extern EFI_GUID gEfiPeiCapsulePpiGuid;
|
||||
|
||||
#endif // #ifndef _PEI_CAPSULE_PPI_H_
|
||||
|
@@ -16,7 +16,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_PEI_CPU_IO_PPI_INSTALLED_GUID \
|
||||
{ 0xe6af1f7b, 0xfc3f, 0x46da, {0xa8, 0x28, 0xa3, 0xb4, 0x57, 0xa4, 0x42, 0x82 } }
|
||||
|
||||
typedef struct _EFI_PEI_CPU_IO_PPI EFI_PEI_CPU_IO_PPI;
|
||||
typedef struct _EFI_PEI_CPU_IO_PPI EFI_PEI_CPU_IO_PPI;
|
||||
|
||||
///
|
||||
/// EFI_PEI_CPU_IO_PPI_WIDTH.
|
||||
@@ -70,11 +70,11 @@ typedef struct {
|
||||
///
|
||||
/// This service provides the various modalities of memory and I/O read.
|
||||
///
|
||||
EFI_PEI_CPU_IO_PPI_IO_MEM Read;
|
||||
EFI_PEI_CPU_IO_PPI_IO_MEM Read;
|
||||
///
|
||||
/// This service provides the various modalities of memory and I/O write.
|
||||
///
|
||||
EFI_PEI_CPU_IO_PPI_IO_MEM Write;
|
||||
EFI_PEI_CPU_IO_PPI_IO_MEM Write;
|
||||
} EFI_PEI_CPU_IO_PPI_ACCESS;
|
||||
|
||||
/**
|
||||
@@ -390,33 +390,33 @@ struct _EFI_PEI_CPU_IO_PPI {
|
||||
///
|
||||
/// Collection of memory-access services.
|
||||
///
|
||||
EFI_PEI_CPU_IO_PPI_ACCESS Mem;
|
||||
EFI_PEI_CPU_IO_PPI_ACCESS Mem;
|
||||
///
|
||||
/// Collection of I/O-access services.
|
||||
///
|
||||
EFI_PEI_CPU_IO_PPI_ACCESS Io;
|
||||
EFI_PEI_CPU_IO_PPI_ACCESS Io;
|
||||
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ8 IoRead8;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ16 IoRead16;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ32 IoRead32;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ64 IoRead64;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ8 IoRead8;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ16 IoRead16;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ32 IoRead32;
|
||||
EFI_PEI_CPU_IO_PPI_IO_READ64 IoRead64;
|
||||
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE8 IoWrite8;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE16 IoWrite16;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE32 IoWrite32;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE64 IoWrite64;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE8 IoWrite8;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE16 IoWrite16;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE32 IoWrite32;
|
||||
EFI_PEI_CPU_IO_PPI_IO_WRITE64 IoWrite64;
|
||||
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ8 MemRead8;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ16 MemRead16;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ32 MemRead32;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ64 MemRead64;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ8 MemRead8;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ16 MemRead16;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ32 MemRead32;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_READ64 MemRead64;
|
||||
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE8 MemWrite8;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE16 MemWrite16;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE32 MemWrite32;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE64 MemWrite64;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE8 MemWrite8;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE16 MemWrite16;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE32 MemWrite32;
|
||||
EFI_PEI_CPU_IO_PPI_MEM_WRITE64 MemWrite64;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiCpuIoPpiInstalledGuid;
|
||||
extern EFI_GUID gEfiPeiCpuIoPpiInstalledGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#define EFI_PEI_DECOMPRESS_PPI_GUID \
|
||||
{ 0x1a36e4e7, 0xfab6, 0x476a, { 0x8e, 0x75, 0x69, 0x5a, 0x5, 0x76, 0xfd, 0xd7 } }
|
||||
|
||||
typedef struct _EFI_PEI_DECOMPRESS_PPI EFI_PEI_DECOMPRESS_PPI;
|
||||
typedef struct _EFI_PEI_DECOMPRESS_PPI EFI_PEI_DECOMPRESS_PPI;
|
||||
|
||||
/**
|
||||
Decompress a single compression section in a firmware file.
|
||||
@@ -49,8 +49,7 @@ EFI_STATUS
|
||||
IN CONST EFI_COMPRESSION_SECTION *InputSection,
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
///
|
||||
/// This PPI's single member function decompresses a compression
|
||||
@@ -59,10 +58,9 @@ EFI_STATUS
|
||||
/// compression sections will be ignored.
|
||||
///
|
||||
struct _EFI_PEI_DECOMPRESS_PPI {
|
||||
EFI_PEI_DECOMPRESS_DECOMPRESS Decompress;
|
||||
EFI_PEI_DECOMPRESS_DECOMPRESS Decompress;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPeiDecompressPpiGuid;
|
||||
extern EFI_GUID gEfiPeiDecompressPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -18,7 +18,6 @@
|
||||
0x869c711d, 0x649c, 0x44fe, { 0x8b, 0x9e, 0x2c, 0xbb, 0x29, 0x11, 0xc3, 0xe6} } \
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Delayed Dispatch function. This routine is called sometime after the required
|
||||
delay. Upon return, if NewDelay is 0, the function is unregistered. If NewDelay
|
||||
@@ -31,18 +30,16 @@
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(EFIAPI *EFI_DELAYED_DISPATCH_FUNCTION) (
|
||||
(EFIAPI *EFI_DELAYED_DISPATCH_FUNCTION)(
|
||||
IN OUT UINT64 *Context,
|
||||
OUT UINT32 *NewDelay
|
||||
OUT UINT32 *NewDelay
|
||||
);
|
||||
|
||||
|
||||
///
|
||||
/// The forward declaration for EFI_DELAYED_DISPATCH_PPI
|
||||
///
|
||||
|
||||
typedef struct _EFI_DELAYED_DISPATCH_PPI EFI_DELAYED_DISPATCH_PPI;
|
||||
|
||||
typedef struct _EFI_DELAYED_DISPATCH_PPI EFI_DELAYED_DISPATCH_PPI;
|
||||
|
||||
/**
|
||||
Register a callback to be called after a minimum delay has occurred.
|
||||
@@ -68,7 +65,6 @@ EFI_STATUS
|
||||
OUT UINT32 Delay
|
||||
);
|
||||
|
||||
|
||||
///
|
||||
/// This PPI is a pointer to the Delayed Dispatch Service.
|
||||
/// This service will be published by the Pei Foundation. The PEI Foundation
|
||||
@@ -76,10 +72,9 @@ EFI_STATUS
|
||||
/// execution.
|
||||
///
|
||||
struct _EFI_DELAYED_DISPATCH_PPI {
|
||||
EFI_DELAYED_DISPATCH_REGISTER Register;
|
||||
EFI_DELAYED_DISPATCH_REGISTER Register;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid;
|
||||
extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -128,11 +128,11 @@ EFI_STATUS
|
||||
/// regardless of the underlying device(s).
|
||||
///
|
||||
struct _EFI_PEI_DEVICE_RECOVERY_MODULE_PPI {
|
||||
EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE GetNumberRecoveryCapsules; ///< Returns the number of DXE capsules residing on the device.
|
||||
EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO GetRecoveryCapsuleInfo; ///< Returns the size and type of the requested recovery capsule.
|
||||
EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE LoadRecoveryCapsule; ///< Loads a DXE capsule from some media into memory.
|
||||
EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE GetNumberRecoveryCapsules; ///< Returns the number of DXE capsules residing on the device.
|
||||
EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO GetRecoveryCapsuleInfo; ///< Returns the size and type of the requested recovery capsule.
|
||||
EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE LoadRecoveryCapsule; ///< Loads a DXE capsule from some media into memory.
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiDeviceRecoveryModulePpiGuid;
|
||||
extern EFI_GUID gEfiPeiDeviceRecoveryModulePpiGuid;
|
||||
|
||||
#endif /* _PEI_DEVICE_RECOVERY_MODULE_PPI_H_ */
|
||||
#endif /* _PEI_DEVICE_RECOVERY_MODULE_PPI_H_ */
|
||||
|
@@ -58,9 +58,9 @@ EFI_STATUS
|
||||
/// The DXE IPL PPI may use PEI services to locate and load the DXE Foundation.
|
||||
///
|
||||
struct _EFI_DXE_IPL_PPI {
|
||||
EFI_DXE_IPL_ENTRY Entry;
|
||||
EFI_DXE_IPL_ENTRY Entry;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiDxeIplPpiGuid;
|
||||
extern EFI_GUID gEfiDxeIplPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,6 +20,6 @@
|
||||
0x605EA650, 0xC65C, 0x42e1, {0xBA, 0x80, 0x91, 0xA5, 0x2A, 0xB6, 0x18, 0xC6 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiEndOfPeiSignalPpiGuid;
|
||||
extern EFI_GUID gEfiEndOfPeiSignalPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,7 @@
|
||||
/// The FV format can be EFI_FIRMWARE_FILE_SYSTEM2_GUID or the GUID for a user-defined
|
||||
/// format. The EFI_FIRMWARE_FILE_SYSTEM2_GUID is the PI Firmware Volume format.
|
||||
///
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_PPI EFI_PEI_FIRMWARE_VOLUME_PPI;
|
||||
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_PPI EFI_PEI_FIRMWARE_VOLUME_PPI;
|
||||
|
||||
/**
|
||||
Process a firmware volume and create a volume handle.
|
||||
@@ -51,7 +50,7 @@ EFI_STATUS
|
||||
IN VOID *Buffer,
|
||||
IN UINTN BufferSize,
|
||||
OUT EFI_PEI_FV_HANDLE *FvHandle
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Finds the next file of the specified type.
|
||||
@@ -82,8 +81,7 @@ EFI_STATUS
|
||||
IN EFI_FV_FILETYPE SearchType,
|
||||
IN EFI_PEI_FV_HANDLE FvHandle,
|
||||
IN OUT EFI_PEI_FILE_HANDLE *FileHandle
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
Find a file within a volume by its name.
|
||||
@@ -117,8 +115,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *FileName,
|
||||
IN EFI_PEI_FV_HANDLE *FvHandle,
|
||||
OUT EFI_PEI_FILE_HANDLE *FileHandle
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
Returns information about a specific file.
|
||||
@@ -145,7 +142,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This,
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
OUT EFI_FV_FILE_INFO *FileInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Returns information about a specific file.
|
||||
@@ -172,7 +169,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This,
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
OUT EFI_FV_FILE_INFO2 *FileInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
This function returns information about the firmware volume.
|
||||
@@ -194,7 +191,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This,
|
||||
IN EFI_PEI_FV_HANDLE FvHandle,
|
||||
OUT EFI_FV_INFO *VolumeInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Find the next matching section in the firmware file.
|
||||
@@ -222,7 +219,7 @@ EFI_STATUS
|
||||
IN EFI_SECTION_TYPE SearchType,
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
OUT VOID **SectionData
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Find the next matching section in the firmware file.
|
||||
@@ -256,33 +253,33 @@ EFI_STATUS
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
OUT VOID **SectionData,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
);
|
||||
);
|
||||
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE SIGNATURE_32 ('P', 'F', 'V', 'P')
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION 0x00010030
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE SIGNATURE_32 ('P', 'F', 'V', 'P')
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION 0x00010030
|
||||
|
||||
///
|
||||
/// This PPI provides functions for accessing a memory-mapped firmware volume of a specific format.
|
||||
///
|
||||
struct _EFI_PEI_FIRMWARE_VOLUME_PPI {
|
||||
EFI_PEI_FV_PROCESS_FV ProcessVolume;
|
||||
EFI_PEI_FV_FIND_FILE_TYPE FindFileByType;
|
||||
EFI_PEI_FV_FIND_FILE_NAME FindFileByName;
|
||||
EFI_PEI_FV_GET_FILE_INFO GetFileInfo;
|
||||
EFI_PEI_FV_GET_INFO GetVolumeInfo;
|
||||
EFI_PEI_FV_FIND_SECTION FindSectionByType;
|
||||
EFI_PEI_FV_GET_FILE_INFO2 GetFileInfo2;
|
||||
EFI_PEI_FV_FIND_SECTION2 FindSectionByType2;
|
||||
EFI_PEI_FV_PROCESS_FV ProcessVolume;
|
||||
EFI_PEI_FV_FIND_FILE_TYPE FindFileByType;
|
||||
EFI_PEI_FV_FIND_FILE_NAME FindFileByName;
|
||||
EFI_PEI_FV_GET_FILE_INFO GetFileInfo;
|
||||
EFI_PEI_FV_GET_INFO GetVolumeInfo;
|
||||
EFI_PEI_FV_FIND_SECTION FindSectionByType;
|
||||
EFI_PEI_FV_GET_FILE_INFO2 GetFileInfo2;
|
||||
EFI_PEI_FV_FIND_SECTION2 FindSectionByType2;
|
||||
///
|
||||
/// Signature is used to keep backward-compatibility, set to {'P','F','V','P'}.
|
||||
///
|
||||
UINT32 Signature;
|
||||
UINT32 Signature;
|
||||
///
|
||||
/// Revision for further extension.
|
||||
///
|
||||
UINT32 Revision;
|
||||
UINT32 Revision;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumePpiGuid;
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -12,12 +12,10 @@
|
||||
#ifndef __EFI_PEI_FIRMWARE_VOLUME_INFO_H__
|
||||
#define __EFI_PEI_FIRMWARE_VOLUME_INFO_H__
|
||||
|
||||
|
||||
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_INFO_PPI_GUID \
|
||||
{ 0x49edb1c1, 0xbf21, 0x4761, { 0xbb, 0x12, 0xeb, 0x0, 0x31, 0xaa, 0xbb, 0x39 } }
|
||||
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_INFO_PPI EFI_PEI_FIRMWARE_VOLUME_INFO_PPI;
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_INFO_PPI EFI_PEI_FIRMWARE_VOLUME_INFO_PPI;
|
||||
|
||||
///
|
||||
/// This PPI describes the location and format of a firmware volume.
|
||||
@@ -29,34 +27,33 @@ struct _EFI_PEI_FIRMWARE_VOLUME_INFO_PPI {
|
||||
///
|
||||
/// Unique identifier of the format of the memory-mapped firmware volume.
|
||||
///
|
||||
EFI_GUID FvFormat;
|
||||
EFI_GUID FvFormat;
|
||||
///
|
||||
/// Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process
|
||||
/// the volume. The format of this buffer is specific to the FvFormat.
|
||||
/// For memory-mapped firmware volumes, this typically points to the first byte
|
||||
/// of the firmware volume.
|
||||
///
|
||||
VOID *FvInfo;
|
||||
VOID *FvInfo;
|
||||
///
|
||||
/// Size of the data provided by FvInfo. For memory-mapped firmware volumes,
|
||||
/// this is typically the size of the firmware volume.
|
||||
///
|
||||
UINT32 FvInfoSize;
|
||||
UINT32 FvInfoSize;
|
||||
///
|
||||
/// If the firmware volume originally came from a firmware file, then these
|
||||
/// point to the parent firmware volume name and firmware volume file.
|
||||
/// If it did not originally come from a firmware file, these should be NULL.
|
||||
///
|
||||
EFI_GUID *ParentFvName;
|
||||
EFI_GUID *ParentFvName;
|
||||
///
|
||||
/// If the firmware volume originally came from a firmware file, then these
|
||||
/// point to the parent firmware volume name and firmware volume file.
|
||||
/// If it did not originally come from a firmware file, these should be NULL.
|
||||
///
|
||||
EFI_GUID *ParentFileName;
|
||||
EFI_GUID *ParentFileName;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumeInfoPpiGuid;
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumeInfoPpiGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -12,12 +12,10 @@
|
||||
#ifndef __EFI_PEI_FIRMWARE_VOLUME_INFO2_H__
|
||||
#define __EFI_PEI_FIRMWARE_VOLUME_INFO2_H__
|
||||
|
||||
|
||||
|
||||
#define EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI_GUID \
|
||||
{ 0xea7ca24b, 0xded5, 0x4dad, { 0xa3, 0x89, 0xbf, 0x82, 0x7e, 0x8f, 0x9b, 0x38 } }
|
||||
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI;
|
||||
typedef struct _EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI;
|
||||
|
||||
///
|
||||
/// This PPI describes the location and format of a firmware volume.
|
||||
@@ -29,38 +27,37 @@ struct _EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI {
|
||||
///
|
||||
/// Unique identifier of the format of the memory-mapped firmware volume.
|
||||
///
|
||||
EFI_GUID FvFormat;
|
||||
EFI_GUID FvFormat;
|
||||
///
|
||||
/// Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process
|
||||
/// the volume. The format of this buffer is specific to the FvFormat.
|
||||
/// For memory-mapped firmware volumes, this typically points to the first byte
|
||||
/// of the firmware volume.
|
||||
///
|
||||
VOID *FvInfo;
|
||||
VOID *FvInfo;
|
||||
///
|
||||
/// Size of the data provided by FvInfo. For memory-mapped firmware volumes,
|
||||
/// this is typically the size of the firmware volume.
|
||||
///
|
||||
UINT32 FvInfoSize;
|
||||
UINT32 FvInfoSize;
|
||||
///
|
||||
/// If the firmware volume originally came from a firmware file, then these
|
||||
/// point to the parent firmware volume name and firmware volume file.
|
||||
/// If it did not originally come from a firmware file, these should be NULL.
|
||||
///
|
||||
EFI_GUID *ParentFvName;
|
||||
EFI_GUID *ParentFvName;
|
||||
///
|
||||
/// If the firmware volume originally came from a firmware file, then these
|
||||
/// point to the parent firmware volume name and firmware volume file.
|
||||
/// If it did not originally come from a firmware file, these should be NULL.
|
||||
///
|
||||
EFI_GUID *ParentFileName;
|
||||
EFI_GUID *ParentFileName;
|
||||
///
|
||||
/// Authentication Status.
|
||||
///
|
||||
UINT32 AuthenticationStatus;
|
||||
UINT32 AuthenticationStatus;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumeInfo2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiFirmwareVolumeInfo2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -40,7 +40,7 @@ typedef struct _EFI_PEI_GRAPHICS_PPI EFI_PEI_GRAPHICS_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_GRAPHICS_INIT) (
|
||||
(EFIAPI *EFI_PEI_GRAPHICS_INIT)(
|
||||
IN VOID *GraphicsPolicyPtr
|
||||
);
|
||||
|
||||
@@ -61,7 +61,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_GRAPHICS_GET_MODE) (
|
||||
(EFIAPI *EFI_PEI_GRAPHICS_GET_MODE)(
|
||||
IN OUT EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE *Mode
|
||||
);
|
||||
|
||||
@@ -70,10 +70,10 @@ EFI_STATUS
|
||||
/// firmware modules.
|
||||
///
|
||||
struct _EFI_PEI_GRAPHICS_PPI {
|
||||
EFI_PEI_GRAPHICS_INIT GraphicsPpiInit;
|
||||
EFI_PEI_GRAPHICS_GET_MODE GraphicsPpiGetMode;
|
||||
EFI_PEI_GRAPHICS_INIT GraphicsPpiInit;
|
||||
EFI_PEI_GRAPHICS_GET_MODE GraphicsPpiGetMode;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiGraphicsPpiGuid;
|
||||
extern EFI_GUID gEfiPeiGraphicsPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -28,9 +28,7 @@
|
||||
// that it is intended to process.
|
||||
//
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI;
|
||||
|
||||
typedef struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI;
|
||||
|
||||
/**
|
||||
Processes the input section and returns the data contained therein
|
||||
@@ -79,7 +77,7 @@ EFI_STATUS
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// If a GUID-defined section is encountered when doing section extraction,
|
||||
@@ -89,10 +87,7 @@ EFI_STATUS
|
||||
/// therein.
|
||||
///
|
||||
struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI {
|
||||
EFI_PEI_EXTRACT_GUIDED_SECTION ExtractSection;
|
||||
EFI_PEI_EXTRACT_GUIDED_SECTION ExtractSection;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -35,7 +35,7 @@ typedef struct _EFI_PEI_I2C_MASTER_PPI EFI_PEI_I2C_MASTER_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY) (
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY)(
|
||||
IN EFI_PEI_I2C_MASTER_PPI *This,
|
||||
IN UINTN *BusClockHertz
|
||||
);
|
||||
@@ -51,7 +51,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_RESET) (
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_RESET)(
|
||||
IN CONST EFI_PEI_I2C_MASTER_PPI *This
|
||||
);
|
||||
|
||||
@@ -79,7 +79,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_START_REQUEST) (
|
||||
(EFIAPI *EFI_PEI_I2C_MASTER_PPI_START_REQUEST)(
|
||||
IN CONST EFI_PEI_I2C_MASTER_PPI *This,
|
||||
IN UINTN SlaveAddress,
|
||||
IN EFI_I2C_REQUEST_PACKET *RequestPacket
|
||||
@@ -90,13 +90,13 @@ EFI_STATUS
|
||||
/// using the current state of any switches or multiplexers in the I2C bus.
|
||||
///
|
||||
struct _EFI_PEI_I2C_MASTER_PPI {
|
||||
EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY SetBusFrequency;
|
||||
EFI_PEI_I2C_MASTER_PPI_RESET Reset;
|
||||
EFI_PEI_I2C_MASTER_PPI_START_REQUEST StartRequest;
|
||||
CONST EFI_I2C_CONTROLLER_CAPABILITIES *I2cControllerCapabilities;
|
||||
EFI_GUID Identifier;
|
||||
EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY SetBusFrequency;
|
||||
EFI_PEI_I2C_MASTER_PPI_RESET Reset;
|
||||
EFI_PEI_I2C_MASTER_PPI_START_REQUEST StartRequest;
|
||||
CONST EFI_I2C_CONTROLLER_CAPABILITIES *I2cControllerCapabilities;
|
||||
EFI_GUID Identifier;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiI2cMasterPpiGuid;
|
||||
extern EFI_GUID gEfiPeiI2cMasterPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,8 @@
|
||||
0x8d48bd70, 0xc8a3, 0x4c06, {0x90, 0x1b, 0x74, 0x79, 0x46, 0xaa, 0xc3, 0x58} \
|
||||
}
|
||||
|
||||
typedef struct _EFI_ISA_HC_PPI EFI_ISA_HC_PPI;
|
||||
typedef struct _EFI_ISA_HC_PPI *PEFI_ISA_HC_PPI;
|
||||
typedef struct _EFI_ISA_HC_PPI EFI_ISA_HC_PPI;
|
||||
typedef struct _EFI_ISA_HC_PPI *PEFI_ISA_HC_PPI;
|
||||
|
||||
/**
|
||||
Open I/O aperture.
|
||||
@@ -45,7 +45,7 @@ typedef struct _EFI_ISA_HC_PPI *PEFI_ISA_HC_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_ISA_HC_OPEN_IO) (
|
||||
(EFIAPI *EFI_PEI_ISA_HC_OPEN_IO)(
|
||||
IN CONST EFI_ISA_HC_PPI *This,
|
||||
IN UINT16 IoAddress,
|
||||
IN UINT16 IoLength,
|
||||
@@ -71,7 +71,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_ISA_HC_CLOSE_IO) (
|
||||
(EFIAPI *EFI_PEI_ISA_HC_CLOSE_IO)(
|
||||
IN CONST EFI_ISA_HC_PPI *This,
|
||||
IN UINT64 IoApertureHandle
|
||||
);
|
||||
@@ -83,7 +83,7 @@ struct _EFI_ISA_HC_PPI {
|
||||
///
|
||||
/// An unsigned integer that specifies the version of the PPI structure.
|
||||
///
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
///
|
||||
/// The address of the ISA/LPC Bridge device.
|
||||
/// For PCI, this is the segment, bus, device and function of the a ISA/LPC
|
||||
@@ -97,17 +97,17 @@ struct _EFI_ISA_HC_PPI {
|
||||
/// Bits 24-31 - Bus Type
|
||||
/// If bits 24-31 are 0xff, then the definition is platform-specific.
|
||||
///
|
||||
UINT32 Address;
|
||||
UINT32 Address;
|
||||
///
|
||||
/// Opens an aperture on a positive-decode ISA Host Controller.
|
||||
///
|
||||
EFI_PEI_ISA_HC_OPEN_IO OpenIoAperture;
|
||||
EFI_PEI_ISA_HC_OPEN_IO OpenIoAperture;
|
||||
///
|
||||
/// Closes an aperture on a positive-decode ISA Host Controller.
|
||||
///
|
||||
EFI_PEI_ISA_HC_CLOSE_IO CloseIoAperture;
|
||||
EFI_PEI_ISA_HC_CLOSE_IO CloseIoAperture;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiIsaHcPpiGuid;
|
||||
extern EFI_GUID gEfiIsaHcPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,7 +15,6 @@
|
||||
#define EFI_PEI_LOAD_FILE_PPI_GUID \
|
||||
{ 0xb9e0abfe, 0x5979, 0x4914, { 0x97, 0x7f, 0x6d, 0xee, 0x78, 0xc2, 0x78, 0xa6 } }
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_LOAD_FILE_PPI EFI_PEI_LOAD_FILE_PPI;
|
||||
|
||||
/**
|
||||
@@ -55,7 +54,7 @@ EFI_STATUS
|
||||
OUT UINT64 *ImageSize,
|
||||
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
|
||||
OUT UINT32 *AuthenticationState
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This PPI is a pointer to the Load File service.
|
||||
@@ -63,9 +62,9 @@ EFI_STATUS
|
||||
/// will use this service to launch the known PEI module images.
|
||||
///
|
||||
struct _EFI_PEI_LOAD_FILE_PPI {
|
||||
EFI_PEI_LOAD_FILE LoadFile;
|
||||
EFI_PEI_LOAD_FILE LoadFile;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiLoadFilePpiGuid;
|
||||
extern EFI_GUID gEfiPeiLoadFilePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -16,8 +16,7 @@
|
||||
#define EFI_PEI_LOADED_IMAGE_PPI_GUID \
|
||||
{ 0xc1fcd448, 0x6300, 0x4458, { 0xb8, 0x64, 0x28, 0xdf, 0x1, 0x53, 0x64, 0xbc } }
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_LOADED_IMAGE_PPI EFI_PEI_LOADED_IMAGE_PPI;
|
||||
typedef struct _EFI_PEI_LOADED_IMAGE_PPI EFI_PEI_LOADED_IMAGE_PPI;
|
||||
|
||||
///
|
||||
/// This interface is installed by the PEI Dispatcher after the image has been
|
||||
@@ -28,19 +27,18 @@ struct _EFI_PEI_LOADED_IMAGE_PPI {
|
||||
///
|
||||
/// Address of the image at the address where it will be executed.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS ImageAddress;
|
||||
EFI_PHYSICAL_ADDRESS ImageAddress;
|
||||
///
|
||||
/// Size of the image as it will be executed.
|
||||
///
|
||||
UINT64 ImageSize;
|
||||
UINT64 ImageSize;
|
||||
///
|
||||
/// File handle from which the image was loaded.
|
||||
/// Can be NULL, indicating the image was not loaded from a handle.
|
||||
///
|
||||
EFI_PEI_FILE_HANDLE FileHandle;
|
||||
EFI_PEI_FILE_HANDLE FileHandle;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPeiLoadedImagePpiGuid;
|
||||
extern EFI_GUID gEfiPeiLoadedImagePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,6 +21,6 @@
|
||||
0x7408d748, 0xfc8c, 0x4ee6, {0x92, 0x88, 0xc4, 0xbe, 0xc0, 0x92, 0xa4, 0x10 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPeiMasterBootModePpiGuid;
|
||||
extern EFI_GUID gEfiPeiMasterBootModePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,6 +21,6 @@
|
||||
0xf894643d, 0xc449, 0x42d1, {0x8e, 0xa8, 0x85, 0xbd, 0xd8, 0xc6, 0x5b, 0xde } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPeiMemoryDiscoveredPpiGuid;
|
||||
extern EFI_GUID gEfiPeiMemoryDiscoveredPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define EFI_PEI_MM_ACCESS_PPI_GUID \
|
||||
{ 0x268f33a9, 0xcccd, 0x48be, { 0x88, 0x17, 0x86, 0x5, 0x3a, 0xc3, 0x2e, 0xd6 }}
|
||||
|
||||
typedef struct _EFI_PEI_MM_ACCESS_PPI EFI_PEI_MM_ACCESS_PPI;
|
||||
typedef struct _EFI_PEI_MM_ACCESS_PPI EFI_PEI_MM_ACCESS_PPI;
|
||||
|
||||
/**
|
||||
Opens the MMRAM area to be accessible by a PEIM.
|
||||
@@ -142,14 +142,14 @@ EFI_STATUS
|
||||
/// memory controller would publish this PPI.
|
||||
///
|
||||
struct _EFI_PEI_MM_ACCESS_PPI {
|
||||
EFI_PEI_MM_OPEN Open;
|
||||
EFI_PEI_MM_CLOSE Close;
|
||||
EFI_PEI_MM_LOCK Lock;
|
||||
EFI_PEI_MM_CAPABILITIES GetCapabilities;
|
||||
BOOLEAN LockState;
|
||||
BOOLEAN OpenState;
|
||||
EFI_PEI_MM_OPEN Open;
|
||||
EFI_PEI_MM_CLOSE Close;
|
||||
EFI_PEI_MM_LOCK Lock;
|
||||
EFI_PEI_MM_CAPABILITIES GetCapabilities;
|
||||
BOOLEAN LockState;
|
||||
BOOLEAN OpenState;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiMmAccessPpiGuid;
|
||||
extern EFI_GUID gEfiPeiMmAccessPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef MM_COMMUNICATION_PPI_H_
|
||||
#define MM_COMMUNICATION_PPI_H_
|
||||
|
||||
@@ -20,7 +19,7 @@
|
||||
0xae933e1c, 0xcc47, 0x4e38, { 0x8f, 0xe, 0xe2, 0xf6, 0x1d, 0x26, 0x5, 0xdf } \
|
||||
}
|
||||
|
||||
typedef struct _EFI_PEI_MM_COMMUNICATION_PPI EFI_PEI_MM_COMMUNICATION_PPI;
|
||||
typedef struct _EFI_PEI_MM_COMMUNICATION_PPI EFI_PEI_MM_COMMUNICATION_PPI;
|
||||
|
||||
/**
|
||||
Communicates with a registered handler.
|
||||
@@ -64,9 +63,9 @@ EFI_STATUS
|
||||
/// MMI handler.
|
||||
///
|
||||
struct _EFI_PEI_MM_COMMUNICATION_PPI {
|
||||
EFI_PEI_MM_COMMUNICATE Communicate;
|
||||
EFI_PEI_MM_COMMUNICATE Communicate;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiMmCommunicationPpiGuid;
|
||||
extern EFI_GUID gEfiPeiMmCommunicationPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,7 +21,7 @@
|
||||
0xc109319, 0xc149, 0x450e, { 0xa3, 0xe3, 0xb9, 0xba, 0xdd, 0x9d, 0xc3, 0xa4 } \
|
||||
}
|
||||
|
||||
typedef struct _EFI_PEI_MM_CONFIGURATION_PPI EFI_PEI_MM_CONFIGURATION_PPI;
|
||||
typedef struct _EFI_PEI_MM_CONFIGURATION_PPI EFI_PEI_MM_CONFIGURATION_PPI;
|
||||
|
||||
/**
|
||||
This function registers the MM Foundation entry point with the processor code. This entry point will be
|
||||
@@ -35,7 +35,7 @@ typedef struct _EFI_PEI_MM_CONFIGURATION_PPI EFI_PEI_MM_CONFIGURATION_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MM_REGISTER_MM_ENTRY) (
|
||||
(EFIAPI *EFI_PEI_MM_REGISTER_MM_ENTRY)(
|
||||
IN CONST EFI_PEI_MM_CONFIGURATION_PPI *This,
|
||||
IN EFI_MM_ENTRY_POINT MmEntryPoint
|
||||
);
|
||||
@@ -53,10 +53,10 @@ EFI_STATUS
|
||||
/// MM entry vector code.
|
||||
///
|
||||
struct _EFI_PEI_MM_CONFIGURATION_PPI {
|
||||
EFI_MM_RESERVED_MMRAM_REGION *MmramReservedRegions;
|
||||
EFI_PEI_MM_REGISTER_MM_ENTRY RegisterMmEntry;
|
||||
EFI_MM_RESERVED_MMRAM_REGION *MmramReservedRegions;
|
||||
EFI_PEI_MM_REGISTER_MM_ENTRY RegisterMmEntry;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiMmConfigurationPpi;
|
||||
extern EFI_GUID gEfiPeiMmConfigurationPpi;
|
||||
|
||||
#endif
|
||||
|
@@ -14,14 +14,13 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef _MM_CONTROL_PPI_H_
|
||||
#define _MM_CONTROL_PPI_H_
|
||||
|
||||
#define EFI_PEI_MM_CONTROL_PPI_GUID \
|
||||
{ 0x61c68702, 0x4d7e, 0x4f43, 0x8d, 0xef, 0xa7, 0x43, 0x5, 0xce, 0x74, 0xc5 }
|
||||
|
||||
typedef struct _EFI_PEI_MM_CONTROL_PPI EFI_PEI_MM_CONTROL_PPI;
|
||||
typedef struct _EFI_PEI_MM_CONTROL_PPI EFI_PEI_MM_CONTROL_PPI;
|
||||
|
||||
/**
|
||||
Invokes PPI activation from the PI PEI environment.
|
||||
@@ -45,9 +44,9 @@ typedef struct _EFI_PEI_MM_CONTROL_PPI EFI_PEI_MM_CONTROL_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MM_ACTIVATE) (
|
||||
(EFIAPI *EFI_PEI_MM_ACTIVATE)(
|
||||
IN EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MM_CONTROL_PPI * This,
|
||||
IN EFI_PEI_MM_CONTROL_PPI *This,
|
||||
IN OUT INT8 *ArgumentBuffer OPTIONAL,
|
||||
IN OUT UINTN *ArgumentBufferSize OPTIONAL,
|
||||
IN BOOLEAN Periodic OPTIONAL,
|
||||
@@ -69,9 +68,9 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MM_DEACTIVATE) (
|
||||
(EFIAPI *EFI_PEI_MM_DEACTIVATE)(
|
||||
IN EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MM_CONTROL_PPI * This,
|
||||
IN EFI_PEI_MM_CONTROL_PPI *This,
|
||||
IN BOOLEAN Periodic OPTIONAL
|
||||
);
|
||||
|
||||
@@ -81,10 +80,10 @@ EFI_STATUS
|
||||
/// generate the MMI. Also, the hardware optionally supports the periodic generation of these signals.
|
||||
///
|
||||
struct _EFI_PEI_MM_CONTROL_PPI {
|
||||
EFI_PEI_MM_ACTIVATE Trigger;
|
||||
EFI_PEI_MM_DEACTIVATE Clear;
|
||||
EFI_PEI_MM_ACTIVATE Trigger;
|
||||
EFI_PEI_MM_DEACTIVATE Clear;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiMmControlPpiGuid;
|
||||
extern EFI_GUID gEfiPeiMmControlPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,7 +21,7 @@
|
||||
0xee16160a, 0xe8be, 0x47a6, { 0x82, 0xa, 0xc6, 0x90, 0xd, 0xb0, 0x25, 0xa } \
|
||||
}
|
||||
|
||||
typedef struct _EFI_PEI_MP_SERVICES_PPI EFI_PEI_MP_SERVICES_PPI ;
|
||||
typedef struct _EFI_PEI_MP_SERVICES_PPI EFI_PEI_MP_SERVICES_PPI;
|
||||
|
||||
/**
|
||||
Get the number of CPU's.
|
||||
@@ -42,7 +42,7 @@ typedef struct _EFI_PEI_MP_SERVICES_PPI EFI_PEI_MP_SERVICES_PPI ;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
OUT UINTN *NumberOfProcessors,
|
||||
@@ -67,7 +67,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_GET_PROCESSOR_INFO) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_GET_PROCESSOR_INFO)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
IN UINTN ProcessorNumber,
|
||||
@@ -110,7 +110,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_STARTUP_ALL_APS) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_STARTUP_ALL_APS)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
IN EFI_AP_PROCEDURE Procedure,
|
||||
@@ -155,7 +155,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_STARTUP_THIS_AP) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_STARTUP_THIS_AP)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
IN EFI_AP_PROCEDURE Procedure,
|
||||
@@ -190,7 +190,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_SWITCH_BSP) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_SWITCH_BSP)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
IN UINTN ProcessorNumber,
|
||||
@@ -227,7 +227,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_ENABLEDISABLEAP) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_ENABLEDISABLEAP)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
IN UINTN ProcessorNumber,
|
||||
@@ -252,7 +252,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_WHOAMI) (
|
||||
(EFIAPI *EFI_PEI_MP_SERVICES_WHOAMI)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PEI_MP_SERVICES_PPI *This,
|
||||
OUT UINTN *ProcessorNumber
|
||||
@@ -263,15 +263,15 @@ EFI_STATUS
|
||||
/// handling multiprocessor support.
|
||||
///
|
||||
struct _EFI_PEI_MP_SERVICES_PPI {
|
||||
EFI_PEI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS GetNumberOfProcessors;
|
||||
EFI_PEI_MP_SERVICES_GET_PROCESSOR_INFO GetProcessorInfo;
|
||||
EFI_PEI_MP_SERVICES_STARTUP_ALL_APS StartupAllAPs;
|
||||
EFI_PEI_MP_SERVICES_STARTUP_THIS_AP StartupThisAP;
|
||||
EFI_PEI_MP_SERVICES_SWITCH_BSP SwitchBSP;
|
||||
EFI_PEI_MP_SERVICES_ENABLEDISABLEAP EnableDisableAP;
|
||||
EFI_PEI_MP_SERVICES_WHOAMI WhoAmI;
|
||||
EFI_PEI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS GetNumberOfProcessors;
|
||||
EFI_PEI_MP_SERVICES_GET_PROCESSOR_INFO GetProcessorInfo;
|
||||
EFI_PEI_MP_SERVICES_STARTUP_ALL_APS StartupAllAPs;
|
||||
EFI_PEI_MP_SERVICES_STARTUP_THIS_AP StartupThisAP;
|
||||
EFI_PEI_MP_SERVICES_SWITCH_BSP SwitchBSP;
|
||||
EFI_PEI_MP_SERVICES_ENABLEDISABLEAP EnableDisableAP;
|
||||
EFI_PEI_MP_SERVICES_WHOAMI WhoAmI;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiMpServicesPpiGuid;
|
||||
extern EFI_GUID gEfiPeiMpServicesPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define PCD_PPI_GUID \
|
||||
{ 0x6e81c58, 0x4ad7, 0x44bc, { 0x83, 0x90, 0xf1, 0x2, 0x65, 0xf7, 0x24, 0x80 } }
|
||||
|
||||
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
|
||||
|
||||
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
|
||||
|
||||
/**
|
||||
Sets the SKU value for subsequent calls to set or get PCD token values.
|
||||
@@ -49,8 +48,6 @@ VOID
|
||||
IN UINTN SkuId
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves an 8-bit value for a given PCD token.
|
||||
|
||||
@@ -68,8 +65,6 @@ UINT8
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 16-bit value for a given PCD token.
|
||||
|
||||
@@ -87,8 +82,6 @@ UINT16
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 32-bit value for a given PCD token.
|
||||
|
||||
@@ -106,8 +99,6 @@ UINT32
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 64-bit value for a given PCD token.
|
||||
|
||||
@@ -125,8 +116,6 @@ UINT64
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a pointer to a value for a given PCD token.
|
||||
|
||||
@@ -146,8 +135,6 @@ VOID *
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a Boolean value for a given PCD token.
|
||||
|
||||
@@ -167,8 +154,6 @@ BOOLEAN
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves the size of the value for a given PCD token.
|
||||
|
||||
@@ -186,8 +171,6 @@ UINTN
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves an 8-bit value for a given PCD token and token space.
|
||||
|
||||
@@ -209,8 +192,6 @@ UINT8
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 16-bit value for a given PCD token and token space.
|
||||
|
||||
@@ -232,8 +213,6 @@ UINT16
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 32-bit value for a given PCD token and token space.
|
||||
|
||||
@@ -255,8 +234,6 @@ UINT32
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a 64-bit value for a given PCD token and token space.
|
||||
|
||||
@@ -278,8 +255,6 @@ UINT64
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves a pointer to a value for a given PCD token and token space.
|
||||
|
||||
@@ -301,8 +276,6 @@ VOID *
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves an Boolean value for a given PCD token and token space.
|
||||
|
||||
@@ -324,8 +297,6 @@ BOOLEAN
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves the size of the value for a given PCD token and token space.
|
||||
|
||||
@@ -345,8 +316,6 @@ UINTN
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets an 8-bit value for a given PCD token.
|
||||
|
||||
@@ -371,8 +340,6 @@ EFI_STATUS
|
||||
IN UINT8 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 16-bit value for a given PCD token.
|
||||
|
||||
@@ -397,8 +364,6 @@ EFI_STATUS
|
||||
IN UINT16 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 32-bit value for a given PCD token.
|
||||
|
||||
@@ -423,8 +388,6 @@ EFI_STATUS
|
||||
IN UINT32 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 64-bit value for a given PCD token.
|
||||
|
||||
@@ -502,8 +465,6 @@ EFI_STATUS
|
||||
IN BOOLEAN Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets an 8-bit value for a given PCD token.
|
||||
|
||||
@@ -530,8 +491,6 @@ EFI_STATUS
|
||||
IN UINT8 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 16-bit value for a given PCD token.
|
||||
|
||||
@@ -558,8 +517,6 @@ EFI_STATUS
|
||||
IN UINT16 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 32-bit value for a given PCD token.
|
||||
|
||||
@@ -586,8 +543,6 @@ EFI_STATUS
|
||||
IN UINT32 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a 64-bit value for a given PCD token.
|
||||
|
||||
@@ -614,8 +569,6 @@ EFI_STATUS
|
||||
IN UINT64 Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Sets a value of a specified size for a given PCD token.
|
||||
|
||||
@@ -673,8 +626,6 @@ EFI_STATUS
|
||||
IN BOOLEAN Value
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Callback on SET function prototype definition.
|
||||
|
||||
@@ -702,8 +653,6 @@ VOID
|
||||
IN UINTN TokenDataSize
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Specifies a function to be called anytime the value of a designated token is changed.
|
||||
|
||||
@@ -724,8 +673,6 @@ EFI_STATUS
|
||||
IN PCD_PPI_CALLBACK CallBackFunction
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Cancels a previously set callback function for a particular PCD token number.
|
||||
|
||||
@@ -746,8 +693,6 @@ EFI_STATUS
|
||||
IN PCD_PPI_CALLBACK CallBackFunction
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves the next valid token number in a given namespace.
|
||||
|
||||
@@ -780,8 +725,6 @@ EFI_STATUS
|
||||
IN OUT UINTN *TokenNumber
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Retrieves the next valid PCD token namespace for a given namespace.
|
||||
|
||||
@@ -804,51 +747,48 @@ EFI_STATUS
|
||||
IN OUT CONST EFI_GUID **Guid
|
||||
);
|
||||
|
||||
|
||||
|
||||
///
|
||||
/// This service abstracts the ability to set/get Platform Configuration Database (PCD).
|
||||
///
|
||||
typedef struct {
|
||||
PCD_PPI_SET_SKU SetSku;
|
||||
PCD_PPI_SET_SKU SetSku;
|
||||
|
||||
PCD_PPI_GET8 Get8;
|
||||
PCD_PPI_GET16 Get16;
|
||||
PCD_PPI_GET32 Get32;
|
||||
PCD_PPI_GET64 Get64;
|
||||
PCD_PPI_GET_POINTER GetPtr;
|
||||
PCD_PPI_GET_BOOLEAN GetBool;
|
||||
PCD_PPI_GET_SIZE GetSize;
|
||||
PCD_PPI_GET8 Get8;
|
||||
PCD_PPI_GET16 Get16;
|
||||
PCD_PPI_GET32 Get32;
|
||||
PCD_PPI_GET64 Get64;
|
||||
PCD_PPI_GET_POINTER GetPtr;
|
||||
PCD_PPI_GET_BOOLEAN GetBool;
|
||||
PCD_PPI_GET_SIZE GetSize;
|
||||
|
||||
PCD_PPI_GET_EX_8 Get8Ex;
|
||||
PCD_PPI_GET_EX_16 Get16Ex;
|
||||
PCD_PPI_GET_EX_32 Get32Ex;
|
||||
PCD_PPI_GET_EX_64 Get64Ex;
|
||||
PCD_PPI_GET_EX_POINTER GetPtrEx;
|
||||
PCD_PPI_GET_EX_BOOLEAN GetBoolEx;
|
||||
PCD_PPI_GET_EX_SIZE GetSizeEx;
|
||||
PCD_PPI_GET_EX_8 Get8Ex;
|
||||
PCD_PPI_GET_EX_16 Get16Ex;
|
||||
PCD_PPI_GET_EX_32 Get32Ex;
|
||||
PCD_PPI_GET_EX_64 Get64Ex;
|
||||
PCD_PPI_GET_EX_POINTER GetPtrEx;
|
||||
PCD_PPI_GET_EX_BOOLEAN GetBoolEx;
|
||||
PCD_PPI_GET_EX_SIZE GetSizeEx;
|
||||
|
||||
PCD_PPI_SET8 Set8;
|
||||
PCD_PPI_SET16 Set16;
|
||||
PCD_PPI_SET32 Set32;
|
||||
PCD_PPI_SET64 Set64;
|
||||
PCD_PPI_SET_POINTER SetPtr;
|
||||
PCD_PPI_SET_BOOLEAN SetBool;
|
||||
PCD_PPI_SET8 Set8;
|
||||
PCD_PPI_SET16 Set16;
|
||||
PCD_PPI_SET32 Set32;
|
||||
PCD_PPI_SET64 Set64;
|
||||
PCD_PPI_SET_POINTER SetPtr;
|
||||
PCD_PPI_SET_BOOLEAN SetBool;
|
||||
|
||||
PCD_PPI_SET_EX_8 Set8Ex;
|
||||
PCD_PPI_SET_EX_16 Set16Ex;
|
||||
PCD_PPI_SET_EX_32 Set32Ex;
|
||||
PCD_PPI_SET_EX_64 Set64Ex;
|
||||
PCD_PPI_SET_EX_POINTER SetPtrEx;
|
||||
PCD_PPI_SET_EX_BOOLEAN SetBoolEx;
|
||||
PCD_PPI_SET_EX_8 Set8Ex;
|
||||
PCD_PPI_SET_EX_16 Set16Ex;
|
||||
PCD_PPI_SET_EX_32 Set32Ex;
|
||||
PCD_PPI_SET_EX_64 Set64Ex;
|
||||
PCD_PPI_SET_EX_POINTER SetPtrEx;
|
||||
PCD_PPI_SET_EX_BOOLEAN SetBoolEx;
|
||||
|
||||
PCD_PPI_CALLBACK_ONSET CallbackOnSet;
|
||||
PCD_PPI_CANCEL_CALLBACK CancelCallback;
|
||||
PCD_PPI_GET_NEXT_TOKEN GetNextToken;
|
||||
PCD_PPI_GET_NEXT_TOKENSPACE GetNextTokenSpace;
|
||||
PCD_PPI_CALLBACK_ONSET CallbackOnSet;
|
||||
PCD_PPI_CANCEL_CALLBACK CancelCallback;
|
||||
PCD_PPI_GET_NEXT_TOKEN GetNextToken;
|
||||
PCD_PPI_GET_NEXT_TOKENSPACE GetNextTokenSpace;
|
||||
} PCD_PPI;
|
||||
|
||||
|
||||
extern EFI_GUID gPcdPpiGuid;
|
||||
extern EFI_GUID gPcdPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#ifndef __PCD_INFO_PPI_H__
|
||||
#define __PCD_INFO_PPI_H__
|
||||
|
||||
extern EFI_GUID gGetPcdInfoPpiGuid;
|
||||
extern EFI_GUID gGetPcdInfoPpiGuid;
|
||||
|
||||
#define GET_PCD_INFO_PPI_GUID \
|
||||
{ 0x4d8b155b, 0xc059, 0x4c8f, { 0x89, 0x26, 0x6, 0xfd, 0x43, 0x31, 0xdb, 0x8a } }
|
||||
@@ -24,7 +24,7 @@ extern EFI_GUID gGetPcdInfoPpiGuid;
|
||||
///
|
||||
/// The forward declaration for GET_PCD_INFO_PPI.
|
||||
///
|
||||
typedef struct _GET_PCD_INFO_PPI GET_PCD_INFO_PPI;
|
||||
typedef struct _GET_PCD_INFO_PPI GET_PCD_INFO_PPI;
|
||||
|
||||
/**
|
||||
Retrieve additional information associated with a PCD token in the default token space.
|
||||
@@ -40,10 +40,10 @@ typedef struct _GET_PCD_INFO_PPI GET_PCD_INFO_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_INFO) (
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_INFO)(
|
||||
IN UINTN TokenNumber,
|
||||
OUT EFI_PCD_INFO *PcdInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieve additional information associated with a PCD token.
|
||||
@@ -60,11 +60,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_INFO_EX) (
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_INFO_EX)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
OUT EFI_PCD_INFO *PcdInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieve the currently set SKU Id.
|
||||
@@ -75,9 +75,9 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
UINTN
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_SKU) (
|
||||
(EFIAPI *GET_PCD_INFO_PPI_GET_SKU)(
|
||||
VOID
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This is the PCD service to use when querying for some additional data that can be contained in the
|
||||
@@ -87,13 +87,12 @@ struct _GET_PCD_INFO_PPI {
|
||||
///
|
||||
/// Retrieve additional information associated with a PCD.
|
||||
///
|
||||
GET_PCD_INFO_PPI_GET_INFO GetInfo;
|
||||
GET_PCD_INFO_PPI_GET_INFO_EX GetInfoEx;
|
||||
GET_PCD_INFO_PPI_GET_INFO GetInfo;
|
||||
GET_PCD_INFO_PPI_GET_INFO_EX GetInfoEx;
|
||||
///
|
||||
/// Retrieve the currently set SKU Id.
|
||||
///
|
||||
GET_PCD_INFO_PPI_GET_SKU GetSku;
|
||||
GET_PCD_INFO_PPI_GET_SKU GetSku;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -20,9 +20,9 @@
|
||||
#define EFI_PEI_PCI_CFG2_PPI_GUID \
|
||||
{ 0x57a449a, 0x1fdc, 0x4c06, { 0xbf, 0xc9, 0xf5, 0x3f, 0x6a, 0x99, 0xbb, 0x92 } }
|
||||
|
||||
typedef struct _EFI_PEI_PCI_CFG2_PPI EFI_PEI_PCI_CFG2_PPI;
|
||||
typedef struct _EFI_PEI_PCI_CFG2_PPI EFI_PEI_PCI_CFG2_PPI;
|
||||
|
||||
#define EFI_PEI_PCI_CFG_ADDRESS(bus,dev,func,reg) \
|
||||
#define EFI_PEI_PCI_CFG_ADDRESS(bus, dev, func, reg) \
|
||||
(UINT64) ( \
|
||||
(((UINTN) bus) << 24) | \
|
||||
(((UINTN) dev) << 16) | \
|
||||
@@ -36,7 +36,7 @@ typedef enum {
|
||||
///
|
||||
/// 8-bit access
|
||||
///
|
||||
EfiPeiPciCfgWidthUint8 = 0,
|
||||
EfiPeiPciCfgWidthUint8 = 0,
|
||||
///
|
||||
/// 16-bit access
|
||||
///
|
||||
@@ -60,26 +60,26 @@ typedef struct {
|
||||
/// 8-bit register offset within the PCI configuration space for a given device's function
|
||||
/// space.
|
||||
///
|
||||
UINT8 Register;
|
||||
UINT8 Register;
|
||||
///
|
||||
/// Only the 3 least-significant bits are used to encode one of 8 possible functions within a
|
||||
/// given device.
|
||||
///
|
||||
UINT8 Function;
|
||||
UINT8 Function;
|
||||
///
|
||||
/// Only the 5 least-significant bits are used to encode one of 32 possible devices.
|
||||
///
|
||||
UINT8 Device;
|
||||
UINT8 Device;
|
||||
///
|
||||
/// 8-bit value to encode between 0 and 255 buses.
|
||||
///
|
||||
UINT8 Bus;
|
||||
UINT8 Bus;
|
||||
///
|
||||
/// Register number in PCI configuration space. If this field is zero, then Register is used
|
||||
/// for the register number. If this field is non-zero, then Register is ignored and this field
|
||||
/// is used for the register number.
|
||||
///
|
||||
UINT32 ExtendedRegister;
|
||||
UINT32 ExtendedRegister;
|
||||
} EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS;
|
||||
|
||||
/**
|
||||
@@ -114,8 +114,7 @@ EFI_STATUS
|
||||
IN EFI_PEI_PCI_CFG_PPI_WIDTH Width,
|
||||
IN UINT64 Address,
|
||||
IN OUT VOID *Buffer
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
Performs a read-modify-write operation on the contents
|
||||
@@ -156,23 +155,22 @@ EFI_STATUS
|
||||
IN UINT64 Address,
|
||||
IN VOID *SetBits,
|
||||
IN VOID *ClearBits
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// The EFI_PEI_PCI_CFG_PPI interfaces are used to abstract accesses to PCI
|
||||
/// controllers behind a PCI root bridge controller.
|
||||
///
|
||||
struct _EFI_PEI_PCI_CFG2_PPI {
|
||||
EFI_PEI_PCI_CFG2_PPI_IO Read;
|
||||
EFI_PEI_PCI_CFG2_PPI_IO Write;
|
||||
EFI_PEI_PCI_CFG2_PPI_RW Modify;
|
||||
EFI_PEI_PCI_CFG2_PPI_IO Read;
|
||||
EFI_PEI_PCI_CFG2_PPI_IO Write;
|
||||
EFI_PEI_PCI_CFG2_PPI_RW Modify;
|
||||
///
|
||||
/// The PCI bus segment which the specified functions will access.
|
||||
///
|
||||
UINT16 Segment;
|
||||
UINT16 Segment;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPciCfg2PpiGuid;
|
||||
extern EFI_GUID gEfiPciCfg2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef _EFI_PEI_CORE_FV_LOCATION_H_
|
||||
#define _EFI_PEI_CORE_FV_LOCATION_H_
|
||||
|
||||
@@ -37,6 +36,6 @@ typedef struct {
|
||||
VOID *PeiCoreFvLocation;
|
||||
} EFI_PEI_CORE_FV_LOCATION_PPI;
|
||||
|
||||
extern EFI_GUID gEfiPeiCoreFvLocationPpiGuid;
|
||||
extern EFI_GUID gEfiPeiCoreFvLocationPpiGuid;
|
||||
|
||||
#endif // _EFI_PEI_CORE_FV_LOCATION_H_
|
||||
|
@@ -21,12 +21,12 @@
|
||||
#ifndef __PI_PCD_PPI_H__
|
||||
#define __PI_PCD_PPI_H__
|
||||
|
||||
extern EFI_GUID gEfiPeiPcdPpiGuid;
|
||||
extern EFI_GUID gEfiPeiPcdPpiGuid;
|
||||
|
||||
#define EFI_PEI_PCD_PPI_GUID \
|
||||
{ 0x1f34d25, 0x4de2, 0x23ad, { 0x3f, 0xf3, 0x36, 0x35, 0x3f, 0xf3, 0x23, 0xf1 } }
|
||||
|
||||
#define EFI_PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
|
||||
#define EFI_PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
|
||||
|
||||
/**
|
||||
SetSku() sets the SKU Id to be used for subsequent calls to set or get PCD values. SetSku() is
|
||||
@@ -47,7 +47,7 @@ typedef
|
||||
VOID
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_SET_SKU)(
|
||||
IN UINTN SkuId
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current byte-sized value for a PCD token number. If the TokenNumber is invalid,
|
||||
@@ -63,7 +63,7 @@ UINT8
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_8)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current word-sized value for a PCD token number. If the TokenNumber is invalid,
|
||||
@@ -79,7 +79,7 @@ UINT16
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_16)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current 32-bit value for a PCD token number. If the TokenNumber is invalid, the
|
||||
@@ -95,7 +95,7 @@ UINT32
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_32)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current 64-bit value for a PCD token number. If the TokenNumber is invalid, the
|
||||
@@ -111,7 +111,7 @@ UINT64
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_64)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current pointer to the value for a PCD token number. There should not be any
|
||||
@@ -126,7 +126,7 @@ VOID *
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_POINTER)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current Boolean-sized value for a PCD token number. If the TokenNumber is
|
||||
@@ -142,7 +142,7 @@ BOOLEAN
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_BOOLEAN)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the current size of a particular PCD token. If the TokenNumber is invalid, the results are
|
||||
@@ -158,7 +158,7 @@ UINTN
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_SIZE)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets an 8-bit value for a given PCD token.
|
||||
@@ -182,7 +182,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
IN UINT8 Value
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets an 16-bit value for a given PCD token.
|
||||
@@ -206,7 +206,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
IN UINT16 Value
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets an 32-bit value for a given PCD token.
|
||||
@@ -230,7 +230,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
IN UINT32 Value
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets an 64-bit value for a given PCD token.
|
||||
@@ -254,7 +254,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
IN UINT64 Value
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets a value of the specified size for a given PCD token.
|
||||
@@ -282,7 +282,7 @@ EFI_STATUS
|
||||
IN UINTN TokenNumber,
|
||||
IN OUT UINTN *SizeOfValue,
|
||||
IN VOID *Buffer
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Sets a Boolean value for a given PCD token.
|
||||
@@ -306,7 +306,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
IN BOOLEAN Value
|
||||
);
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
@@ -315,7 +315,7 @@ VOID
|
||||
IN UINTN CallBackToken,
|
||||
IN OUT VOID *TokenData,
|
||||
IN UINTN TokenDatSize
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Specifies a function to be called anytime the value of a designated token is changed.
|
||||
@@ -336,7 +336,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid OPTIONAL,
|
||||
IN UINTN CallBackToken,
|
||||
IN EFI_PEI_PCD_PPI_CALLBACK CallBackFunction
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Cancels a previously set callback function for a particular PCD token number.
|
||||
@@ -358,7 +358,7 @@ EFI_STATUS
|
||||
IN CONST EFI_GUID *Guid OPTIONAL,
|
||||
IN UINTN CallBackToken,
|
||||
IN EFI_PEI_PCD_PPI_CALLBACK CallBackFunction
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the next valid PCD token for a given namespace.
|
||||
@@ -379,7 +379,7 @@ EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_NEXT_TOKEN)(
|
||||
IN CONST EFI_GUID *Guid OPTIONAL,
|
||||
IN UINTN *TokenNumber
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieves the next valid PCD token namespace for a given namespace.
|
||||
@@ -400,27 +400,27 @@ typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_PCD_PPI_GET_NEXT_TOKEN_SPACE)(
|
||||
IN OUT CONST EFI_GUID **Guid
|
||||
);
|
||||
);
|
||||
|
||||
typedef struct {
|
||||
EFI_PEI_PCD_PPI_SET_SKU SetSku;
|
||||
EFI_PEI_PCD_PPI_GET_8 Get8;
|
||||
EFI_PEI_PCD_PPI_GET_16 Get16;
|
||||
EFI_PEI_PCD_PPI_GET_32 Get32;
|
||||
EFI_PEI_PCD_PPI_GET_64 Get64;
|
||||
EFI_PEI_PCD_PPI_GET_POINTER GetPtr;
|
||||
EFI_PEI_PCD_PPI_GET_BOOLEAN GetBool;
|
||||
EFI_PEI_PCD_PPI_GET_SIZE GetSize;
|
||||
EFI_PEI_PCD_PPI_SET_8 Set8;
|
||||
EFI_PEI_PCD_PPI_SET_16 Set16;
|
||||
EFI_PEI_PCD_PPI_SET_32 Set32;
|
||||
EFI_PEI_PCD_PPI_SET_64 Set64;
|
||||
EFI_PEI_PCD_PPI_SET_POINTER SetPtr;
|
||||
EFI_PEI_PCD_PPI_SET_BOOLEAN SetBool;
|
||||
EFI_PEI_PCD_PPI_CALLBACK_ON_SET CallbackOnSet;
|
||||
EFI_PEI_PCD_PPI_CANCEL_CALLBACK CancelCallback;
|
||||
EFI_PEI_PCD_PPI_GET_NEXT_TOKEN GetNextToken;
|
||||
EFI_PEI_PCD_PPI_GET_NEXT_TOKEN_SPACE GetNextTokenSpace;
|
||||
EFI_PEI_PCD_PPI_SET_SKU SetSku;
|
||||
EFI_PEI_PCD_PPI_GET_8 Get8;
|
||||
EFI_PEI_PCD_PPI_GET_16 Get16;
|
||||
EFI_PEI_PCD_PPI_GET_32 Get32;
|
||||
EFI_PEI_PCD_PPI_GET_64 Get64;
|
||||
EFI_PEI_PCD_PPI_GET_POINTER GetPtr;
|
||||
EFI_PEI_PCD_PPI_GET_BOOLEAN GetBool;
|
||||
EFI_PEI_PCD_PPI_GET_SIZE GetSize;
|
||||
EFI_PEI_PCD_PPI_SET_8 Set8;
|
||||
EFI_PEI_PCD_PPI_SET_16 Set16;
|
||||
EFI_PEI_PCD_PPI_SET_32 Set32;
|
||||
EFI_PEI_PCD_PPI_SET_64 Set64;
|
||||
EFI_PEI_PCD_PPI_SET_POINTER SetPtr;
|
||||
EFI_PEI_PCD_PPI_SET_BOOLEAN SetBool;
|
||||
EFI_PEI_PCD_PPI_CALLBACK_ON_SET CallbackOnSet;
|
||||
EFI_PEI_PCD_PPI_CANCEL_CALLBACK CancelCallback;
|
||||
EFI_PEI_PCD_PPI_GET_NEXT_TOKEN GetNextToken;
|
||||
EFI_PEI_PCD_PPI_GET_NEXT_TOKEN_SPACE GetNextTokenSpace;
|
||||
} EFI_PEI_PCD_PPI;
|
||||
|
||||
#endif
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#ifndef __PI_PCD_INFO_PPI_H__
|
||||
#define __PI_PCD_INFO_PPI_H__
|
||||
|
||||
extern EFI_GUID gEfiGetPcdInfoPpiGuid;
|
||||
extern EFI_GUID gEfiGetPcdInfoPpiGuid;
|
||||
|
||||
#define EFI_GET_PCD_INFO_PPI_GUID \
|
||||
{ 0xa60c6b59, 0xe459, 0x425d, { 0x9c, 0x69, 0xb, 0xcc, 0x9c, 0xb2, 0x7d, 0x81 } }
|
||||
@@ -21,7 +21,7 @@ extern EFI_GUID gEfiGetPcdInfoPpiGuid;
|
||||
///
|
||||
/// The forward declaration for EFI_GET_PCD_INFO_PPI.
|
||||
///
|
||||
typedef struct _EFI_GET_PCD_INFO_PPI EFI_GET_PCD_INFO_PPI;
|
||||
typedef struct _EFI_GET_PCD_INFO_PPI EFI_GET_PCD_INFO_PPI;
|
||||
|
||||
/**
|
||||
Retrieve additional information associated with a PCD token.
|
||||
@@ -38,11 +38,11 @@ typedef struct _EFI_GET_PCD_INFO_PPI EFI_GET_PCD_INFO_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_INFO) (
|
||||
(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_INFO)(
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN UINTN TokenNumber,
|
||||
OUT EFI_PCD_INFO *PcdInfo
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Retrieve the currently set SKU Id.
|
||||
@@ -53,9 +53,9 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
UINTN
|
||||
(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_SKU) (
|
||||
(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_SKU)(
|
||||
VOID
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This is the PCD service to use when querying for some additional data that can be contained in the
|
||||
@@ -65,12 +65,11 @@ struct _EFI_GET_PCD_INFO_PPI {
|
||||
///
|
||||
/// Retrieve additional information associated with a PCD.
|
||||
///
|
||||
EFI_GET_PCD_INFO_PPI_GET_INFO GetInfo;
|
||||
EFI_GET_PCD_INFO_PPI_GET_INFO GetInfo;
|
||||
///
|
||||
/// Retrieve the currently set SKU Id.
|
||||
///
|
||||
EFI_GET_PCD_INFO_PPI_GET_SKU GetSku;
|
||||
EFI_GET_PCD_INFO_PPI_GET_SKU GetSku;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -16,8 +16,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_PEI_READ_ONLY_VARIABLE2_PPI_GUID \
|
||||
{ 0x2ab86ef5, 0xecb5, 0x4134, { 0xb5, 0x56, 0x38, 0x54, 0xca, 0x1f, 0xe1, 0xb4 } }
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_READ_ONLY_VARIABLE2_PPI EFI_PEI_READ_ONLY_VARIABLE2_PPI;
|
||||
typedef struct _EFI_PEI_READ_ONLY_VARIABLE2_PPI EFI_PEI_READ_ONLY_VARIABLE2_PPI;
|
||||
|
||||
/**
|
||||
This service retrieves a variable's value using its name and GUID.
|
||||
@@ -57,7 +56,6 @@ EFI_STATUS
|
||||
OUT VOID *Data OPTIONAL
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Return the next variable name and GUID.
|
||||
|
||||
@@ -102,10 +100,10 @@ EFI_STATUS
|
||||
/// variable services.
|
||||
///
|
||||
struct _EFI_PEI_READ_ONLY_VARIABLE2_PPI {
|
||||
EFI_PEI_GET_VARIABLE2 GetVariable;
|
||||
EFI_PEI_GET_NEXT_VARIABLE_NAME2 NextVariableName;
|
||||
EFI_PEI_GET_VARIABLE2 GetVariable;
|
||||
EFI_PEI_GET_NEXT_VARIABLE_NAME2 NextVariableName;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiReadOnlyVariable2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiReadOnlyVariable2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -73,9 +73,9 @@ EFI_STATUS
|
||||
/// Finds and loads the recovery files.
|
||||
///
|
||||
struct _EFI_PEI_RECOVERY_MODULE_PPI {
|
||||
EFI_PEI_LOAD_RECOVERY_CAPSULE LoadRecoveryCapsule; ///< Loads a DXE binary capsule into memory.
|
||||
EFI_PEI_LOAD_RECOVERY_CAPSULE LoadRecoveryCapsule; ///< Loads a DXE binary capsule into memory.
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiRecoveryModulePpiGuid;
|
||||
extern EFI_GUID gEfiPeiRecoveryModulePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -23,7 +23,7 @@ EFI_STATUS
|
||||
IN UINT32 Instance,
|
||||
IN CONST EFI_GUID *CallerId,
|
||||
IN CONST EFI_STATUS_CODE_DATA *Data
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Register the callback function for ReportStatusCode() notification.
|
||||
@@ -45,7 +45,7 @@ typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_RSC_HANDLER_REGISTER)(
|
||||
IN EFI_PEI_RSC_HANDLER_CALLBACK Callback
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Remove a previously registered callback function from the notification list.
|
||||
@@ -64,13 +64,13 @@ typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_PEI_RSC_HANDLER_UNREGISTER)(
|
||||
IN EFI_PEI_RSC_HANDLER_CALLBACK Callback
|
||||
);
|
||||
);
|
||||
|
||||
typedef struct _EFI_PEI_RSC_HANDLER_PPI {
|
||||
EFI_PEI_RSC_HANDLER_REGISTER Register;
|
||||
EFI_PEI_RSC_HANDLER_UNREGISTER Unregister;
|
||||
EFI_PEI_RSC_HANDLER_REGISTER Register;
|
||||
EFI_PEI_RSC_HANDLER_UNREGISTER Unregister;
|
||||
} EFI_PEI_RSC_HANDLER_PPI;
|
||||
|
||||
extern EFI_GUID gEfiPeiRscHandlerPpiGuid;
|
||||
extern EFI_GUID gEfiPeiRscHandlerPpiGuid;
|
||||
|
||||
#endif // __REPORT_STATUS_CODE_HANDLER_PPI_H__
|
||||
|
@@ -30,9 +30,9 @@
|
||||
/// This PPI provides provide a simple reset service.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_PEI_RESET_SYSTEM ResetSystem;
|
||||
EFI_PEI_RESET_SYSTEM ResetSystem;
|
||||
} EFI_PEI_RESET_PPI;
|
||||
|
||||
extern EFI_GUID gEfiPeiResetPpiGuid;
|
||||
extern EFI_GUID gEfiPeiResetPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -24,9 +24,9 @@
|
||||
/// This PPI provides provide a simple reset service.
|
||||
///
|
||||
typedef struct _EFI_PEI_RESET2_PPI {
|
||||
EFI_PEI_RESET2_SYSTEM ResetSystem;
|
||||
EFI_PEI_RESET2_SYSTEM ResetSystem;
|
||||
} EFI_PEI_RESET2_PPI;
|
||||
|
||||
extern EFI_GUID gEfiPeiReset2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiReset2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -30,7 +30,7 @@
|
||||
///
|
||||
/// Forward declaration for EFI_PEI_S3_RESUME_PPI
|
||||
///
|
||||
typedef struct _EFI_PEI_S3_RESUME2_PPI EFI_PEI_S3_RESUME2_PPI;
|
||||
typedef struct _EFI_PEI_S3_RESUME2_PPI EFI_PEI_S3_RESUME2_PPI;
|
||||
|
||||
/**
|
||||
Restores the platform to its preboot configuration for an S3 resume and
|
||||
@@ -78,9 +78,9 @@ struct _EFI_PEI_S3_RESUME2_PPI {
|
||||
/// Restores the platform to its preboot configuration for an S3 resume and
|
||||
/// jumps to the OS waking vector.
|
||||
///
|
||||
EFI_PEI_S3_RESUME_PPI_RESTORE_CONFIG2 S3RestoreConfig2;
|
||||
EFI_PEI_S3_RESUME_PPI_RESTORE_CONFIG2 S3RestoreConfig2;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiS3Resume2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiS3Resume2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -42,18 +42,18 @@ typedef struct _EFI_SEC_HOB_DATA_PPI EFI_SEC_HOB_DATA_PPI;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SEC_HOB_DATA_GET) (
|
||||
(EFIAPI *EFI_SEC_HOB_DATA_GET)(
|
||||
IN CONST EFI_SEC_HOB_DATA_PPI *This,
|
||||
OUT EFI_HOB_GENERIC_HEADER **HobList
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This PPI provides a way for the SEC code to pass zero or more HOBs in a HOB list.
|
||||
///
|
||||
struct _EFI_SEC_HOB_DATA_PPI {
|
||||
EFI_SEC_HOB_DATA_GET GetHobs;
|
||||
EFI_SEC_HOB_DATA_GET GetHobs;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiSecHobDataPpiGuid;
|
||||
extern EFI_GUID gEfiSecHobDataPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -26,7 +26,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;
|
||||
|
||||
|
||||
///
|
||||
/// EFI_HEALTH_FLAGS
|
||||
/// Contains information generated by microcode, hardware, and/or the Itanium
|
||||
@@ -37,32 +36,32 @@ typedef union {
|
||||
///
|
||||
/// A 2-bit field indicating self-test state after reset.
|
||||
///
|
||||
UINT32 Status : 2;
|
||||
UINT32 Status : 2;
|
||||
///
|
||||
/// A 1-bit field indicating whether testing has occurred.
|
||||
/// If this field is zero, the processor has not been tested,
|
||||
/// and no further fields in the self-test State parameter are valid.
|
||||
///
|
||||
UINT32 Tested : 1;
|
||||
UINT32 Tested : 1;
|
||||
///
|
||||
/// Reserved 13 bits.
|
||||
///
|
||||
UINT32 Reserved1 :13;
|
||||
UINT32 Reserved1 : 13;
|
||||
///
|
||||
/// A 1-bit field. If set to 1, this indicates that virtual
|
||||
/// memory features are not available.
|
||||
///
|
||||
UINT32 VirtualMemoryUnavailable : 1;
|
||||
UINT32 VirtualMemoryUnavailable : 1;
|
||||
///
|
||||
/// A 1-bit field. If set to 1, this indicates that IA-32 execution
|
||||
/// is not available.
|
||||
///
|
||||
UINT32 Ia32ExecutionUnavailable : 1;
|
||||
UINT32 Ia32ExecutionUnavailable : 1;
|
||||
///
|
||||
/// A 1-bit field. If set to 1, this indicates that the floating
|
||||
/// point unit is not available.
|
||||
///
|
||||
UINT32 FloatingPointUnavailable : 1;
|
||||
UINT32 FloatingPointUnavailable : 1;
|
||||
///
|
||||
/// A 1-bit field. If set to 1, this indicates miscellaneous
|
||||
/// functional failure other than vm, ia, or fp.
|
||||
@@ -71,17 +70,17 @@ typedef union {
|
||||
/// performance restricted or functionally restricted.
|
||||
/// The value returned is implementation dependent.
|
||||
///
|
||||
UINT32 MiscFeaturesUnavailable : 1;
|
||||
UINT32 MiscFeaturesUnavailable : 1;
|
||||
///
|
||||
/// Reserved 12 bits.
|
||||
///
|
||||
UINT32 Reserved2 :12;
|
||||
UINT32 Reserved2 : 12;
|
||||
} Bits;
|
||||
UINT32 Uint32;
|
||||
UINT32 Uint32;
|
||||
} EFI_HEALTH_FLAGS;
|
||||
|
||||
#define NORMAL_BOOT_CALL 0x0
|
||||
#define RECOVERY_CHECK_CALL 0x3
|
||||
#define NORMAL_BOOT_CALL 0x0
|
||||
#define RECOVERY_CHECK_CALL 0x3
|
||||
|
||||
typedef EFI_HEALTH_FLAGS X64_HANDOFF_STATUS;
|
||||
typedef EFI_HEALTH_FLAGS IA32_HANDOFF_STATUS;
|
||||
@@ -93,49 +92,49 @@ typedef struct {
|
||||
/// SALE_ENTRY state : 3 = Recovery_Check
|
||||
/// and 0 = RESET or Normal_Boot phase.
|
||||
///
|
||||
UINT8 BootPhase;
|
||||
UINT8 BootPhase;
|
||||
///
|
||||
/// Firmware status on entry to SALE.
|
||||
///
|
||||
UINT8 FWStatus;
|
||||
UINT16 Reserved1;
|
||||
UINT32 Reserved2;
|
||||
UINT8 FWStatus;
|
||||
UINT16 Reserved1;
|
||||
UINT32 Reserved2;
|
||||
///
|
||||
/// Geographically significant unique processor ID assigned by PAL.
|
||||
///
|
||||
UINT16 ProcId;
|
||||
UINT16 Reserved3;
|
||||
UINT8 IdMask;
|
||||
UINT8 EidMask;
|
||||
UINT16 Reserved4;
|
||||
UINT16 ProcId;
|
||||
UINT16 Reserved3;
|
||||
UINT8 IdMask;
|
||||
UINT8 EidMask;
|
||||
UINT16 Reserved4;
|
||||
///
|
||||
/// Address to make PAL calls.
|
||||
///
|
||||
UINT64 PalCallAddress;
|
||||
UINT64 PalCallAddress;
|
||||
///
|
||||
/// If the entry state is RECOVERY_CHECK, this contains the PAL_RESET
|
||||
/// return address, and if entry state is RESET, this contains
|
||||
/// address for PAL_authentication call.
|
||||
///
|
||||
UINT64 PalSpecialAddress;
|
||||
UINT64 PalSpecialAddress;
|
||||
///
|
||||
/// GR35 from PALE_EXIT state.
|
||||
///
|
||||
UINT64 SelfTestStatus;
|
||||
UINT64 SelfTestStatus;
|
||||
///
|
||||
/// GR37 from PALE_EXIT state.
|
||||
///
|
||||
UINT64 SelfTestControl;
|
||||
UINT64 MemoryBufferRequired;
|
||||
UINT64 SelfTestControl;
|
||||
UINT64 MemoryBufferRequired;
|
||||
} ITANIUM_HANDOFF_STATUS;
|
||||
|
||||
///
|
||||
/// EFI_SEC_PLATFORM_INFORMATION_RECORD.
|
||||
///
|
||||
typedef union {
|
||||
IA32_HANDOFF_STATUS IA32HealthFlags;
|
||||
X64_HANDOFF_STATUS x64HealthFlags;
|
||||
ITANIUM_HANDOFF_STATUS ItaniumHealthFlags;
|
||||
IA32_HANDOFF_STATUS IA32HealthFlags;
|
||||
X64_HANDOFF_STATUS x64HealthFlags;
|
||||
ITANIUM_HANDOFF_STATUS ItaniumHealthFlags;
|
||||
} EFI_SEC_PLATFORM_INFORMATION_RECORD;
|
||||
|
||||
/**
|
||||
@@ -164,8 +163,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN OUT UINT64 *StructureSize,
|
||||
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
///
|
||||
/// This service abstracts platform-specific information. It is necessary
|
||||
@@ -173,10 +171,9 @@ EFI_STATUS
|
||||
/// discover where to begin dispatching PEIMs.
|
||||
///
|
||||
struct _EFI_SEC_PLATFORM_INFORMATION_PPI {
|
||||
EFI_SEC_PLATFORM_INFORMATION PlatformInformation;
|
||||
EFI_SEC_PLATFORM_INFORMATION PlatformInformation;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiSecPlatformInformationPpiGuid;
|
||||
extern EFI_GUID gEfiSecPlatformInformationPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -28,8 +28,8 @@ typedef struct _EFI_SEC_PLATFORM_INFORMATION2_PPI EFI_SEC_PLATFORM_INFORMATION2_
|
||||
/// EFI_SEC_PLATFORM_INFORMATION_CPU.
|
||||
///
|
||||
typedef struct {
|
||||
UINT32 CpuLocation;
|
||||
EFI_SEC_PLATFORM_INFORMATION_RECORD InfoRecord;
|
||||
UINT32 CpuLocation;
|
||||
EFI_SEC_PLATFORM_INFORMATION_RECORD InfoRecord;
|
||||
} EFI_SEC_PLATFORM_INFORMATION_CPU;
|
||||
|
||||
///
|
||||
@@ -39,8 +39,8 @@ typedef struct {
|
||||
///
|
||||
/// The CPU location would be the local APIC ID
|
||||
///
|
||||
UINT32 NumberOfCpus;
|
||||
EFI_SEC_PLATFORM_INFORMATION_CPU CpuInstance[1];
|
||||
UINT32 NumberOfCpus;
|
||||
EFI_SEC_PLATFORM_INFORMATION_CPU CpuInstance[1];
|
||||
} EFI_SEC_PLATFORM_INFORMATION_RECORD2;
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN OUT UINT64 *StructureSize,
|
||||
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2 *PlatformInformationRecord2
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This service abstracts platform-specific information for many CPU's.
|
||||
@@ -71,9 +71,9 @@ EFI_STATUS
|
||||
/// implementations that synchronize some, if not all CPU's in the SEC phase.
|
||||
///
|
||||
struct _EFI_SEC_PLATFORM_INFORMATION2_PPI {
|
||||
EFI_SEC_PLATFORM_INFORMATION2 PlatformInformation2;
|
||||
EFI_SEC_PLATFORM_INFORMATION2 PlatformInformation2;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiSecPlatformInformation2PpiGuid;
|
||||
extern EFI_GUID gEfiSecPlatformInformation2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,8 +19,7 @@
|
||||
#define EFI_PEI_SECURITY2_PPI_GUID \
|
||||
{ 0xdcd0be23, 0x9586, 0x40f4, { 0xb6, 0x43, 0x6, 0x52, 0x2c, 0xed, 0x4e, 0xde } }
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_SECURITY2_PPI EFI_PEI_SECURITY2_PPI;
|
||||
typedef struct _EFI_PEI_SECURITY2_PPI EFI_PEI_SECURITY2_PPI;
|
||||
|
||||
/**
|
||||
Allows the platform builder to implement a security policy
|
||||
@@ -71,7 +70,7 @@ EFI_STATUS
|
||||
IN EFI_PEI_FV_HANDLE FvHandle,
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
IN OUT BOOLEAN *DeferExecution
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This PPI is a means by which the platform builder can indicate
|
||||
@@ -86,10 +85,9 @@ EFI_STATUS
|
||||
/// trusted.
|
||||
///
|
||||
struct _EFI_PEI_SECURITY2_PPI {
|
||||
EFI_PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState;
|
||||
EFI_PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState;
|
||||
};
|
||||
|
||||
|
||||
extern EFI_GUID gEfiPeiSecurity2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiSecurity2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,7 +19,6 @@
|
||||
#define EFI_PEI_SMBUS2_PPI_GUID \
|
||||
{ 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }
|
||||
|
||||
|
||||
typedef struct _EFI_PEI_SMBUS2_PPI EFI_PEI_SMBUS2_PPI;
|
||||
|
||||
/**
|
||||
@@ -74,7 +73,7 @@ EFI_STATUS
|
||||
IN BOOLEAN PecCheck,
|
||||
IN OUT UINTN *Length,
|
||||
IN OUT VOID *Buffer
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
The ArpDevice() function enumerates the entire bus or enumerates a specific
|
||||
@@ -107,7 +106,7 @@ EFI_STATUS
|
||||
IN BOOLEAN ArpAll,
|
||||
IN EFI_SMBUS_UDID *SmbusUdid OPTIONAL,
|
||||
IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
The GetArpMap() function returns the mapping of all the SMBus devices
|
||||
@@ -128,7 +127,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_SMBUS2_PPI *This,
|
||||
IN OUT UINTN *Length,
|
||||
IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
CallBack function can be registered in EFI_PEI_SMBUS2_PPI_NOTIFY.
|
||||
@@ -150,7 +149,7 @@ EFI_STATUS
|
||||
IN CONST EFI_PEI_SMBUS2_PPI *SmbusPpi,
|
||||
IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
|
||||
IN UINTN Data
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
The Notify() function registers all the callback functions to allow the
|
||||
@@ -175,23 +174,23 @@ EFI_STATUS
|
||||
IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
|
||||
IN UINTN Data,
|
||||
IN EFI_PEI_SMBUS_NOTIFY2_FUNCTION NotifyFunction
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// Provides the basic I/O interfaces that a PEIM uses to access
|
||||
/// its SMBus controller and the slave devices attached to it.
|
||||
///
|
||||
struct _EFI_PEI_SMBUS2_PPI {
|
||||
EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;
|
||||
EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;
|
||||
EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;
|
||||
EFI_PEI_SMBUS2_PPI_NOTIFY Notify;
|
||||
EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;
|
||||
EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;
|
||||
EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;
|
||||
EFI_PEI_SMBUS2_PPI_NOTIFY Notify;
|
||||
///
|
||||
/// Identifier which uniquely identifies this SMBus controller in a system.
|
||||
///
|
||||
EFI_GUID Identifier;
|
||||
EFI_GUID Identifier;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiSmbus2PpiGuid;
|
||||
extern EFI_GUID gEfiPeiSmbus2PpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -46,11 +46,11 @@ struct _EFI_PEI_STALL_PPI {
|
||||
///
|
||||
/// The resolution in microseconds of the stall services.
|
||||
///
|
||||
UINTN Resolution;
|
||||
UINTN Resolution;
|
||||
|
||||
EFI_PEI_STALL Stall;
|
||||
EFI_PEI_STALL Stall;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiPeiStallPpiGuid;
|
||||
extern EFI_GUID gEfiPeiStallPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -27,9 +27,9 @@
|
||||
/// There can be only one instance of this service in the system.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_PEI_REPORT_STATUS_CODE ReportStatusCode;
|
||||
EFI_PEI_REPORT_STATUS_CODE ReportStatusCode;
|
||||
} EFI_PEI_PROGRESS_CODE_PPI;
|
||||
|
||||
extern EFI_GUID gEfiPeiStatusCodePpiGuid;
|
||||
extern EFI_GUID gEfiPeiStatusCodePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,12 +19,12 @@
|
||||
0x23a464ad, 0xcb83, 0x48b8, {0x94, 0xab, 0x1a, 0x6f, 0xef, 0xcf, 0xe5, 0x22} \
|
||||
}
|
||||
|
||||
typedef struct _EFI_SIO_PPI EFI_SIO_PPI;
|
||||
typedef struct _EFI_SIO_PPI *PEFI_SIO_PPI;
|
||||
typedef struct _EFI_SIO_PPI EFI_SIO_PPI;
|
||||
typedef struct _EFI_SIO_PPI *PEFI_SIO_PPI;
|
||||
|
||||
typedef UINT16 EFI_SIO_REGISTER;
|
||||
#define EFI_SIO_REG(ldn,reg) (EFI_SIO_REGISTER) (((ldn) << 8) | reg)
|
||||
#define EFI_SIO_LDN_GLOBAL 0xFF
|
||||
#define EFI_SIO_REG(ldn, reg) (EFI_SIO_REGISTER) (((ldn) << 8) | reg)
|
||||
#define EFI_SIO_LDN_GLOBAL 0xFF
|
||||
|
||||
/**
|
||||
Read a Super I/O register.
|
||||
@@ -136,15 +136,15 @@ EFI_STATUS
|
||||
///
|
||||
/// Specifies the end of the information list.
|
||||
///
|
||||
#define EFI_ACPI_PNP_HID_END EFI_PNP_ID (0x0000)
|
||||
#define EFI_ACPI_PNP_HID_END EFI_PNP_ID (0x0000)
|
||||
|
||||
typedef UINT32 EFI_ACPI_HID;
|
||||
typedef UINT32 EFI_ACPI_UID;
|
||||
typedef UINT32 EFI_ACPI_HID;
|
||||
typedef UINT32 EFI_ACPI_UID;
|
||||
#pragma pack(1)
|
||||
typedef struct _EFI_SIO_INFO {
|
||||
EFI_ACPI_HID Hid;
|
||||
EFI_ACPI_UID Uid;
|
||||
UINT8 Ldn;
|
||||
EFI_ACPI_HID Hid;
|
||||
EFI_ACPI_UID Uid;
|
||||
UINT8 Ldn;
|
||||
} EFI_SIO_INFO, *PEFI_SIO_INFO;
|
||||
#pragma pack()
|
||||
|
||||
@@ -158,26 +158,26 @@ struct _EFI_SIO_PPI {
|
||||
///
|
||||
/// This function reads a register's value from the Super I/O controller.
|
||||
///
|
||||
EFI_PEI_SIO_REGISTER_READ Read;
|
||||
EFI_PEI_SIO_REGISTER_READ Read;
|
||||
///
|
||||
/// This function writes a value to a register in the Super I/O controller.
|
||||
///
|
||||
EFI_PEI_SIO_REGISTER_WRITE Write;
|
||||
EFI_PEI_SIO_REGISTER_WRITE Write;
|
||||
///
|
||||
/// This function modifies zero or more registers in the Super I/O controller
|
||||
/// using a table.
|
||||
///
|
||||
EFI_PEI_SIO_REGISTER_MODIFY Modify;
|
||||
EFI_PEI_SIO_REGISTER_MODIFY Modify;
|
||||
///
|
||||
/// This GUID uniquely identifies the Super I/O controller.
|
||||
///
|
||||
EFI_GUID SioGuid;
|
||||
EFI_GUID SioGuid;
|
||||
///
|
||||
/// This pointer is to an array which maps EISA identifiers to logical devices numbers.
|
||||
///
|
||||
PEFI_SIO_INFO Info;
|
||||
PEFI_SIO_INFO Info;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiSioPpiGuid;
|
||||
extern EFI_GUID gEfiSioPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -26,7 +26,7 @@
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * EFI_PEI_TEMPORARY_RAM_DONE) (
|
||||
(EFIAPI *EFI_PEI_TEMPORARY_RAM_DONE)(
|
||||
VOID
|
||||
);
|
||||
|
||||
@@ -38,9 +38,9 @@ EFI_STATUS
|
||||
/// Permanent RAM to be enabled and accessed at the same time with no side effects.
|
||||
///
|
||||
typedef struct _EFI_PEI_TEMPORARY_RAM_DONE_PPI {
|
||||
EFI_PEI_TEMPORARY_RAM_DONE TemporaryRamDone;
|
||||
EFI_PEI_TEMPORARY_RAM_DONE TemporaryRamDone;
|
||||
} EFI_PEI_TEMPORARY_RAM_DONE_PPI;
|
||||
|
||||
extern EFI_GUID gEfiTemporaryRamDonePpiGuid;
|
||||
extern EFI_GUID gEfiTemporaryRamDonePpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#define EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI_GUID \
|
||||
{ 0xdbe23aa9, 0xa345, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }
|
||||
|
||||
|
||||
/**
|
||||
This service of the EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into
|
||||
permanent memory.
|
||||
@@ -39,12 +38,12 @@
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * TEMPORARY_RAM_MIGRATION)(
|
||||
(EFIAPI *TEMPORARY_RAM_MIGRATION)(
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,
|
||||
IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,
|
||||
IN UINTN CopySize
|
||||
);
|
||||
);
|
||||
|
||||
///
|
||||
/// This service abstracts the ability to migrate contents of the platform early memory store.
|
||||
@@ -52,9 +51,9 @@ EFI_STATUS
|
||||
/// This PPI was optional.
|
||||
///
|
||||
typedef struct {
|
||||
TEMPORARY_RAM_MIGRATION TemporaryRamMigration;
|
||||
TEMPORARY_RAM_MIGRATION TemporaryRamMigration;
|
||||
} EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI;
|
||||
|
||||
extern EFI_GUID gEfiTemporaryRamSupportPpiGuid;
|
||||
extern EFI_GUID gEfiTemporaryRamSupportPpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -27,10 +27,10 @@
|
||||
///
|
||||
/// Vector Handoff Info Attributes
|
||||
///@{
|
||||
#define EFI_VECTOR_HANDOFF_DO_NOT_HOOK 0x00000000
|
||||
#define EFI_VECTOR_HANDOFF_HOOK_BEFORE 0x00000001
|
||||
#define EFI_VECTOR_HANDOFF_HOOK_AFTER 0x00000002
|
||||
#define EFI_VECTOR_HANDOFF_LAST_ENTRY 0x80000000
|
||||
#define EFI_VECTOR_HANDOFF_DO_NOT_HOOK 0x00000000
|
||||
#define EFI_VECTOR_HANDOFF_HOOK_BEFORE 0x00000001
|
||||
#define EFI_VECTOR_HANDOFF_HOOK_AFTER 0x00000002
|
||||
#define EFI_VECTOR_HANDOFF_LAST_ENTRY 0x80000000
|
||||
///@}
|
||||
|
||||
///
|
||||
@@ -41,16 +41,16 @@ typedef struct {
|
||||
//
|
||||
// The interrupt or exception vector that is in use and must be preserved.
|
||||
//
|
||||
UINT32 VectorNumber;
|
||||
UINT32 VectorNumber;
|
||||
//
|
||||
// A bitmask that describes the attributes of the interrupt or exception vector.
|
||||
//
|
||||
UINT32 Attribute;
|
||||
UINT32 Attribute;
|
||||
//
|
||||
// The GUID identifies the party who created the entry. For the
|
||||
// EFI_VECTOR_HANDOFF_DO_NOT_HOOK case, this establishes the single owner.
|
||||
//
|
||||
EFI_GUID Owner;
|
||||
EFI_GUID Owner;
|
||||
} EFI_VECTOR_HANDOFF_INFO;
|
||||
|
||||
///
|
||||
@@ -61,9 +61,9 @@ typedef struct _EFI_PEI_VECTOR_HANDOFF_INFO_PPI {
|
||||
//
|
||||
// Pointer to an array of interrupt and /or exception vectors.
|
||||
//
|
||||
EFI_VECTOR_HANDOFF_INFO *Info;
|
||||
EFI_VECTOR_HANDOFF_INFO *Info;
|
||||
} EFI_PEI_VECTOR_HANDOFF_INFO_PPI;
|
||||
|
||||
extern EFI_GUID gEfiVectorHandoffInfoPpiGuid;
|
||||
extern EFI_GUID gEfiVectorHandoffInfoPpiGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user