12#ifndef __S3_PCI_LIB_H__
13#define __S3_PCI_LIB_H__
28#define S3_PCI_LIB_ADDRESS(Bus, Device, Function, Register) \
29 (((Register) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
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)
UINT16 EFIAPI S3PciWrite16(IN UINTN Address, IN UINT16 Value)
UINT8 EFIAPI S3PciAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
UINTN EFIAPI S3PciWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
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 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)