#include <linux/ptp_clock_kernel.h>
#include <linux/ptp_mock.h>
#include <linux/timecounter.h>
#define MOCK_PHC_MAX_ADJ_PPB …
#define MOCK_PHC_CC_SHIFT …
#define MOCK_PHC_CC_MULT …
#define MOCK_PHC_FADJ_SHIFT …
#define MOCK_PHC_FADJ_DENOMINATOR …
#define MOCK_PHC_REFRESH_INTERVAL …
#define info_to_phc(d) …
struct mock_phc { … };
static u64 mock_phc_cc_read(const struct cyclecounter *cc)
{ … }
static int mock_phc_adjfine(struct ptp_clock_info *info, long scaled_ppm)
{ … }
static int mock_phc_adjtime(struct ptp_clock_info *info, s64 delta)
{ … }
static int mock_phc_settime64(struct ptp_clock_info *info,
const struct timespec64 *ts)
{ … }
static int mock_phc_gettime64(struct ptp_clock_info *info, struct timespec64 *ts)
{ … }
static long mock_phc_refresh(struct ptp_clock_info *info)
{ … }
int mock_phc_index(struct mock_phc *phc)
{ … }
EXPORT_SYMBOL_GPL(…);
struct mock_phc *mock_phc_create(struct device *dev)
{ … }
EXPORT_SYMBOL_GPL(…);
void mock_phc_destroy(struct mock_phc *phc)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;