PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/ntp/include/ntp_datum.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 30 lines | 20 code | 6 blank | 4 comment | 0 complexity | b1fb868d4270f766e37f75aa8c87b91e MD5 | raw file
 1struct btfp_time                /* Structure for reading 5 time words   */
 2                                /* in one ioctl(2) operation.           */
 3{
 4  unsigned short btfp_time[5];  /* Time words 0,1,2,3, and 4. (16bit)*/
 5};
 6
 7/***** Simple ioctl commands *****/
 8
 9#define RUNLOCK   _IO('X',19)                   /* Release Capture Lockout */
10#define RCR0      _IOR('X',22,unsigned int)     /* Read control register */
11#define WCR0      _IOW('X',23,unsigned int)     /* Write control register */
12
13/***** Compound ioctl commands *****/
14
15/* Read all 5 time words in one call.   */
16#define READTIME        _IOR('X',32,struct btfp_time)
17#define VMEFD "/dev/btfp0"
18
19 struct vmedate {               /* structure returned by get_vmetime.c */
20         unsigned short year;
21         unsigned short doy;
22         unsigned short hr;
23         unsigned short mn;
24         unsigned short sec;
25         unsigned long frac;
26         unsigned short status;
27         };
28
29#define PRIO    120               /* set the realtime priority */
30#define NREGS 7                    /* number of registers we will use */