Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _LINUX_ISICOM_H |
3 | #define _LINUX_ISICOM_H | |
4 | ||
1da177e4 LT |
5 | #define YES 1 |
6 | #define NO 0 | |
7 | ||
a547dfe9 | 8 | /* |
1da177e4 LT |
9 | * ISICOM Driver definitions ... |
10 | * | |
11 | */ | |
12 | ||
13 | #define ISICOM_NAME "ISICom" | |
14 | ||
15 | /* | |
16 | * PCI definitions | |
17 | */ | |
18 | ||
a547dfe9 JS |
19 | #define DEVID_COUNT 9 |
20 | #define VENDOR_ID 0x10b5 | |
1da177e4 LT |
21 | |
22 | /* | |
23 | * These are now officially allocated numbers | |
24 | */ | |
25 | ||
26 | #define ISICOM_NMAJOR 112 /* normal */ | |
27 | #define ISICOM_CMAJOR 113 /* callout */ | |
28 | #define ISICOM_MAGIC (('M' << 8) | 'T') | |
29 | ||
a547dfe9 JS |
30 | #define WAKEUP_CHARS 256 /* hard coded for now */ |
31 | #define TX_SIZE 254 | |
32 | ||
1da177e4 LT |
33 | #define BOARD_COUNT 4 |
34 | #define PORT_COUNT (BOARD_COUNT*16) | |
35 | ||
1da177e4 LT |
36 | /* character sizes */ |
37 | ||
38 | #define ISICOM_CS5 0x0000 | |
39 | #define ISICOM_CS6 0x0001 | |
40 | #define ISICOM_CS7 0x0002 | |
41 | #define ISICOM_CS8 0x0003 | |
42 | ||
43 | /* stop bits */ | |
44 | ||
45 | #define ISICOM_1SB 0x0000 | |
46 | #define ISICOM_2SB 0x0004 | |
47 | ||
48 | /* parity */ | |
49 | ||
50 | #define ISICOM_NOPAR 0x0000 | |
51 | #define ISICOM_ODPAR 0x0008 | |
52 | #define ISICOM_EVPAR 0x0018 | |
53 | ||
54 | /* flow control */ | |
55 | ||
56 | #define ISICOM_CTSRTS 0x03 | |
57 | #define ISICOM_INITIATE_XONXOFF 0x04 | |
58 | #define ISICOM_RESPOND_XONXOFF 0x08 | |
59 | ||
1da177e4 LT |
60 | #define BOARD(line) (((line) >> 4) & 0x3) |
61 | ||
62 | /* isi kill queue bitmap */ | |
a547dfe9 | 63 | |
1da177e4 LT |
64 | #define ISICOM_KILLTX 0x01 |
65 | #define ISICOM_KILLRX 0x02 | |
66 | ||
67 | /* isi_board status bitmap */ | |
a547dfe9 | 68 | |
1da177e4 LT |
69 | #define FIRMWARE_LOADED 0x0001 |
70 | #define BOARD_ACTIVE 0x0002 | |
6ed847d8 | 71 | #define BOARD_INIT 0x0004 |
1da177e4 LT |
72 | |
73 | /* isi_port status bitmap */ | |
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 | ||
a547dfe9 JS |
83 | #define ISI_TXOK 0x0001 |
84 | ||
1da177e4 | 85 | #endif /* ISICOM_H */ |