63 for ( i = 0 ; i < entries ; i++ ) {
89 unsigned int low_offset ) {
106 if (
sizeof (
unsigned long ) >
sizeof (
uint32_t ) ) {
#define PCIEA_LOW_BASE
Base address low dword.
#define PCIEA_LOW_HIGH
Offset to high dwords.
uint32_t low
Low 16 bits of address.
#define PCIEA_DESC_BEI(desc)
BAR equivalent indicator.
#define PCIEA_LOW_ATTR_MASK
Low dword attribute bit mask.
uint64_t desc
Microcode descriptor list physical address.
#define ENOENT
No such file or directory.
unsigned long long uint64_t
#define PCIEA_ENTRIES_MASK
static unsigned long pciea_bar_value(struct pci_device *pci, unsigned int bei, unsigned int low_offset)
Read PCI Enhanced Allocation BAR equivalent value.
#define PCIEA_FIRST
First entry.
int pci_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)
uint32_t high
High 32 bits of address.
#define PCIEA_ENTRIES
Number of entries.
static int pciea_offset(struct pci_device *pci, unsigned int bei)
Locate PCI Enhanced Allocation BAR equivalent entry.
#define PCIEA_LOW_LIMIT
Limit low dword.
#define PCI_FMT
PCI device debug message format.
#define PCI_CAP_ID_EA
Enhanced Allocation.
unsigned long pciea_bar_size(struct pci_device *pci, unsigned int bei)
Find the size of a PCI Enhanced Allocation BAR equivalent.
#define PCIEA_DESC_ENABLED
Entry is enabled.
unsigned long pciea_bar_start(struct pci_device *pci, unsigned int bei)
Find the start of a PCI Enhanced Allocation BAR equivalent.
#define PCIEA_DESC_SIZE(desc)
Entry size.
#define PCI_ARGS(pci)
PCI device debug message arguments.
#define PCIEA_LOW_ATTR_64BIT
BAR is 64-bit.
uint16_t offset
Offset to command line.
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.