ntp: move PHC-specific code to sys_linux

This will allow sharing of the code with the PHC refclock driver.
This commit is contained in:
Miroslav Lichvar
2017-01-19 15:35:09 +01:00
parent 510784077f
commit b70f0b674f
3 changed files with 134 additions and 80 deletions

View File

@@ -41,4 +41,9 @@ extern void SYS_Linux_SetScheduler(int SchedPriority);
extern int SYS_Linux_CheckKernelVersion(int req_major, int req_minor);
extern int SYS_Linux_OpenPHC(const char *path, int phc_index);
extern int SYS_Linux_GetPHCSample(int fd, double precision, int *reading_mode,
struct timespec *phc_ts, struct timespec *sys_ts, double *err);
#endif /* GOT_SYS_LINUX_H */