Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
das08.h
Go to the documentation of this file.
1 /*
2  das08.h
3 
4  Header for das08.c and das08_cs.c
5 
6  Copyright (C) 2003 Frank Mori Hess <[email protected]>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22 */
23 
24 #ifndef _DAS08_H
25 #define _DAS08_H
26 
28 /* different ways ai data is encoded in first two registers */
32 };
33 
35  const char *name;
36  unsigned int id; /* id for pci/pcmcia boards */
38  bool is_jr; /* true for 'JR' boards */
39  unsigned int ai_nbits;
42  unsigned int ao_nbits;
43  unsigned int di_nchan;
44  unsigned int do_nchan;
45  unsigned int i8255_offset;
46  unsigned int i8254_offset;
47  unsigned int iosize; /* number of ioports used */
48 };
49 
51  unsigned int do_mux_bits; /* bits for do/mux register on boards without separate do register */
52  unsigned int do_bits; /* bits for do register on boards with register dedicated to digital out only */
53  const unsigned int *pg_gainlist;
54  unsigned int ao_readback[2]; /* assume 2 AO channels */
55 };
56 
57 int das08_common_attach(struct comedi_device *dev, unsigned long iobase);
59 
60 #endif /* _DAS08_H */