21 #include <sys/queue.h>
25 #define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
26 #define PCI_PRI_STR_SIZE sizeof("XXXXXXXX:XX:XX.X")
29 #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
32 #define PCI_FMT_NVAL 4
35 #define PCI_RESOURCE_FMT_NVAL 3
38 #define PCI_MAX_RESOURCE 6
63 #define PCI_ANY_ID (0xffff)
64 #define RTE_CLASS_ANY_ID (0xffffff)
77 struct pci_msix_table {
94 struct pci_map maps[PCI_MAX_RESOURCE];
95 struct pci_msix_table msix_table;
115 char *output,
size_t size);
165 size_t size,
int additional_flags);
int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr)
uint16_t subsystem_device_id
void rte_pci_device_name(const struct rte_pci_addr *addr, char *output, size_t size)
uint16_t subsystem_vendor_id
TAILQ_HEAD(mapped_pci_res_list, mapped_pci_resource)
void pci_unmap_resource(void *requested_addr, size_t size)
int rte_pci_addr_cmp(const struct rte_pci_addr *addr, const struct rte_pci_addr *addr2)
void * pci_map_resource(void *requested_addr, int fd, off_t offset, size_t size, int additional_flags)