19#define PCILIB_TO_COMMON_ADDRESS(Address) \
20 ((((UINTN) ((Address>>20) & 0xff)) << 24) + (((UINTN) ((Address>>15) & 0x1f)) << 16) + (((UINTN) ((Address>>12) & 0x07)) << 8) + ((UINTN) (Address & 0xfff )))
47 PCILIB_TO_COMMON_ADDRESS (Address),
1204 RETURN_STATUS Status;
1208 PCILIB_TO_COMMON_ADDRESS (StartAddress),
1250 RETURN_STATUS Status;
1254 PCILIB_TO_COMMON_ADDRESS (StartAddress),
RETURN_STATUS EFIAPI S3BootScriptSavePciCfgWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
UINT16 EFIAPI PciBitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINTN EFIAPI PciWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT32 EFIAPI PciBitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT32 EFIAPI PciAndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
UINT32 EFIAPI PciBitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT32 EFIAPI PciRead32(IN UINTN Address)
UINT32 EFIAPI PciOr32(IN UINTN Address, IN UINT32 OrData)
UINT8 EFIAPI PciBitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT8 EFIAPI PciRead8(IN UINTN Address)
UINT8 EFIAPI PciAnd8(IN UINTN Address, IN UINT8 AndData)
UINT8 EFIAPI PciOr8(IN UINTN Address, IN UINT8 OrData)
UINT16 EFIAPI PciAnd16(IN UINTN Address, IN UINT16 AndData)
UINT32 EFIAPI PciWrite32(IN UINTN Address, IN UINT32 Value)
UINT16 EFIAPI PciOr16(IN UINTN Address, IN UINT16 OrData)
UINT16 EFIAPI PciBitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT32 EFIAPI PciBitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT32 EFIAPI PciBitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI PciBitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT8 EFIAPI PciAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
UINT8 EFIAPI PciWrite8(IN UINTN Address, IN UINT8 Value)
UINT16 EFIAPI PciWrite16(IN UINTN Address, IN UINT16 Value)
UINT16 EFIAPI PciBitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI PciBitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT8 EFIAPI PciBitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT8 EFIAPI PciBitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT8 EFIAPI PciBitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT32 EFIAPI PciAnd32(IN UINTN Address, IN UINT32 AndData)
UINT32 EFIAPI PciBitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT8 EFIAPI PciBitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI PciAndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
UINTN EFIAPI PciReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT16 EFIAPI PciRead16(IN UINTN Address)
@ S3BootScriptWidthUint16
16-bit operation.
@ S3BootScriptWidthUint32
32-bit operation.
@ S3BootScriptWidthUint8
8-bit operation.
UINT32 EFIAPI S3PciBitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT16 EFIAPI S3PciBitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINT16 EFIAPI S3PciOr16(IN UINTN Address, IN UINT16 OrData)
VOID InternalSavePciWriteValueToBootScript(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINTN Address, IN VOID *Buffer)
UINT16 EFIAPI S3PciWrite16(IN UINTN Address, IN UINT16 Value)
UINT8 EFIAPI S3PciAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
UINT32 InternalSavePciWrite32ValueToBootScript(IN UINTN Address, IN UINT32 Value)
UINTN EFIAPI S3PciWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT16 InternalSavePciWrite16ValueToBootScript(IN UINTN Address, IN UINT16 Value)
UINT16 EFIAPI S3PciRead16(IN UINTN Address)
UINT8 EFIAPI S3PciWrite8(IN UINTN Address, IN UINT8 Value)
UINT16 EFIAPI S3PciAnd16(IN UINTN Address, IN UINT16 AndData)
UINT16 EFIAPI S3PciBitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT16 EFIAPI S3PciBitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT8 InternalSavePciWrite8ValueToBootScript(IN UINTN Address, IN UINT8 Value)
UINT8 EFIAPI S3PciRead8(IN UINTN Address)
UINT8 EFIAPI S3PciOr8(IN UINTN Address, IN UINT8 OrData)
UINT32 EFIAPI S3PciBitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT32 EFIAPI S3PciRead32(IN UINTN Address)
UINT16 EFIAPI S3PciBitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT8 EFIAPI S3PciBitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT16 EFIAPI S3PciAndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
UINTN EFIAPI S3PciReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT32 EFIAPI S3PciBitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT8 EFIAPI S3PciBitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT32 EFIAPI S3PciAndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
UINT16 EFIAPI S3PciBitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI S3PciAnd32(IN UINTN Address, IN UINT32 AndData)
UINT32 EFIAPI S3PciWrite32(IN UINTN Address, IN UINT32 Value)
UINT8 EFIAPI S3PciBitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI S3PciBitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT8 EFIAPI S3PciBitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT32 EFIAPI S3PciBitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT8 EFIAPI S3PciAnd8(IN UINTN Address, IN UINT8 AndData)
UINT8 EFIAPI S3PciBitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT32 EFIAPI S3PciOr32(IN UINTN Address, IN UINT32 OrData)