| 6896 | } |
| 6897 | |
| 6898 | static uint64_t |
| 6899 | ixgbe_read_systime_cyclecounter(struct rte_eth_dev *dev) |
| 6900 | { |
| 6901 | struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 6902 | uint64_t systime_cycles; |
| 6903 | |
| 6904 | switch (hw->mac.type) { |
| 6905 | case ixgbe_mac_X550: |
| 6906 | case ixgbe_mac_X550EM_x: |
| 6907 | case ixgbe_mac_X550EM_a: |
| 6908 | /* SYSTIMEL stores ns and SYSTIMEH stores seconds. */ |
| 6909 | systime_cycles = (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIML); |
| 6910 | systime_cycles += (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIMH) |
| 6911 | * NSEC_PER_SEC; |
| 6912 | break; |
| 6913 | default: |
| 6914 | systime_cycles = (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIML); |
| 6915 | systime_cycles |= (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIMH) |
| 6916 | << 32; |
| 6917 | } |
| 6918 | |
| 6919 | return systime_cycles; |
| 6920 | } |
| 6921 | |
| 6922 | static uint64_t |
| 6923 | ixgbe_read_rx_tstamp_cyclecounter(struct rte_eth_dev *dev) |
no outgoing calls
no test coverage detected