| 2894 | } |
| 2895 | |
| 2896 | static uint64_t |
| 2897 | ngbe_read_tx_tstamp_cyclecounter(struct rte_eth_dev *dev) |
| 2898 | { |
| 2899 | struct ngbe_hw *hw = ngbe_dev_hw(dev); |
| 2900 | uint64_t tx_tstamp_cycles; |
| 2901 | |
| 2902 | /* TSTXSTMPL stores ns and TSTXSTMPH stores seconds. */ |
| 2903 | tx_tstamp_cycles = (uint64_t)rd32(hw, NGBE_TSTXSTMPL); |
| 2904 | tx_tstamp_cycles |= (uint64_t)rd32(hw, NGBE_TSTXSTMPH) << 32; |
| 2905 | |
| 2906 | return tx_tstamp_cycles; |
| 2907 | } |
| 2908 | |
| 2909 | static void |
| 2910 | ngbe_start_timecounters(struct rte_eth_dev *dev) |
no test coverage detected