#ifndef _HELLCREEK_PTP_H_
#define _HELLCREEK_PTP_H_
#include <linux/bitops.h>
#include <linux/ptp_clock_kernel.h>
#include "hellcreek.h"
#define MAX_NS_PER_STEP …
#define MIN_CLK_CYCLES_BETWEEN_STEPS …
#define MAX_SLOW_OFFSET_ADJ …
#define HELLCREEK_OVERFLOW_PERIOD …
#define PR_SETTINGS_C …
#define PR_SETTINGS_C_RES3TS …
#define PR_SETTINGS_C_TS_SRC_TK_SHIFT …
#define PR_SETTINGS_C_TS_SRC_TK_MASK …
#define PR_COMMAND_C …
#define PR_COMMAND_C_SS …
#define PR_CLOCK_STATUS_C …
#define PR_CLOCK_STATUS_C_ENA_DRIFT …
#define PR_CLOCK_STATUS_C_OFS_ACT …
#define PR_CLOCK_STATUS_C_ENA_OFS …
#define PR_CLOCK_READ_C …
#define PR_CLOCK_WRITE_C …
#define PR_CLOCK_OFFSET_C …
#define PR_CLOCK_DRIFT_C …
#define PR_SS_FREE_DATA_C …
#define PR_SS_SYNT_DATA_C …
#define PR_SS_SYNC_DATA_C …
#define PR_SS_DRAC_DATA_C …
#define STATUS_OUT …
#define STATUS_OUT_SYNC_GOOD …
#define STATUS_OUT_IS_GM …
int hellcreek_ptp_setup(struct hellcreek *hellcreek);
void hellcreek_ptp_free(struct hellcreek *hellcreek);
u16 hellcreek_ptp_read(struct hellcreek *hellcreek, unsigned int offset);
void hellcreek_ptp_write(struct hellcreek *hellcreek, u16 data,
unsigned int offset);
u64 hellcreek_ptp_gettime_seconds(struct hellcreek *hellcreek, u64 ns);
#define ptp_to_hellcreek(ptp) …
#define dw_overflow_to_hellcreek(dw) …
#define led_to_hellcreek(ldev, led) …
#endif