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_APCI1710.h
blob22b3e569ecd5faa7570118c08a2fb13cc910845e
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 #define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */
19 #define COMEDI_SUBD_PWM 12 /* Pulse width Measurement */
20 #define COMEDI_SUBD_SSI 13 /* Synchronous serial interface */
21 #define COMEDI_SUBD_TOR 14 /* Tor counter */
22 #define COMEDI_SUBD_CHRONO 15 /* Chrono meter */
23 #define COMEDI_SUBD_PULSEENCODER 16 /* Pulse Encoder INP CPT */
24 #define COMEDI_SUBD_INCREMENTALCOUNTER 17 /* Incremental Counter */
26 #define APCI1710_BOARD_NAME "apci1710"
27 #define APCI1710_BOARD_VENDOR_ID 0x10E8
28 #define APCI1710_BOARD_DEVICE_ID 0x818F
29 #define APCI1710_ADDRESS_RANGE 256
30 #define APCI1710_CONFIG_ADDRESS_RANGE 8
31 #define APCI1710_INCREMENTAL_COUNTER 0x53430000UL
32 #define APCI1710_SSI_COUNTER 0x53490000UL
33 #define APCI1710_TTL_IO 0x544C0000UL
34 #define APCI1710_DIGITAL_IO 0x44490000UL
35 #define APCI1710_82X54_TIMER 0x49430000UL
36 #define APCI1710_CHRONOMETER 0x43480000UL
37 #define APCI1710_PULSE_ENCODER 0x495A0000UL
38 #define APCI1710_TOR_COUNTER 0x544F0000UL
39 #define APCI1710_PWM 0x50570000UL
40 #define APCI1710_ETM 0x45540000UL
41 #define APCI1710_CDA 0x43440000UL
42 #define APCI1710_DISABLE 0
43 #define APCI1710_ENABLE 1
44 #define APCI1710_SYNCHRONOUS_MODE 1
45 #define APCI1710_ASYNCHRONOUS_MODE 0
47 /* MODULE INFO STRUCTURE */
49 static const struct comedi_lrange range_apci1710_ttl = { 4, {
50 BIP_RANGE(10),
51 BIP_RANGE(5),
52 BIP_RANGE(2),
53 BIP_RANGE(1)
57 static const struct comedi_lrange range_apci1710_ssi = { 4, {
58 BIP_RANGE(10),
59 BIP_RANGE(5),
60 BIP_RANGE(2),
61 BIP_RANGE(1)
65 static const struct comedi_lrange range_apci1710_inccpt = { 4, {
66 BIP_RANGE(10),
67 BIP_RANGE(5),
68 BIP_RANGE(2),
69 BIP_RANGE(1)