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

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

#include <linux/err.h>
#include <linux/etherdevice.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

#include "rcar_gen4_ptp.h"
#define ptp_to_priv(ptp)

static const struct rcar_gen4_ptp_reg_offset gen4_offs =;

static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
{}

/* Caller must hold the lock */
static void _rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp,
				   struct timespec64 *ts)
{}

static int rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp,
				 struct timespec64 *ts)
{}

/* Caller must hold the lock */
static void _rcar_gen4_ptp_settime(struct ptp_clock_info *ptp,
				   const struct timespec64 *ts)
{}

static int rcar_gen4_ptp_settime(struct ptp_clock_info *ptp,
				 const struct timespec64 *ts)
{}

static int rcar_gen4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta)
{}

static int rcar_gen4_ptp_enable(struct ptp_clock_info *ptp,
				struct ptp_clock_request *rq, int on)
{}

static struct ptp_clock_info rcar_gen4_ptp_info =;

static int rcar_gen4_ptp_set_offs(struct rcar_gen4_ptp_private *ptp_priv,
				  enum rcar_gen4_ptp_reg_layout layout)
{}

static s64 rcar_gen4_ptp_rate_to_increment(u32 rate)
{}

int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv,
			   enum rcar_gen4_ptp_reg_layout layout, u32 rate)
{}
EXPORT_SYMBOL_GPL();

int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv)
{}
EXPORT_SYMBOL_GPL();

struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();