1215649Sweongyo/* $NetBSD$ */ 2215649Sweongyo 3215649Sweongyostruct btfp_time /* Structure for reading 5 time words */ 4215649Sweongyo /* in one ioctl(2) operation. */ 5215649Sweongyo{ 6215649Sweongyo unsigned short btfp_time[5]; /* Time words 0,1,2,3, and 4. (16bit)*/ 7215649Sweongyo}; 8215649Sweongyo 9215649Sweongyo/***** Simple ioctl commands *****/ 10215649Sweongyo 11215649Sweongyo#define RUNLOCK _IO('X',19) /* Release Capture Lockout */ 12215649Sweongyo#define RCR0 _IOR('X',22,unsigned int) /* Read control register */ 13215649Sweongyo#define WCR0 _IOW('X',23,unsigned int) /* Write control register */ 14215649Sweongyo 15215649Sweongyo/***** Compound ioctl commands *****/ 16215649Sweongyo 17215649Sweongyo/* Read all 5 time words in one call. */ 18215649Sweongyo#define READTIME _IOR('X',32,struct btfp_time) 19215649Sweongyo#define VMEFD "/dev/btfp0" 20215649Sweongyo 21215649Sweongyo struct vmedate { /* structure returned by get_vmetime.c */ 22215649Sweongyo unsigned short year; 23215649Sweongyo unsigned short doy; 24215649Sweongyo unsigned short hr; 25215649Sweongyo unsigned short mn; 26215649Sweongyo unsigned short sec; 27215649Sweongyo unsigned long frac; 28215649Sweongyo unsigned short status; 29215649Sweongyo }; 30215649Sweongyo 31215649Sweongyo#define PRIO 120 /* set the realtime priority */ 32215649Sweongyo#define NREGS 7 /* number of registers we will use */ 33215649Sweongyo