|
|
1.1 ! root 1: #ifndef KERNEL ! 2: #include <sys/ioctl.h> ! 3: #endif ! 4: ! 5: #ifndef _IO ! 6: #define _IO(c,n) (('c')<<8|n) ! 7: #define _IOR(c,n,t) _IO(c,n) ! 8: #define _IOW(c,n,t) _IO(c,n) ! 9: #define _IOWR(c,n,t) _IO(c,n) ! 10: #endif ! 11: ! 12: /* ! 13: * these values are critical; ! 14: * dsseq depends on da being 0 ! 15: * and ad being 1 ! 16: */ ! 17: # define DA ((int)0) ! 18: # define AD ((int)1) ! 19: ! 20: /* ! 21: * start address for d/a and a/d converters ! 22: */ ! 23: #define ADBASE ((int)0) ! 24: #define DABASE ((int)010) ! 25: ! 26: /* ! 27: * ASC sequence table bit for last entry ! 28: */ ! 29: #define LAST_SEQ bit(7) ! 30: ! 31: /* ! 32: * Ioctl commands. ! 33: */ ! 34: # define DSRATE _IOW(s,1,int) /* set rate */ ! 35: # define DS08KHZ _IO(s,2) /* set 08kHz filter */ ! 36: # define DS04KHZ _IO(s,3) /* set 04kHz filter */ ! 37: # define DSBYPAS _IO(s,5) /* set bypass filter */ ! 38: # define DSERRS _IOR(s,6,struct ds_err) /* get errors */ ! 39: # define DSRESET _IO(s,7) /* reset dsc */ ! 40: # define DSTRANS _IOR(s,8,struct ds_trans) /* get transit. counts */ ! 41: # define DSDONE _IOR(s,14,int) /* amnt. done */ ! 42: # define DSDEBUG _IO(s,19) /* debug */ ! 43: # define DSWAIT _IO(s,20) /* wait for io to finish */ ! 44: # define DSSTEREO _IO(s,21) /* switch to stereo mode */ ! 45: # define DSMONO _IO(s,22) /* switch to mono mode */ ! 46: # define DSSTOP _IO(s,23) /* stop conversion */ ! 47: # define DSFILTER _IOW(s,24,int) /* select filter */ ! 48: # define DSCOMPLETE _IOW(s,25,int) /* wait for buffer io done */ ! 49: # define DSRECORD _IO(s,26) /* begin recording */ ! 50: ! 51: # define NADSB 3 /* number of buffers chaining with */ ! 52: ! 53: /* ! 54: * reg specifies a sequence register (0-15). ! 55: * conv specifies a converter. ! 56: * dirt specifies the direction when ! 57: * setting up the sequence ram (DSSEQ). ! 58: */ ! 59: struct ds_seq { ! 60: short reg; ! 61: short conv; ! 62: short dirt; /* shared by DSSEQ and DSRATE */ ! 63: }; ! 64: /* ! 65: * Format of returned converter ! 66: * errors. ! 67: */ ! 68: struct ds_err { ! 69: short dma_csr; ! 70: short asc_csr; ! 71: short errors; ! 72: }; ! 73: ! 74: /* ! 75: * Format of returned transition counts ! 76: */ ! 77: struct ds_trans { ! 78: short to_idle; ! 79: short to_active; ! 80: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.