Go to the documentation of this file.
23 #include <linux/serial_core.h>
25 #define BAUD_TABLE_LIMIT ((sizeof(icom_acfg_baud)/sizeof(int)) - 1)
26 static int icom_acfg_baud[] = {
86 #define V2_HARDWARE 0x40
87 #define ICOM_HDW_ACTIVE 0x01
117 #define ICOM_CONTROL_START_A 0x00000008
118 #define ICOM_CONTROL_STOP_A 0x00000004
119 #define ICOM_CONTROL_START_B 0x00000002
120 #define ICOM_CONTROL_STOP_B 0x00000001
121 #define ICOM_CONTROL_START_C 0x00000008
122 #define ICOM_CONTROL_STOP_C 0x00000004
123 #define ICOM_CONTROL_START_D 0x00000002
124 #define ICOM_CONTROL_STOP_D 0x00000001
125 #define ICOM_IRAM_OFFSET 0x1000
126 #define ICOM_IRAM_SIZE 0x0C00
127 #define ICOM_DCE_IRAM_OFFSET 0x0A00
128 #define ICOM_CABLE_ID_VALID 0x01
129 #define ICOM_CABLE_ID_MASK 0xF0
130 #define ICOM_DISABLE 0x80
131 #define CMD_XMIT_RCV_ENABLE 0xC0
132 #define CMD_XMIT_ENABLE 0x40
133 #define CMD_RCV_DISABLE 0x00
134 #define CMD_RCV_ENABLE 0x80
135 #define CMD_RESTART 0x01
136 #define CMD_HOLD_XMIT 0x02
137 #define CMD_SND_BREAK 0x04
138 #define RS232_CABLE 0x06
139 #define V24_CABLE 0x0E
140 #define V35_CABLE 0x0C
141 #define V36_CABLE 0x02
142 #define NO_CABLE 0x00
143 #define START_DOWNLOAD 0x80
144 #define ICOM_INT_MASK_PRC_A 0x00003FFF
145 #define ICOM_INT_MASK_PRC_B 0x3FFF0000
146 #define ICOM_INT_MASK_PRC_C 0x00003FFF
147 #define ICOM_INT_MASK_PRC_D 0x3FFF0000
148 #define INT_RCV_COMPLETED 0x1000
149 #define INT_XMIT_COMPLETED 0x2000
150 #define INT_IDLE_DETECT 0x0800
151 #define INT_RCV_DISABLED 0x0400
152 #define INT_XMIT_DISABLED 0x0200
153 #define INT_RCV_XMIT_SHUTDOWN 0x0100
154 #define INT_FATAL_ERROR 0x0080
155 #define INT_CABLE_PULL 0x0020
156 #define INT_SIGNAL_CHANGE 0x0010
157 #define HDLC_PPP_PURE_ASYNC 0x02
158 #define HDLC_FF_FILL 0x00
159 #define HDLC_HDW_FLOW 0x01
160 #define START_XMIT 0x80
161 #define ICOM_ACFG_DRIVE1 0x20
162 #define ICOM_ACFG_NO_PARITY 0x00
163 #define ICOM_ACFG_PARITY_ENAB 0x02
164 #define ICOM_ACFG_PARITY_ODD 0x01
165 #define ICOM_ACFG_8BPC 0x00
166 #define ICOM_ACFG_7BPC 0x04
167 #define ICOM_ACFG_6BPC 0x08
168 #define ICOM_ACFG_5BPC 0x0C
169 #define ICOM_ACFG_1STOP_BIT 0x00
170 #define ICOM_ACFG_2STOP_BIT 0x10
171 #define ICOM_DTR 0x80
172 #define ICOM_RTS 0x40
174 #define ICOM_DSR 0x80
175 #define ICOM_DCD 0x20
176 #define ICOM_CTS 0x40
180 #define RCV_BUFF_SZ 0x0200
181 #define XMIT_BUFF_SZ 0x1000
194 #define SA_FLAGS_DONE 0x0080
195 #define SA_FLAGS_CONTINUED 0x8000
196 #define SA_FLAGS_IDLE 0x4000
197 #define SA_FLAGS_READY_TO_XMIT 0x0800
198 #define SA_FLAGS_STAT_MASK 0x007F
212 #define SA_FL_RCV_DONE 0x0010
213 #define SA_FLAGS_OVERRUN 0x0040
214 #define SA_FLAGS_PARITY_ERROR 0x0080
215 #define SA_FLAGS_FRAME_ERROR 0x0001
216 #define SA_FLAGS_FRAME_TRUNC 0x0002
217 #define SA_FLAGS_BREAK_DET 0x0004
218 #define SA_FLAGS_RCV_MASK 0xFFE6
225 #define ICOM_MAJOR 243
226 #define ICOM_MINOR_START 0
231 #define ICOM_UNKNOWN 1
233 #define ICOM_IMBED_MODEM 3
252 #define ICOM_PORT_ACTIVE 1
253 #define ICOM_PORT_OFF 0
265 #define ADAPTER_V1 0x0001
266 #define ADAPTER_V2 0x0002
268 #define FOUR_PORT_MODEL 0x0252
269 #define V2_TWO_PORTS_RVX 0x021A
270 #define V2_ONE_PORT_RVX_ONE_PORT_IMBED_MDM 0x0251