1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_ISICOM_H
3 #define _LINUX_ISICOM_H
9 * ISICOM Driver definitions ...
13 #define ISICOM_NAME "ISICom"
20 #define VENDOR_ID 0x10b5
23 * These are now officially allocated numbers
26 #define ISICOM_NMAJOR 112 /* normal */
27 #define ISICOM_CMAJOR 113 /* callout */
28 #define ISICOM_MAGIC (('M' << 8) | 'T')
30 #define WAKEUP_CHARS 256 /* hard coded for now */
34 #define PORT_COUNT (BOARD_COUNT*16)
38 #define ISICOM_CS5 0x0000
39 #define ISICOM_CS6 0x0001
40 #define ISICOM_CS7 0x0002
41 #define ISICOM_CS8 0x0003
45 #define ISICOM_1SB 0x0000
46 #define ISICOM_2SB 0x0004
50 #define ISICOM_NOPAR 0x0000
51 #define ISICOM_ODPAR 0x0008
52 #define ISICOM_EVPAR 0x0018
56 #define ISICOM_CTSRTS 0x03
57 #define ISICOM_INITIATE_XONXOFF 0x04
58 #define ISICOM_RESPOND_XONXOFF 0x08
60 #define BOARD(line) (((line) >> 4) & 0x3)
62 /* isi kill queue bitmap */
64 #define ISICOM_KILLTX 0x01
65 #define ISICOM_KILLRX 0x02
67 /* isi_board status bitmap */
69 #define FIRMWARE_LOADED 0x0001
70 #define BOARD_ACTIVE 0x0002
71 #define BOARD_INIT 0x0004
73 /* isi_port status bitmap */
75 #define ISI_CTS 0x1000
76 #define ISI_DSR 0x2000
78 #define ISI_DCD 0x8000
79 #define ISI_DTR 0x0100
80 #define ISI_RTS 0x0200
83 #define ISI_TXOK 0x0001