1 #ifndef _LINUX_ISICOM_H
2 #define _LINUX_ISICOM_H
4 /*#define ISICOM_DEBUG*/
5 /*#define ISICOM_DEBUG_DTR_RTS*/
13 * ISICOM Driver definitions ...
17 #define ISICOM_NAME "ISICom"
24 #define VENDOR_ID 0x10b5
27 * These are now officially allocated numbers
30 #define ISICOM_NMAJOR 112 /* normal */
31 #define ISICOM_CMAJOR 113 /* callout */
32 #define ISICOM_MAGIC (('M' << 8) | 'T')
34 #define WAKEUP_CHARS 256 /* hard coded for now */
38 #define PORT_COUNT (BOARD_COUNT*16)
42 #define ISICOM_CS5 0x0000
43 #define ISICOM_CS6 0x0001
44 #define ISICOM_CS7 0x0002
45 #define ISICOM_CS8 0x0003
49 #define ISICOM_1SB 0x0000
50 #define ISICOM_2SB 0x0004
54 #define ISICOM_NOPAR 0x0000
55 #define ISICOM_ODPAR 0x0008
56 #define ISICOM_EVPAR 0x0018
60 #define ISICOM_CTSRTS 0x03
61 #define ISICOM_INITIATE_XONXOFF 0x04
62 #define ISICOM_RESPOND_XONXOFF 0x08
64 #define BOARD(line) (((line) >> 4) & 0x3)
66 /* isi kill queue bitmap */
68 #define ISICOM_KILLTX 0x01
69 #define ISICOM_KILLRX 0x02
71 /* isi_board status bitmap */
73 #define FIRMWARE_LOADED 0x0001
74 #define BOARD_ACTIVE 0x0002
76 /* isi_port status bitmap */
78 #define ISI_CTS 0x1000
79 #define ISI_DSR 0x2000
81 #define ISI_DCD 0x8000
82 #define ISI_DTR 0x0100
83 #define ISI_RTS 0x0200
86 #define ISI_TXOK 0x0001
88 #endif /* __KERNEL__ */