4 Header for das08.c and das08_cs.c
6 Copyright (C) 2003 Frank Mori Hess <fmhess@users.sourceforge.net>
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.
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.
22 /* different ways ai data is encoded in first two registers */
23 enum das08_ai_encoding { das08_encode12, das08_encode16, das08_pcm_encode12 };
24 enum das08_lrange { das08_pg_none, das08_bipolar5, das08_pgh, das08_pgl,
28 struct das08_board_struct {
30 bool is_jr; /* true for 'JR' boards */
31 unsigned int ai_nbits;
32 enum das08_lrange ai_pg;
33 enum das08_ai_encoding ai_encoding;
34 unsigned int ao_nbits;
35 unsigned int di_nchan;
36 unsigned int do_nchan;
37 unsigned int i8255_offset;
38 unsigned int i8254_offset;
39 unsigned int iosize; /* number of ioports used */
42 struct das08_private_struct {
43 unsigned int do_mux_bits; /* bits for do/mux register on boards
44 * without separate do register
46 const unsigned int *pg_gainlist;
49 int das08_common_attach(struct comedi_device *dev, unsigned long iobase);