Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pci.h
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | struct pci_mmio_region { | ||||
int type; | int type; | ||||
}; | }; | ||||
struct pci_dev { | struct pci_dev { | ||||
struct device dev; | struct device dev; | ||||
struct list_head links; | struct list_head links; | ||||
struct pci_driver *pdrv; | struct pci_driver *pdrv; | ||||
struct pci_bus *bus; | struct pci_bus *bus; | ||||
struct pci_dev *root; | |||||
uint16_t device; | uint16_t device; | ||||
uint16_t vendor; | uint16_t vendor; | ||||
uint16_t subsystem_vendor; | uint16_t subsystem_vendor; | ||||
uint16_t subsystem_device; | uint16_t subsystem_device; | ||||
unsigned int irq; | unsigned int irq; | ||||
unsigned int devfn; | unsigned int devfn; | ||||
uint32_t class; | uint32_t class; | ||||
uint8_t revision; | uint8_t revision; | ||||
bool managed; /* devres "pcim_*(). */ | |||||
bool want_iomap_res; | |||||
bool msi_enabled; | bool msi_enabled; | ||||
bool msix_enabled; | |||||
phys_addr_t rom; | |||||
size_t romlen; | |||||
TAILQ_HEAD(, pci_mmio_region) mmio; | TAILQ_HEAD(, pci_mmio_region) mmio; | ||||
/* Add all new items at the end of the list in 13 */ | |||||
struct pci_dev *root; | |||||
phys_addr_t rom; | |||||
size_t romlen; | |||||
bool managed; /* devres "pcim_*(). */ | |||||
bool want_iomap_res; | |||||
bool msix_enabled; | |||||
}; | }; | ||||
/* XXX add kassert here on the mmio offset */ | |||||
/* We need some meta-struct to keep track of these for devres. */ | /* We need some meta-struct to keep track of these for devres. */ | ||||
struct pci_devres { | struct pci_devres { | ||||
bool enable_io; | bool enable_io; | ||||
/* PCIR_MAX_BAR_0 + 1 = 6 => BIT(0..5). */ | /* PCIR_MAX_BAR_0 + 1 = 6 => BIT(0..5). */ | ||||
uint8_t region_mask; | uint8_t region_mask; | ||||
struct resource *region_table[PCIR_MAX_BAR_0 + 1]; /* Not needed. */ | struct resource *region_table[PCIR_MAX_BAR_0 + 1]; /* Not needed. */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 1,256 Lines • Show Last 20 Lines |