165 static struct pci_api *apis[] = {
172 for ( i = 0 ; i < (
sizeof ( apis ) /
sizeof ( apis[0] ) ) ; i++ ) {
static void pcicloud_discover(uint32_t busdevfn, struct pci_range *range)
Find next PCI bus:dev.fn address range in system.
static __always_inline void struct pci_range * range
typeof() pci_discover * pci_discover
typeof() pci_read_config_word * pci_read_config_word
typeof() pci_write_config_byte * pci_write_config_byte
PCI configuration space access via PCI BIOS.
typeof() pci_read_config_dword * pci_read_config_dword
#define INIT_EARLY
Early initialisation.
PROVIDE_PCIAPI(cloud, pci_discover, pcicloud_discover)
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_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
static int pcicloud_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
Cloud VM PCI configuration space access.
struct pci_api pcidirect_api
struct pci_api pcibios_api
static int pcicloud_write_config_word(struct pci_device *pci, unsigned int where, uint16_t value)
Write 16-bit word to PCI configuration space.
uint16_t busdevfn
PCI bus:dev.fn address.
An initialisation function.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
typeof() pci_write_config_word * pci_write_config_word
struct init_fn pcicloud_init_fn __init_fn(INIT_EARLY)
Cloud VM PCI configuration space access initialisation function.
A PCI bus:dev.fn address range.
pseudo_bit_t value[0x00020]
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
static int pcicloud_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
A runtime selectable PCI I/O API.
static void * pcicloud_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
PCI I/O API for Enhanced Configuration Access Mechanism (ECAM)
typeof() pci_read_config_byte * pci_read_config_byte
typeof() pci_ioremap * pci_ioremap
static int pcicloud_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
unsigned int count
Number of bus:dev.fn addresses within this range.
void pci_discover(uint32_t busdevfn, struct pci_range *range)
Find next PCI bus:dev.fn address range in system.
PCI configuration space access via Type 1 accesses.
static int pcicloud_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
static struct pci_api * pcicloud
Selected PCI configuration space access API.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
static void pcicloud_init(void)
Initialise cloud VM PCI configuration space access.
static int pcicloud_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.
void * pci_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
static __always_inline void unsigned long bus_addr
static __always_inline int unsigned int where
typeof() pci_write_config_dword * pci_write_config_dword
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.