|
DPDK 25.11.0
|
#include <stdio.h>#include <inttypes.h>#include <sys/types.h>Go to the source code of this file.
Data Structures | |
| struct | rte_pci_id |
| struct | rte_pci_addr |
Macros | |
| #define | PCI_PRI_FMT "%.4" PRIx32 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 |
| #define | PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 |
| #define | PCI_FMT_NVAL 4 |
| #define | PCI_RESOURCE_FMT_NVAL 3 |
| #define | PCI_MAX_RESOURCE 6 |
| #define | RTE_PCI_ANY_ID (0xffff) |
| #define | PCI_ANY_ID RTE_DEPRECATED(PCI_ANY_ID) RTE_PCI_ANY_ID |
Functions | |
| void | rte_pci_device_name (const struct rte_pci_addr *addr, char *output, size_t size) |
| int | rte_pci_addr_cmp (const struct rte_pci_addr *addr, const struct rte_pci_addr *addr2) |
| int | rte_pci_addr_parse (const char *str, struct rte_pci_addr *addr) |
RTE PCI Library
Definition in file rte_pci.h.
| #define PCI_PRI_FMT "%.4" PRIx32 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 |
| #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 |
| #define PCI_FMT_NVAL 4 |
| #define PCI_RESOURCE_FMT_NVAL 3 |
| #define PCI_MAX_RESOURCE 6 |
| #define RTE_PCI_ANY_ID (0xffff) |
| #define PCI_ANY_ID RTE_DEPRECATED(PCI_ANY_ID) RTE_PCI_ANY_ID |
| void rte_pci_device_name | ( | const struct rte_pci_addr * | addr, |
| char * | output, | ||
| size_t | size ) |
Utility function to write a pci device name, this device name can later be used to retrieve the corresponding rte_pci_addr using rte_pci_addr_parse().
| addr | The PCI Bus-Device-Function address |
| output | The output buffer string |
| size | The output buffer size |
| int rte_pci_addr_cmp | ( | const struct rte_pci_addr * | addr, |
| const struct rte_pci_addr * | addr2 ) |
Utility function to compare two PCI device addresses.
| addr | The PCI Bus-Device-Function address to compare |
| addr2 | The PCI Bus-Device-Function address to compare |
| int rte_pci_addr_parse | ( | const char * | str, |
| struct rte_pci_addr * | addr ) |
Utility function to parse a string into a PCI location.
| str | The string to parse |
| addr | The reference to the structure where the location is stored. |