16#define PCIAPI_PREFIX_ecam
18#define PCIAPI_PREFIX_ecam __ecam_
24#define ECAM_LOC( where, len ) ( ( (len) << 16 ) | where )
27#define ECAM_WHERE( location ) ( (location) & 0xffff )
30#define ECAM_LEN( location ) ( (location) >> 16 )
35 unsigned long value );
pseudo_bit_t value[0x00020]
static struct ecam_mapping ecam
Cached mapped ECAM allocation.
#define ECAM_LOC(where, len)
Construct ECAM location.
int ecam_write(struct pci_device *pci, unsigned int location, unsigned long value)
Write to PCI configuration space.
int ecam_read(struct pci_device *pci, unsigned int location, void *value)
Read from PCI configuration space.
#define __always_inline
Declare a function to be always inline.
#define __unused
Declare a variable or data structure as unused.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
void * ioremap(unsigned long bus_addr, size_t len)
Map bus address as an I/O address.
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.
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 PCIAPI_INLINE(_subsys, _api_func)
Calculate static inline PCI I/O API function name.
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 void unsigned long bus_addr
static __always_inline int unsigned int where