1 #ifndef _IPXE_PCIBIOS_H 2 #define _IPXE_PCIBIOS_H 15 #define PCIAPI_PREFIX_pcbios 17 #define PCIAPI_PREFIX_pcbios __pcbios_ 22 #define PCIBIOS_INSTALLATION_CHECK 0xb1010000 23 #define PCIBIOS_READ_CONFIG_BYTE 0xb1080000 24 #define PCIBIOS_READ_CONFIG_WORD 0xb1090000 25 #define PCIBIOS_READ_CONFIG_DWORD 0xb10a0000 26 #define PCIBIOS_WRITE_CONFIG_BYTE 0xb10b0000 27 #define PCIBIOS_WRITE_CONFIG_WORD 0xb10c0000 28 #define PCIBIOS_WRITE_CONFIG_DWORD 0xb10d0000
int pci_write_config_word(struct pci_device *pci, unsigned int where, uint16_t value)
Write 16-bit word to PCI configuration space.
int pci_can_probe(void)
Check if PCI bus probing is allowed.
#define PCIBIOS_READ_CONFIG_DWORD
int pci_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
static __always_inline void unsigned long bus_addr
static __always_inline void unsigned long size_t len
struct pci_api pcibios_api
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
#define __unused
Declare a variable or data structure as unused.
static __always_inline int PCIAPI_INLINE(pcbios, pci_can_probe)(void)
Check if PCI bus probing is allowed.
static __always_inline int unsigned int uint8_t * value
int pcibios_write(struct pci_device *pci, uint32_t command, uint32_t value)
Write configuration space via PCI BIOS.
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
A runtime selectable PCI I/O API.
#define __always_inline
Declare a function to be always inline.
#define PCIBIOS_WRITE_CONFIG_BYTE
#define PCIBIOS_WRITE_CONFIG_DWORD
#define PCIBIOS_READ_CONFIG_BYTE
int pcibios_read(struct pci_device *pci, uint32_t command, uint32_t *value)
Read configuration space via PCI BIOS.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
static __always_inline int unsigned int where
#define PCIBIOS_WRITE_CONFIG_WORD
void * ioremap(unsigned long bus_addr, size_t len)
Map bus address as an I/O address.
void * pci_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
#define PCIBIOS_READ_CONFIG_WORD
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.