]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/comedi/drivers/addi-data/hwdrv_apci1032.h
f0b32e8a81b7eaa03748362085d51eff2556b474
[karo-tx-linux.git] / drivers / staging / comedi / drivers / addi-data / hwdrv_apci1032.h
1 /*
2  * Copyright (C) 2004,2005  ADDI-DATA GmbH for the source code of this module.
3  *
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
11  *
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.
16  */
17
18 /*********      Definitions for APCI-1032 card  *****/
19
20 #define APCI1032_ADDRESS_RANGE  20
21 /* DIGITAL INPUT DEFINE */
22
23 #define APCI1032_DIGITAL_IP                     0
24 #define APCI1032_DIGITAL_IP_INTERRUPT_MODE1     4
25 #define APCI1032_DIGITAL_IP_INTERRUPT_MODE2     8
26 #define APCI1032_DIGITAL_IP_IRQ                 16
27
28 /* Digital Input IRQ Function Selection */
29 #define ADDIDATA_OR                  0
30 #define ADDIDATA_AND                 1
31
32 /* Digital Input Interrupt Status */
33 #define APCI1032_DIGITAL_IP_INTERRUPT_STATUS    12
34
35 /* Digital Input Interrupt Enable Disable. */
36 #define APCI1032_DIGITAL_IP_INTERRUPT_ENABLE    0x4
37 #define APCI1032_DIGITAL_IP_INTERRUPT_DISABLE   0xFFFFFFFB
38
39 /* ADDIDATA Enable Disable */
40
41 #define ADDIDATA_ENABLE                            1
42 #define ADDIDATA_DISABLE                           0