numam-dpdk/drivers/net/octeontx2/otx2_rx.h
Harman Kalra b5dc314044 net/octeontx2: support base PTP
Add PTP enable and disable operations.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Zyta Szpak <zyta@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2019-07-05 01:52:01 +02:00

29 lines
692 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2019 Marvell International Ltd.
*/
#ifndef __OTX2_RX_H__
#define __OTX2_RX_H__
#define PTYPE_WIDTH 12
#define PTYPE_NON_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
#define PTYPE_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
#define PTYPE_ARRAY_SZ ((PTYPE_NON_TUNNEL_ARRAY_SZ +\
PTYPE_TUNNEL_ARRAY_SZ) *\
sizeof(uint16_t))
#define NIX_RX_OFFLOAD_PTYPE_F BIT(1)
#define NIX_RX_OFFLOAD_TSTAMP_F BIT(5)
#define NIX_TIMESYNC_RX_OFFSET 8
struct otx2_timesync_info {
uint64_t rx_tstamp;
rte_iova_t tx_tstamp_iova;
uint64_t *tx_tstamp;
uint8_t tx_ready;
uint8_t rx_ready;
} __rte_cache_aligned;
#endif /* __OTX2_RX_H__ */