linux/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c

// SPDX-License-Identifier: GPL-2.0-only
/*******************************************************************************
  Copyright (C) 2013  Vayavya Labs Pvt Ltd

  This implements all the API for managing HW timestamp & PTP.


  Author: Rayagond Kokatanur <[email protected]>
  Author: Giuseppe Cavallaro <[email protected]>
*******************************************************************************/

#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/delay.h>
#include <linux/ptp_clock_kernel.h>
#include "common.h"
#include "stmmac_ptp.h"
#include "dwmac4.h"
#include "stmmac.h"

static void config_hw_tstamping(void __iomem *ioaddr, u32 data)
{}

static void config_sub_second_increment(void __iomem *ioaddr,
		u32 ptp_clock, int gmac4, u32 *ssinc)
{}

static void hwtstamp_correct_latency(struct stmmac_priv *priv)
{}

static int init_systime(void __iomem *ioaddr, u32 sec, u32 nsec)
{}

static int config_addend(void __iomem *ioaddr, u32 addend)
{}

static int adjust_systime(void __iomem *ioaddr, u32 sec, u32 nsec,
		int add_sub, int gmac4)
{}

static void get_systime(void __iomem *ioaddr, u64 *systime)
{}

static void get_ptptime(void __iomem *ptpaddr, u64 *ptp_time)
{}

static void timestamp_interrupt(struct stmmac_priv *priv)
{}

const struct stmmac_hwtimestamp stmmac_ptp =;