1
2
3
4
5
6
7
8
9
10 #ifndef _DAS08_H
11 #define _DAS08_H
12
13 #include <linux/types.h>
14
15 struct comedi_device;
16
17
18 enum das08_ai_encoding { das08_encode12, das08_encode16, das08_pcm_encode12 };
19
20 enum das08_lrange {
21 das08_pg_none, das08_bipolar5, das08_pgh, das08_pgl, das08_pgm
22 };
23
24 struct das08_board_struct {
25 const char *name;
26 bool is_jr;
27 unsigned int ai_nbits;
28 enum das08_lrange ai_pg;
29 enum das08_ai_encoding ai_encoding;
30 unsigned int ao_nbits;
31 unsigned int di_nchan;
32 unsigned int do_nchan;
33 unsigned int i8255_offset;
34 unsigned int i8254_offset;
35 unsigned int iosize;
36 };
37
38 struct das08_private_struct {
39
40 unsigned int do_mux_bits;
41 const unsigned int *pg_gainlist;
42 };
43
44 int das08_common_attach(struct comedi_device *dev, unsigned long iobase);
45
46 #endif