| 1596 | } |
| 1597 | |
| 1598 | static int |
| 1599 | axgbe_timesync_read_time(struct rte_eth_dev *dev, |
| 1600 | struct timespec *timestamp) |
| 1601 | { |
| 1602 | uint64_t nsec; |
| 1603 | struct axgbe_port *pdata = dev->data->dev_private; |
| 1604 | |
| 1605 | nsec = AXGMAC_IOREAD(pdata, MAC_STSR); |
| 1606 | nsec *= NSEC_PER_SEC; |
| 1607 | nsec += AXGMAC_IOREAD(pdata, MAC_STNR); |
| 1608 | *timestamp = rte_ns_to_timespec(nsec); |
| 1609 | return 0; |
| 1610 | } |
| 1611 | static int |
| 1612 | axgbe_timesync_write_time(struct rte_eth_dev *dev, |
| 1613 | const struct timespec *timestamp) |
nothing calls this directly
no test coverage detected