1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef AMPLC_DIO200_H_INCLUDED
15 #define AMPLC_DIO200_H_INCLUDED
16
17 #include <linux/types.h>
18
19 struct comedi_device;
20
21
22
23
24 enum dio200_sdtype { sd_none, sd_intr, sd_8255, sd_8254, sd_timer };
25
26 #define DIO200_MAX_SUBDEVS 8
27 #define DIO200_MAX_ISNS 6
28
29 struct dio200_board {
30 const char *name;
31 unsigned char mainbar;
32 unsigned short n_subdevs;
33 unsigned char sdtype[DIO200_MAX_SUBDEVS];
34 unsigned char sdinfo[DIO200_MAX_SUBDEVS];
35 unsigned int has_int_sce:1;
36 unsigned int has_clk_gat_sce:1;
37 unsigned int is_pcie:1;
38 };
39
40 int amplc_dio200_common_attach(struct comedi_device *dev, unsigned int irq,
41 unsigned long req_irq_flags);
42
43
44 void amplc_dio200_set_enhance(struct comedi_device *dev, unsigned char val);
45
46 #endif