xref: /freebsd/contrib/ntp/include/refclock_atom.h (revision 63d1fd5970ec814904aa0f4580b10a0d302d08b2)
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