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