linux/drivers/net/ethernet/renesas/rcar_gen4_ptp.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Renesas R-Car Gen4 gPTP device driver
 *
 * Copyright (C) 2022 Renesas Electronics Corporation
 */

#ifndef __RCAR_GEN4_PTP_H__
#define __RCAR_GEN4_PTP_H__

#include <linux/ptp_clock_kernel.h>

#define RCAR_GEN4_GPTP_OFFSET_S4

enum rcar_gen4_ptp_reg_layout {};

/* driver's definitions */
#define RCAR_GEN4_RXTSTAMP_ENABLED
#define RCAR_GEN4_RXTSTAMP_TYPE_V2_L2_EVENT
#define RCAR_GEN4_RXTSTAMP_TYPE_ALL
#define RCAR_GEN4_RXTSTAMP_TYPE

#define RCAR_GEN4_TXTSTAMP_ENABLED

#define PTPRO

enum rcar_gen4_ptp_reg {};

struct rcar_gen4_ptp_reg_offset {};

struct rcar_gen4_ptp_private {};

int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv,
			   enum rcar_gen4_ptp_reg_layout layout, u32 rate);
int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv);
struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev);

#endif	/* #ifndef __RCAR_GEN4_PTP_H__ */