Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pcivar.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | struct pcicfg_msix { | ||||
int msix_alloc; /* Number of allocated vectors. */ | int msix_alloc; /* Number of allocated vectors. */ | ||||
int msix_table_len; /* Length of virtual table. */ | int msix_table_len; /* Length of virtual table. */ | ||||
struct msix_table_entry *msix_table; /* Virtual table. */ | struct msix_table_entry *msix_table; /* Virtual table. */ | ||||
struct msix_vector *msix_vectors; /* Array of allocated vectors. */ | struct msix_vector *msix_vectors; /* Array of allocated vectors. */ | ||||
struct resource *msix_table_res; /* Resource containing vector table. */ | struct resource *msix_table_res; /* Resource containing vector table. */ | ||||
struct resource *msix_pba_res; /* Resource containing PBA. */ | struct resource *msix_pba_res; /* Resource containing PBA. */ | ||||
}; | }; | ||||
struct pci_id_ofw_iommu { | |||||
jhb: I would rename this to match the constant (either pci_id_ofw_iommu or pci_id_fdt_iommu) | |||||
uint32_t id; | |||||
uint32_t xref; | |||||
}; | |||||
/* Interesting values for HyperTransport */ | /* Interesting values for HyperTransport */ | ||||
struct pcicfg_ht { | struct pcicfg_ht { | ||||
uint8_t ht_slave; /* Non-zero if device is an HT slave. */ | uint8_t ht_slave; /* Non-zero if device is an HT slave. */ | ||||
uint8_t ht_msimap; /* Offset of MSI mapping cap registers. */ | uint8_t ht_msimap; /* Offset of MSI mapping cap registers. */ | ||||
uint16_t ht_msictrl; /* MSI mapping control */ | uint16_t ht_msictrl; /* MSI mapping control */ | ||||
uint64_t ht_msiaddr; /* MSI mapping base address */ | uint64_t ht_msiaddr; /* MSI mapping base address */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 597 Lines • Show Last 20 Lines |
I would rename this to match the constant (either pci_id_ofw_iommu or pci_id_fdt_iommu)