1
2#ifndef _LINUX_ISICOM_H
3#define _LINUX_ISICOM_H
4
5#define YES 1
6#define NO 0
7
8
9
10
11
12
13#define ISICOM_NAME "ISICom"
14
15
16
17
18
19#define DEVID_COUNT 9
20#define VENDOR_ID 0x10b5
21
22
23
24
25
26#define ISICOM_NMAJOR 112
27#define ISICOM_CMAJOR 113
28#define ISICOM_MAGIC (('M' << 8) | 'T')
29
30#define WAKEUP_CHARS 256
31#define TX_SIZE 254
32
33#define BOARD_COUNT 4
34#define PORT_COUNT (BOARD_COUNT*16)
35
36
37
38#define ISICOM_CS5 0x0000
39#define ISICOM_CS6 0x0001
40#define ISICOM_CS7 0x0002
41#define ISICOM_CS8 0x0003
42
43
44
45#define ISICOM_1SB 0x0000
46#define ISICOM_2SB 0x0004
47
48
49
50#define ISICOM_NOPAR 0x0000
51#define ISICOM_ODPAR 0x0008
52#define ISICOM_EVPAR 0x0018
53
54
55
56#define ISICOM_CTSRTS 0x03
57#define ISICOM_INITIATE_XONXOFF 0x04
58#define ISICOM_RESPOND_XONXOFF 0x08
59
60#define BOARD(line) (((line) >> 4) & 0x3)
61
62
63
64#define ISICOM_KILLTX 0x01
65#define ISICOM_KILLRX 0x02
66
67
68
69#define FIRMWARE_LOADED 0x0001
70#define BOARD_ACTIVE 0x0002
71#define BOARD_INIT 0x0004
72
73
74
75#define ISI_CTS 0x1000
76#define ISI_DSR 0x2000
77#define ISI_RI 0x4000
78#define ISI_DCD 0x8000
79#define ISI_DTR 0x0100
80#define ISI_RTS 0x0200
81
82
83#define ISI_TXOK 0x0001
84
85#endif
86