154359Srobertostruct btfp_time                /* Structure for reading 5 time words   */
254359Sroberto                                /* in one ioctl(2) operation.           */
354359Sroberto{
454359Sroberto  unsigned short btfp_time[5];  /* Time words 0,1,2,3, and 4. (16bit)*/
554359Sroberto};
654359Sroberto
754359Sroberto/***** Simple ioctl commands *****/
854359Sroberto
954359Sroberto#define RUNLOCK   _IO('X',19)                   /* Release Capture Lockout */
1054359Sroberto#define RCR0      _IOR('X',22,unsigned int)     /* Read control register */
1154359Sroberto#define WCR0      _IOW('X',23,unsigned int)     /* Write control register */
1254359Sroberto
1354359Sroberto/***** Compound ioctl commands *****/
1454359Sroberto
1554359Sroberto/* Read all 5 time words in one call.   */
1654359Sroberto#define READTIME        _IOR('X',32,struct btfp_time)
1754359Sroberto#define VMEFD "/dev/btfp0"
1854359Sroberto
1954359Sroberto struct vmedate {               /* structure returned by get_vmetime.c */
2054359Sroberto         unsigned short year;
2154359Sroberto         unsigned short doy;
2254359Sroberto         unsigned short hr;
2354359Sroberto         unsigned short mn;
2454359Sroberto         unsigned short sec;
2554359Sroberto         unsigned long frac;
2654359Sroberto         unsigned short status;
2754359Sroberto         };
2854359Sroberto
2954359Sroberto#define PRIO    120               /* set the realtime priority */
3054359Sroberto#define NREGS 7                    /* number of registers we will use */
31