52 #include <sys/queue.h>
60 #define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
61 #define PCI_PRI_STR_SIZE sizeof("XXXXXXXX:XX:XX.X")
64 #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8
67 #define PCI_FMT_NVAL 4
70 #define PCI_RESOURCE_FMT_NVAL 3
73 #define PCI_MAX_RESOURCE 6
98 #define PCI_ANY_ID (0xffff)
99 #define RTE_CLASS_ANY_ID (0xffffff)
112 struct pci_msix_table {
129 struct pci_map maps[PCI_MAX_RESOURCE];
130 struct pci_msix_table msix_table;
181 char *output,
size_t size);
247 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)