| 6355 | } |
| 6356 | |
| 6357 | int |
| 6358 | rte_eth_read_clock(uint16_t port_id, uint64_t *clock) |
| 6359 | { |
| 6360 | struct rte_eth_dev *dev; |
| 6361 | int ret; |
| 6362 | |
| 6363 | RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); |
| 6364 | dev = &rte_eth_devices[port_id]; |
| 6365 | |
| 6366 | if (clock == NULL) { |
| 6367 | RTE_ETHDEV_LOG(ERR, "Cannot read ethdev port %u clock to NULL\n", |
| 6368 | port_id); |
| 6369 | return -EINVAL; |
| 6370 | } |
| 6371 | |
| 6372 | if (*dev->dev_ops->read_clock == NULL) |
| 6373 | return -ENOTSUP; |
| 6374 | ret = eth_err(port_id, (*dev->dev_ops->read_clock)(dev, clock)); |
| 6375 | |
| 6376 | rte_eth_trace_read_clock(port_id, clock, ret); |
| 6377 | |
| 6378 | return ret; |
| 6379 | } |
| 6380 | |
| 6381 | int |
| 6382 | rte_eth_dev_get_reg_info(uint16_t port_id, struct rte_dev_reg_info *info) |
no test coverage detected