linux/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c

// SPDX-License-Identifier: GPL-2.0
/* Marvell RVU Ethernet driver
 *
 * Copyright (C) 2020 Marvell.
 *
 */

#include <linux/module.h>

#include "otx2_common.h"
#include "otx2_ptp.h"

static bool is_tstmp_atomic_update_supported(struct otx2_ptp *ptp)
{}

static int otx2_ptp_hw_adjtime(struct ptp_clock_info *ptp_info, s64 delta)
{}

static u64 otx2_ptp_get_clock(struct otx2_ptp *ptp)
{}

static int otx2_ptp_hw_gettime(struct ptp_clock_info *ptp_info,
			       struct timespec64 *ts)
{}

static int otx2_ptp_hw_settime(struct ptp_clock_info *ptp_info,
			       const struct timespec64 *ts)
{}

static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm)
{}

static int ptp_set_thresh(struct otx2_ptp *ptp, u64 thresh)
{}

static int ptp_pps_on(struct otx2_ptp *ptp, int on, u64 period)
{}

static u64 ptp_cc_read(const struct cyclecounter *cc)
{}

static u64 ptp_tstmp_read(struct otx2_ptp *ptp)
{}

static int otx2_ptp_tc_adjtime(struct ptp_clock_info *ptp_info, s64 delta)
{}

static int otx2_ptp_tc_gettime(struct ptp_clock_info *ptp_info,
			       struct timespec64 *ts)
{}

static int otx2_ptp_tc_settime(struct ptp_clock_info *ptp_info,
			       const struct timespec64 *ts)
{}

static int otx2_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin,
			       enum ptp_pin_function func, unsigned int chan)
{}

static u64 otx2_ptp_hw_tstamp2time(const struct timecounter *time_counter, u64 tstamp)
{}

static void otx2_ptp_extts_check(struct work_struct *work)
{}

static void otx2_sync_tstamp(struct work_struct *work)
{}

static int otx2_ptp_enable(struct ptp_clock_info *ptp_info,
			   struct ptp_clock_request *rq, int on)
{}

int otx2_ptp_init(struct otx2_nic *pfvf)
{}
EXPORT_SYMBOL_GPL();

void otx2_ptp_destroy(struct otx2_nic *pfvf)
{}
EXPORT_SYMBOL_GPL();

int otx2_ptp_clock_index(struct otx2_nic *pfvf)
{}
EXPORT_SYMBOL_GPL();

int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns)
{}
EXPORT_SYMBOL_GPL();

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