#include "ravb.h"
static int ravb_ptp_tcr_request(struct ravb_private *priv, u32 request)
{ … }
static int ravb_ptp_time_read(struct ravb_private *priv, struct timespec64 *ts)
{ … }
static int ravb_ptp_time_write(struct ravb_private *priv,
const struct timespec64 *ts)
{ … }
static int ravb_ptp_update_compare(struct ravb_private *priv, u32 ns)
{ … }
static int ravb_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
{ … }
static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta)
{ … }
static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts)
{ … }
static int ravb_ptp_settime64(struct ptp_clock_info *ptp,
const struct timespec64 *ts)
{ … }
static int ravb_ptp_extts(struct ptp_clock_info *ptp,
struct ptp_extts_request *req, int on)
{ … }
static int ravb_ptp_perout(struct ptp_clock_info *ptp,
struct ptp_perout_request *req, int on)
{ … }
static int ravb_ptp_enable(struct ptp_clock_info *ptp,
struct ptp_clock_request *req, int on)
{ … }
static const struct ptp_clock_info ravb_ptp_info = …;
void ravb_ptp_interrupt(struct net_device *ndev)
{ … }
void ravb_ptp_init(struct net_device *ndev, struct platform_device *pdev)
{ … }
void ravb_ptp_stop(struct net_device *ndev)
{ … }