23 #include <sys/queue.h>
31 #define PCI_PRI_FMT "%.4" PRIx32 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
32 #define PCI_PRI_STR_SIZE sizeof("XXXXXXXX:XX:XX.X")
35 #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
38 #define PCI_FMT_NVAL 4
41 #define PCI_RESOURCE_FMT_NVAL 3
44 #define PCI_MAX_RESOURCE 6
69 #define PCI_ANY_ID (0xffff)
70 #define RTE_CLASS_ANY_ID (0xffffff)
83 struct pci_msix_table {
100 struct pci_map maps[PCI_MAX_RESOURCE];
101 struct pci_msix_table msix_table;
152 char *output,
size_t size);
218 size_t size,
int additional_flags);
int eal_parse_pci_BDF(const char *input, struct rte_pci_addr *dev_addr)
int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr)
int rte_eal_compare_pci_addr(const struct rte_pci_addr *addr, const struct rte_pci_addr *addr2)
int eal_parse_pci_DomBDF(const char *input, struct rte_pci_addr *dev_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)