RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / comedi / drivers / addi-data / hwdrv_apci3xxx.h
blob788d7c1cf5c172ee8bcbd08d606617c33ad50442
1 /*
2 * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
4 * ADDI-DATA GmbH
5 * Dieselstrasse 3
6 * D-77833 Ottersweier
7 * Tel: +19(0)7223/9493-0
8 * Fax: +49(0)7223/9493-92
9 * http://www.addi-data-com
10 * info@addi-data.com
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the Free
14 * Software Foundation; either version 2 of the License, or (at your option)
15 * any later version.
18 #ifndef COMEDI_SUBD_TTLIO
19 #define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */
20 #endif
22 #ifndef ADDIDATA_ENABLE
23 #define ADDIDATA_ENABLE 1
24 #define ADDIDATA_DISABLE 0
25 #endif
27 #define APCI3XXX_SINGLE 0
28 #define APCI3XXX_DIFF 1
29 #define APCI3XXX_CONFIGURATION 0
31 #define APCI3XXX_TTL_INIT_DIRECTION_PORT2 0
33 #ifdef __KERNEL__
35 static const struct comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10),
36 BIP_RANGE(5),
37 BIP_RANGE(2),
38 BIP_RANGE(1),
39 UNI_RANGE(10),
40 UNI_RANGE(5),
41 UNI_RANGE(2),
42 UNI_RANGE(1)}
45 static const struct comedi_lrange range_apci3XXX_ttl = { 12, {BIP_RANGE(1),
46 BIP_RANGE(1),
47 BIP_RANGE(1),
48 BIP_RANGE(1),
49 BIP_RANGE(1),
50 BIP_RANGE(1),
51 BIP_RANGE(1),
52 BIP_RANGE(1),
53 BIP_RANGE(1),
54 BIP_RANGE(1),
55 BIP_RANGE(1),
56 BIP_RANGE(1)}
59 static const struct comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10),
60 UNI_RANGE(10)}
62 #endif