| 50 | } |
| 51 | |
| 52 | static inline int |
| 53 | eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device) |
| 54 | { |
| 55 | struct rte_pci_device *pci_dev = (struct rte_pci_device *)bus_device; |
| 56 | |
| 57 | if (!pci_dev) |
| 58 | return -ENODEV; |
| 59 | |
| 60 | rte_eth_copy_pci_info(eth_dev, pci_dev); |
| 61 | |
| 62 | return 0; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @internal |
nothing calls this directly
no test coverage detected