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