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