15#ifndef __PEI_PCI_CFG2_H__
16#define __PEI_PCI_CFG2_H__
20#define EFI_PEI_PCI_CFG2_PPI_GUID \
21 { 0x57a449a, 0x1fdc, 0x4c06, { 0xbf, 0xc9, 0xf5, 0x3f, 0x6a, 0x99, 0xbb, 0x92 } }
25#define EFI_PEI_PCI_CFG_ADDRESS(bus, dev, func, reg) \
27 (((UINTN) bus) << 24) | \
28 (((UINTN) dev) << 16) | \
29 (((UINTN) func) << 8) | \
30 (((UINTN) (reg)) < 256 ? ((UINTN) (reg)) : (UINT64) (LShiftU64 ((UINT64) (reg), 32))))
52 EfiPeiPciCfgWidthMaximum
STATIC VOID ClearBits(IN EFI_PHYSICAL_ADDRESS Address, IN UINTN BitNumber, IN UINT64 *BitMap)
STATIC VOID SetBits(IN EFI_PHYSICAL_ADDRESS Address, IN UINTN BitNumber, IN UINT64 *BitMap)
EFI_PEI_PCI_CFG_PPI_WIDTH
@ EfiPeiPciCfgWidthUint64
@ EfiPeiPciCfgWidthUint16
@ EfiPeiPciCfgWidthUint32
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)
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)