* ethdev2adap - return the adapter structure associated with a rte_eth_dev * @dev: the rte_eth_dev * * Return the struct adapter associated with a rte_eth_dev */
| 395 | * Return the struct adapter associated with a rte_eth_dev |
| 396 | */ |
| 397 | static inline struct adapter *ethdev2adap(const struct rte_eth_dev *dev) |
| 398 | { |
| 399 | return ethdev2pinfo(dev)->adapter; |
| 400 | } |
| 401 | |
| 402 | #define CXGBE_PCI_REG(reg) rte_read32(reg) |
| 403 |
no test coverage detected