1 #ifndef _IPXE_LINUX_PCI_H 2 #define _IPXE_LINUX_PCI_H 13 #define PCIAPI_PREFIX_linux 15 #define PCIAPI_PREFIX_linux __linux_ uint32_t start
Starting bus:dev.fn address.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
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.
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 size_t len
static __always_inline int unsigned int where
static __always_inline void struct pci_range * range
static __always_inline int unsigned int uint8_t * value
uint16_t busdevfn
PCI bus:dev.fn address.
static __always_inline void unsigned long bus_addr
int linux_pci_write(struct pci_device *pci, unsigned long where, unsigned long value, size_t len)
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.
A PCI bus:dev.fn address range.
#define PCI_BUSDEVFN(segment, bus, slot, func)
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
int linux_pci_read(struct pci_device *pci, unsigned long where, unsigned long *value, size_t len)
#define __always_inline
Declare a function to be always inline.
unsigned int count
Number of bus:dev.fn addresses within this range.
static __always_inline int PCIAPI_INLINE(linux, pci_can_probe)(void)
Check if PCI bus probing is allowed.
void pci_discover(uint32_t busdevfn, struct pci_range *range)
Find next PCI bus:dev.fn address range in system.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
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.
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.