summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/include/ntp_datum.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-29 23:04:24 +0000
committerwollman <wollman@FreeBSD.org>1994-09-29 23:04:24 +0000
commit96f7e86b724c797f2b44beaaf956cf14550e57df (patch)
tree65fc9d6eb6e84f9e629426ab09186ab1373f9bcb /usr.sbin/xntpd/include/ntp_datum.h
parent1185c9048d38483a3f99f3065590713d8bcda610 (diff)
downloadFreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.zip
FreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.tar.gz
xntp 3.4e from Dave Mills @ UDel
Diffstat (limited to 'usr.sbin/xntpd/include/ntp_datum.h')
-rw-r--r--usr.sbin/xntpd/include/ntp_datum.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/include/ntp_datum.h b/usr.sbin/xntpd/include/ntp_datum.h
new file mode 100644
index 0000000..2aa2cb7
--- /dev/null
+++ b/usr.sbin/xntpd/include/ntp_datum.h
@@ -0,0 +1,30 @@
+struct btfp_time /* Structure for reading 5 time words */
+ /* in one ioctl(2) operation. */
+{
+ unsigned short btfp_time[5]; /* Time words 0,1,2,3, and 4. (16bit)*/
+};
+
+/***** Simple ioctl commands *****/
+
+#define RUNLOCK _IO('X',19) /* Release Capture Lockout */
+#define RCR0 _IOR('X',22,unsigned int) /* Read control register */
+#define WCR0 _IOW('X',23,unsigned int) /* Write control register */
+
+/***** Compound ioctl commands *****/
+
+/* Read all 5 time words in one call. */
+#define READTIME _IOR('X',32,struct btfp_time)
+#define VMEFD "/dev/btfp0"
+
+ struct vmedate { /* structure returned by get_vmetime.c */
+ unsigned short year;
+ unsigned short doy;
+ unsigned short hr;
+ unsigned short mn;
+ unsigned short sec;
+ unsigned long frac;
+ unsigned short status;
+ };
+
+#define PRIO 120 /* set the realtime priority */
+#define NREGS 7 /* number of registers we will use */
OpenPOWER on IntegriCloud