154359Sroberto/* 254359Sroberto * Structure for the KSI/Odetics TPRO-S data returned in reponse to a 354359Sroberto * read() call. Note that these are driver-specific and not dependent on 454359Sroberto * 32/64-bit architecture. 554359Sroberto */ 654359Srobertostruct tproval { 754359Sroberto u_short day100; /* days * 100 */ 854359Sroberto u_short day10; /* days * 10 */ 954359Sroberto u_short day1; /* days * 1 */ 1054359Sroberto u_short hour10; /* hours * 10 */ 1154359Sroberto u_short hour1; /* hours * 1 */ 1254359Sroberto u_short min10; /* minutes * 10 */ 1354359Sroberto u_short min1; /* minutes * 1 */ 1454359Sroberto u_short sec10; /* seconds * 10 */ 1554359Sroberto u_short sec1; /* seconds * 1*/ 1654359Sroberto u_short ms100; /* milliseconds * 100 */ 1754359Sroberto u_short ms10; /* milliseconds * 10 */ 1854359Sroberto u_short ms1; /* milliseconds * 1 */ 1954359Sroberto u_short usec100; /* microseconds * 100 */ 2054359Sroberto u_short usec10; /* microseconds * 10 */ 2154359Sroberto u_short usec1; /* microseconds * 1 */ 2254359Sroberto long tv_sec; /* seconds */ 2354359Sroberto long tv_usec; /* microseconds */ 2454359Sroberto u_short status; /* status register */ 2554359Sroberto}; 2654359Sroberto 2754359Sroberto/* 2854359Sroberto * Status register bits 2954359Sroberto */ 3054359Sroberto#define TIMEAVAIL 0x0001 /* time available */ 3154359Sroberto#define NOSIGNAL 0x0002 /* insufficient IRIG-B signal */ 3254359Sroberto#define NOSYNC 0x0004 /* local oscillator not synchronized */ 3354359Sroberto 3454359Sroberto/* end of tpro.h */ 35