blob: 8f4c71759d73fd5ee45b664135650e61572f69c9 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_ISICOM_H
2#define _LINUX_ISICOM_H
3
4/*#define ISICOM_DEBUG*/
5/*#define ISICOM_DEBUG_DTR_RTS*/
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#ifdef __KERNEL__
8
9#define YES 1
10#define NO 0
11
Jiri Slabya547dfe2006-01-09 20:54:26 -080012/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 * ISICOM Driver definitions ...
14 *
15 */
16
17#define ISICOM_NAME "ISICom"
18
19/*
20 * PCI definitions
21 */
22
Jiri Slabya547dfe2006-01-09 20:54:26 -080023#define DEVID_COUNT 9
24#define VENDOR_ID 0x10b5
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26/*
27 * These are now officially allocated numbers
28 */
29
30#define ISICOM_NMAJOR 112 /* normal */
31#define ISICOM_CMAJOR 113 /* callout */
32#define ISICOM_MAGIC (('M' << 8) | 'T')
33
Jiri Slabya547dfe2006-01-09 20:54:26 -080034#define WAKEUP_CHARS 256 /* hard coded for now */
35#define TX_SIZE 254
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#define BOARD_COUNT 4
38#define PORT_COUNT (BOARD_COUNT*16)
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040/* character sizes */
41
42#define ISICOM_CS5 0x0000
43#define ISICOM_CS6 0x0001
44#define ISICOM_CS7 0x0002
45#define ISICOM_CS8 0x0003
46
47/* stop bits */
48
49#define ISICOM_1SB 0x0000
50#define ISICOM_2SB 0x0004
51
52/* parity */
53
54#define ISICOM_NOPAR 0x0000
55#define ISICOM_ODPAR 0x0008
56#define ISICOM_EVPAR 0x0018
57
58/* flow control */
59
60#define ISICOM_CTSRTS 0x03
61#define ISICOM_INITIATE_XONXOFF 0x04
62#define ISICOM_RESPOND_XONXOFF 0x08
63
Linus Torvalds1da177e2005-04-16 15:20:36 -070064#define BOARD(line) (((line) >> 4) & 0x3)
65
66 /* isi kill queue bitmap */
Jiri Slabya547dfe2006-01-09 20:54:26 -080067
Linus Torvalds1da177e2005-04-16 15:20:36 -070068#define ISICOM_KILLTX 0x01
69#define ISICOM_KILLRX 0x02
70
71 /* isi_board status bitmap */
Jiri Slabya547dfe2006-01-09 20:54:26 -080072
Linus Torvalds1da177e2005-04-16 15:20:36 -070073#define FIRMWARE_LOADED 0x0001
74#define BOARD_ACTIVE 0x0002
75
76 /* isi_port status bitmap */
77
78#define ISI_CTS 0x1000
79#define ISI_DSR 0x2000
80#define ISI_RI 0x4000
81#define ISI_DCD 0x8000
82#define ISI_DTR 0x0100
83#define ISI_RTS 0x0200
84
85
Jiri Slabya547dfe2006-01-09 20:54:26 -080086#define ISI_TXOK 0x0001
87
Linus Torvalds1da177e2005-04-16 15:20:36 -070088#endif /* __KERNEL__ */
89
90#endif /* ISICOM_H */