1 /* 2 * Definitions for the atom driver and its friends 3 */ 4 #undef NANOSECOND /* some systems define it differently */ 5 #define NANOSECOND 1000000000 /* one second (ns) */ 6 7 struct refclock_atom { 8 pps_handle_t handle; 9 pps_params_t pps_params; 10 struct timespec ts; 11 }; 12 13 extern int refclock_ppsapi(int, struct refclock_atom *); 14 extern int refclock_params(int, struct refclock_atom *); 15 extern int refclock_pps(struct peer *, struct refclock_atom *, int); 16