21#ifndef __PEI_PCI_CFG2_H__
22#define __PEI_PCI_CFG2_H__
26#define EFI_PEI_PCI_CFG2_PPI_GUID \
27 { 0x57a449a, 0x1fdc, 0x4c06, { 0xbf, 0xc9, 0xf5, 0x3f, 0x6a, 0x99, 0xbb, 0x92 } }
31#define EFI_PEI_PCI_CFG_ADDRESS(bus,dev,func,reg) \
33 (((UINTN) bus) << 24) | \
34 (((UINTN) dev) << 16) | \
35 (((UINTN) func) << 8) | \
36 (((UINTN) (reg)) < 256 ? ((UINTN) (reg)) : (UINT64) (LShiftU64 ((UINT64) (reg), 32))))
#define EFIAPI
Definition ProcessorBind.h:172
unsigned int UINT32
Definition ProcessorBind.h:102
#define CONST
Definition Base.h:327
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
EFI_PEI_PCI_CFG_PPI_WIDTH
Definition PciCfg2.h:41
@ EfiPeiPciCfgWidthUint64
Definition PciCfg2.h:57
@ EfiPeiPciCfgWidthMaximum
Definition PciCfg2.h:58
@ EfiPeiPciCfgWidthUint8
Definition PciCfg2.h:45
@ EfiPeiPciCfgWidthUint16
Definition PciCfg2.h:49
@ EfiPeiPciCfgWidthUint32
Definition PciCfg2.h:53
EFI_STATUS(EFIAPI * EFI_PEI_PCI_CFG2_PPI_RW)(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_PCI_CFG2_PPI *This, IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN VOID *SetBits, IN VOID *ClearBits)
Definition PciCfg2.h:158
EFI_GUID gEfiPciCfg2PpiGuid
EFI_STATUS(EFIAPI * EFI_PEI_PCI_CFG2_PPI_IO)(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_PCI_CFG2_PPI *This, IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN OUT VOID *Buffer)
Definition PciCfg2.h:117
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33
#define VOID
Definition acefi.h:190
ACPI_PHYSICAL_ADDRESS Address
Definition acpixf.h:637
unsigned short UINT16
Definition actypes.h:237
unsigned char UINT8
Definition actypes.h:236
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239
UINT32 ExtendedRegister
Definition PciCfg2.h:88
UINT8 Register
Definition PciCfg2.h:69
UINT8 Device
Definition PciCfg2.h:78
UINT8 Function
Definition PciCfg2.h:74
UINT8 Bus
Definition PciCfg2.h:82
EFI_PEI_PCI_CFG2_PPI_RW Modify
Definition PciCfg2.h:174
EFI_PEI_PCI_CFG2_PPI_IO Write
Definition PciCfg2.h:173
UINT16 Segment
Definition PciCfg2.h:178
EFI_PEI_PCI_CFG2_PPI_IO Read
Definition PciCfg2.h:172
Definition PiPeiCis.h:889