]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/mlx5/mlx5_common.h
common/mlx5: share PCI device detection
[dpdk.git] / drivers / common / mlx5 / mlx5_common.h
index 9f10defa644d38cc2ba6e1351ba376a60d5ab485..107ab8d496b632bc49b420692f72bdf64d2c2dce 100644 (file)
@@ -6,7 +6,9 @@
 #define RTE_PMD_MLX5_COMMON_H_
 
 #include <assert.h>
+#include <stdio.h>
 
+#include <rte_pci.h>
 #include <rte_log.h>
 
 
@@ -84,4 +86,6 @@ pmd_drv_log_basename(const char *s)
        \
        snprintf(name, sizeof(name), "" __VA_ARGS__)
 
+int mlx5_dev_to_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr);
+
 #endif /* RTE_PMD_MLX5_COMMON_H_ */