| 2881 | } |
| 2882 | |
| 2883 | static uint64_t |
| 2884 | ngbe_read_rx_tstamp_cyclecounter(struct rte_eth_dev *dev) |
| 2885 | { |
| 2886 | struct ngbe_hw *hw = ngbe_dev_hw(dev); |
| 2887 | uint64_t rx_tstamp_cycles; |
| 2888 | |
| 2889 | /* TSRXSTMPL stores ns and TSRXSTMPH stores seconds. */ |
| 2890 | rx_tstamp_cycles = (uint64_t)rd32(hw, NGBE_TSRXSTMPL); |
| 2891 | rx_tstamp_cycles |= (uint64_t)rd32(hw, NGBE_TSRXSTMPH) << 32; |
| 2892 | |
| 2893 | return rx_tstamp_cycles; |
| 2894 | } |
| 2895 | |
| 2896 | static uint64_t |
| 2897 | ngbe_read_tx_tstamp_cyclecounter(struct rte_eth_dev *dev) |
no test coverage detected