21 #include <sys/queue.h>
23 #include <sys/types.h>
26 #define PCI_PRI_FMT "%.4" PRIx32 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
27 #define PCI_PRI_STR_SIZE sizeof("XXXXXXXX:XX:XX.X")
30 #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
33 #define PCI_FMT_NVAL 4
36 #define PCI_RESOURCE_FMT_NVAL 3
39 #define PCI_MAX_RESOURCE 6
64 #define PCI_ANY_ID (0xffff)
65 #define RTE_CLASS_ANY_ID (0xffffff)
78 struct pci_msix_table {
95 struct pci_map maps[PCI_MAX_RESOURCE];
96 struct pci_msix_table msix_table;
116 char *output,
size_t size);
166 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)