xref: /freebsd/contrib/ntp/kernel/sys/tpro.h (revision d4eeb02986980bf33dd56c41ceb9fc5f180c0d47)
1 /*
2  * Structure for the KSI/Odetics TPRO-S data returned in reponse to a
3  * read() call. Note that these are driver-specific and not dependent on
4  * 32/64-bit architecture.
5  */
6 struct	tproval {
7 	u_short	day100;		/* days * 100 */
8 	u_short	day10;		/* days * 10 */
9 	u_short	day1;		/* days * 1 */
10 	u_short	hour10;		/* hours * 10 */
11 	u_short	hour1;		/* hours * 1 */
12 	u_short	min10;		/* minutes * 10 */
13 	u_short	min1;		/* minutes * 1 */
14 	u_short	sec10;		/* seconds * 10 */
15 	u_short	sec1;		/* seconds * 1*/
16 	u_short	ms100;		/* milliseconds * 100 */
17 	u_short	ms10;		/* milliseconds * 10 */
18 	u_short	ms1;		/* milliseconds * 1 */
19 	u_short	usec100;	/* microseconds * 100 */
20 	u_short	usec10;		/* microseconds * 10 */
21 	u_short	usec1;		/* microseconds * 1 */
22 	long tv_sec;		/* seconds */
23 	long tv_usec;		/* microseconds	*/
24 	u_short	status;		/* status register */
25 };
26 
27 /*
28  * Status register bits
29  */
30 #define	TIMEAVAIL 0x0001	/* time available */
31 #define NOSIGNAL 0x0002		/* insufficient IRIG-B signal */
32 #define NOSYNC 0x0004		/* local oscillator not synchronized */
33 
34 /* end of tpro.h */
35