File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / kernel / sys / tpro.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 4 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    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 */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>