154 return api->pci_can_probe ( pci );
#define NULL
NULL pointer (VOID *)
pseudo_bit_t value[0x00020]
uint16_t busdevfn
PCI bus:dev.fn address.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
int pci_can_probe(struct pci_device *pci)
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_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word 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.
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
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_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.
#define PROVIDE_PCIAPI(_subsys, _api_func, _func)
Provide a PCI I/O API implementation.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
#define PCI_APIS
Runtime selectable PCI API table.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
uint32_t first
First block in range.
#define PCI_FMT
PCI device debug message format.
#define PCI_SEG(busdevfn)
#define PCI_FUNC(busdevfn)
#define PCI_BUS(busdevfn)
#define PCI_SLOT(busdevfn)
static __always_inline void unsigned long bus_addr
static __always_inline int unsigned int where
static int pcicloud_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to 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.
struct pci_api * api
API for this bus:dev.fn address.
static struct pci_api * pcicloud_find(uint32_t busdevfn, struct pci_range *range)
Find PCI configuration space access API for address.
static void * pcicloud_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
static int pcicloud_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
static struct @164334221061242153220350147373067220175352131324 pcicloud
Cached PCI configuration space access API.
static int pcicloud_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.
static struct pci_api * pcicloud_api(struct pci_device *pci)
Find configuration space access API for PCI device.
static int pcicloud_can_probe(struct pci_device *pci)
Check if PCI bus probing is allowed.
struct pci_range range
PCI bus:dev.fn address range.
static void pcicloud_discover(uint32_t busdevfn, struct pci_range *range)
Find next PCI bus:dev.fn address range in system.
static int pcicloud_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
static int pcicloud_write_config_word(struct pci_device *pci, unsigned int where, uint16_t value)
Write 16-bit word to PCI configuration space.
Cloud VM PCI configuration space access.
A runtime selectable PCI I/O API.
uint32_t busdevfn
Segment, bus, device, and function (bus:dev.fn) number.
A PCI bus:dev.fn address range.
unsigned int count
Number of bus:dev.fn addresses within this range.
uint32_t start
Starting bus:dev.fn address.
#define table_end(table)
Get end of linker table.
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.