diff options
Diffstat (limited to 'drivers/char/rio/riowinif.h')
-rw-r--r-- | drivers/char/rio/riowinif.h | 934 |
1 files changed, 464 insertions, 470 deletions
diff --git a/drivers/char/rio/riowinif.h b/drivers/char/rio/riowinif.h index 18a4f147edc2..f802d7593b80 100644 --- a/drivers/char/rio/riowinif.h +++ b/drivers/char/rio/riowinif.h | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | */ | 41 | */ |
42 | 42 | ||
43 | #ifndef _riowinif_h /* If RIOWINDIF.H not already defined */ | 43 | #ifndef _riowinif_h /* If RIOWINDIF.H not already defined */ |
44 | #define _riowinif_h 1 | 44 | #define _riowinif_h 1 |
45 | 45 | ||
46 | /***************************************************************************** | 46 | /***************************************************************************** |
@@ -60,42 +60,41 @@ | |||
60 | /* The PARM_MAP structure defines global values relating to the Host Card / RTA | 60 | /* The PARM_MAP structure defines global values relating to the Host Card / RTA |
61 | and is the main structure from which all other structures are referenced. */ | 61 | and is the main structure from which all other structures are referenced. */ |
62 | 62 | ||
63 | typedef struct _PARM_MAP | 63 | typedef struct _PARM_MAP { |
64 | { | 64 | _u16 phb_ptr; /* 0x00 Pointer to the PHB array */ |
65 | _u16 phb_ptr; /* 0x00 Pointer to the PHB array */ | 65 | _u16 phb_num_ptr; /* 0x02 Ptr to Number of PHB's */ |
66 | _u16 phb_num_ptr; /* 0x02 Ptr to Number of PHB's */ | 66 | _u16 free_list; /* 0x04 Free List pointer */ |
67 | _u16 free_list; /* 0x04 Free List pointer */ | 67 | _u16 free_list_end; /* 0x06 Free List End pointer */ |
68 | _u16 free_list_end; /* 0x06 Free List End pointer */ | 68 | _u16 q_free_list_ptr; /* 0x08 Ptr to Q_BUF variable */ |
69 | _u16 q_free_list_ptr; /* 0x08 Ptr to Q_BUF variable */ | 69 | _u16 unit_id_ptr; /* 0x0A Unit Id */ |
70 | _u16 unit_id_ptr; /* 0x0A Unit Id */ | 70 | _u16 link_str_ptr; /* 0x0C Link Structure Array */ |
71 | _u16 link_str_ptr; /* 0x0C Link Structure Array */ | 71 | _u16 bootloader_1; /* 0x0E 1st Stage Boot Loader */ |
72 | _u16 bootloader_1; /* 0x0E 1st Stage Boot Loader */ | 72 | _u16 bootloader_2; /* 0x10 2nd Stage Boot Loader */ |
73 | _u16 bootloader_2; /* 0x10 2nd Stage Boot Loader */ | 73 | _u16 port_route_map_ptr; /* 0x12 Port Route Map */ |
74 | _u16 port_route_map_ptr; /* 0x12 Port Route Map */ | 74 | _u16 route_ptr; /* 0x14 Route Map */ |
75 | _u16 route_ptr; /* 0x14 Route Map */ | 75 | _u16 map_present; /* 0x16 Route Map present */ |
76 | _u16 map_present; /* 0x16 Route Map present */ | 76 | _u16 pkt_num; /* 0x18 Total number of packets */ |
77 | _u16 pkt_num; /* 0x18 Total number of packets */ | 77 | _u16 q_num; /* 0x1A Total number of Q packets */ |
78 | _u16 q_num; /* 0x1A Total number of Q packets */ | 78 | _u16 buffers_per_port; /* 0x1C Number of buffers per port */ |
79 | _u16 buffers_per_port; /* 0x1C Number of buffers per port */ | 79 | _u16 heap_size; /* 0x1E Initial size of heap */ |
80 | _u16 heap_size; /* 0x1E Initial size of heap */ | 80 | _u16 heap_left; /* 0x20 Current Heap left */ |
81 | _u16 heap_left; /* 0x20 Current Heap left */ | 81 | _u16 error; /* 0x22 Error code */ |
82 | _u16 error; /* 0x22 Error code */ | 82 | _u16 tx_max; /* 0x24 Max number of tx pkts per phb */ |
83 | _u16 tx_max; /* 0x24 Max number of tx pkts per phb */ | 83 | _u16 rx_max; /* 0x26 Max number of rx pkts per phb */ |
84 | _u16 rx_max; /* 0x26 Max number of rx pkts per phb */ | 84 | _u16 rx_limit; /* 0x28 For high / low watermarks */ |
85 | _u16 rx_limit; /* 0x28 For high / low watermarks */ | 85 | _u16 links; /* 0x2A Links to use */ |
86 | _u16 links; /* 0x2A Links to use */ | 86 | _u16 timer; /* 0x2C Interrupts per second */ |
87 | _u16 timer; /* 0x2C Interrupts per second */ | 87 | _u16 rups; /* 0x2E Pointer to the RUPs */ |
88 | _u16 rups; /* 0x2E Pointer to the RUPs */ | 88 | _u16 max_phb; /* 0x30 Mostly for debugging */ |
89 | _u16 max_phb; /* 0x30 Mostly for debugging */ | 89 | _u16 living; /* 0x32 Just increments!! */ |
90 | _u16 living; /* 0x32 Just increments!! */ | 90 | _u16 init_done; /* 0x34 Initialisation over */ |
91 | _u16 init_done; /* 0x34 Initialisation over */ | 91 | _u16 booting_link; /* 0x36 */ |
92 | _u16 booting_link; /* 0x36 */ | 92 | _u16 idle_count; /* 0x38 Idle time counter */ |
93 | _u16 idle_count; /* 0x38 Idle time counter */ | 93 | _u16 busy_count; /* 0x3A Busy counter */ |
94 | _u16 busy_count; /* 0x3A Busy counter */ | 94 | _u16 idle_control; /* 0x3C Control Idle Process */ |
95 | _u16 idle_control; /* 0x3C Control Idle Process */ | 95 | _u16 tx_intr; /* 0x3E TX interrupt pending */ |
96 | _u16 tx_intr; /* 0x3E TX interrupt pending */ | 96 | _u16 rx_intr; /* 0x40 RX interrupt pending */ |
97 | _u16 rx_intr; /* 0x40 RX interrupt pending */ | 97 | _u16 rup_intr; /* 0x42 RUP interrupt pending */ |
98 | _u16 rup_intr; /* 0x42 RUP interrupt pending */ | ||
99 | 98 | ||
100 | } PARM_MAP; | 99 | } PARM_MAP; |
101 | 100 | ||
@@ -184,45 +183,44 @@ typedef struct _PARM_MAP | |||
184 | attached to the system and there is normally an array of MAX_RUPS (=16) structures | 183 | attached to the system and there is normally an array of MAX_RUPS (=16) structures |
185 | in a host card, defined by PARM_MAP->rup. */ | 184 | in a host card, defined by PARM_MAP->rup. */ |
186 | 185 | ||
187 | typedef struct _RUP | 186 | typedef struct _RUP { |
188 | { | 187 | _u16 txpkt; /* 0x00 Outgoing packet */ |
189 | _u16 txpkt; /* 0x00 Outgoing packet */ | 188 | _u16 rxpkt; /* 0x02 ncoming packet */ |
190 | _u16 rxpkt; /* 0x02 ncoming packet */ | 189 | _u16 link; /* 0x04 Which link to send packet down ? */ |
191 | _u16 link; /* 0x04 Which link to send packet down ? */ | 190 | _u8 rup_dest_unit[2]; /* 0x06 Destination Unit */ |
192 | _u8 rup_dest_unit[2]; /* 0x06 Destination Unit */ | 191 | _u16 handshake; /* 0x08 Handshaking */ |
193 | _u16 handshake; /* 0x08 Handshaking */ | 192 | _u16 timeout; /* 0x0A Timeout */ |
194 | _u16 timeout; /* 0x0A Timeout */ | 193 | _u16 status; /* 0x0C Status */ |
195 | _u16 status; /* 0x0C Status */ | 194 | _u16 txcontrol; /* 0x0E Transmit control */ |
196 | _u16 txcontrol; /* 0x0E Transmit control */ | 195 | _u16 rxcontrol; /* 0x10 Receive control */ |
197 | _u16 rxcontrol; /* 0x10 Receive control */ | ||
198 | 196 | ||
199 | } RUP; | 197 | } RUP; |
200 | 198 | ||
201 | /* Same thing again, but defined as offsets... */ | 199 | /* Same thing again, but defined as offsets... */ |
202 | 200 | ||
203 | #define RUP_txpkt 0x00 /* 0x00 Outgoing packet */ | 201 | #define RUP_txpkt 0x00 /* 0x00 Outgoing packet */ |
204 | #define RUP_rxpkt 0x02 /* 0x02 Incoming packet */ | 202 | #define RUP_rxpkt 0x02 /* 0x02 Incoming packet */ |
205 | #define RUP_link 0x04 /* 0x04 Which link to send packet down ? */ | 203 | #define RUP_link 0x04 /* 0x04 Which link to send packet down ? */ |
206 | #define RUP_rup_dest_unit 0x06 /* 0x06 Destination Unit */ | 204 | #define RUP_rup_dest_unit 0x06 /* 0x06 Destination Unit */ |
207 | #define RUP_handshake 0x08 /* 0x08 Handshaking */ | 205 | #define RUP_handshake 0x08 /* 0x08 Handshaking */ |
208 | #define RUP_timeout 0x0A /* 0x0A Timeout */ | 206 | #define RUP_timeout 0x0A /* 0x0A Timeout */ |
209 | #define RUP_status 0x0C /* 0x0C Status */ | 207 | #define RUP_status 0x0C /* 0x0C Status */ |
210 | #define RUP_txcontrol 0x0E /* 0x0E Transmit control */ | 208 | #define RUP_txcontrol 0x0E /* 0x0E Transmit control */ |
211 | #define RUP_rxcontrol 0x10 /* 0x10 Receive control */ | 209 | #define RUP_rxcontrol 0x10 /* 0x10 Receive control */ |
212 | #define sizeof_RUP 0x12 /* structure size = 0x12 */ | 210 | #define sizeof_RUP 0x12 /* structure size = 0x12 */ |
213 | 211 | ||
214 | #define MAX_RUP 16 | 212 | #define MAX_RUP 16 |
215 | 213 | ||
216 | /* RUP.txcontrol definitions... */ | 214 | /* RUP.txcontrol definitions... */ |
217 | #define TX_RUP_INACTIVE 0 /* Nothing to transmit */ | 215 | #define TX_RUP_INACTIVE 0 /* Nothing to transmit */ |
218 | #define TX_PACKET_READY 1 /* Transmit packet ready */ | 216 | #define TX_PACKET_READY 1 /* Transmit packet ready */ |
219 | #define TX_LOCK_RUP 2 /* Transmit side locked */ | 217 | #define TX_LOCK_RUP 2 /* Transmit side locked */ |
220 | 218 | ||
221 | /* RUP.txcontrol definitions... */ | 219 | /* RUP.txcontrol definitions... */ |
222 | #define RX_RUP_INACTIVE 0 /* Nothing received */ | 220 | #define RX_RUP_INACTIVE 0 /* Nothing received */ |
223 | #define RX_PACKET_READY 1 /* Packet received */ | 221 | #define RX_PACKET_READY 1 /* Packet received */ |
224 | 222 | ||
225 | #define RUP_NO_OWNER 0xFF /* RUP not owned by any process */ | 223 | #define RUP_NO_OWNER 0xFF /* RUP not owned by any process */ |
226 | 224 | ||
227 | /***************************************************************************** | 225 | /***************************************************************************** |
228 | ********************************** *********************************** | 226 | ********************************** *********************************** |
@@ -234,52 +232,51 @@ typedef struct _RUP | |||
234 | to the system and there is normally an array of MAX_PHBS (=128) structures | 232 | to the system and there is normally an array of MAX_PHBS (=128) structures |
235 | in a host card, defined by PARM_MAP->phb_ptr and PARM_MAP->phb_num_ptr. */ | 233 | in a host card, defined by PARM_MAP->phb_ptr and PARM_MAP->phb_num_ptr. */ |
236 | 234 | ||
237 | typedef struct _PHB | 235 | typedef struct _PHB { |
238 | { | 236 | _u16 source; /* 0x00 Location of the PHB in the host card */ |
239 | _u16 source; /* 0x00 Location of the PHB in the host card */ | 237 | _u16 handshake; /* 0x02 Used to manage receive packet flow control */ |
240 | _u16 handshake; /* 0x02 Used to manage receive packet flow control */ | 238 | _u16 status; /* 0x04 Internal port transmit/receive status */ |
241 | _u16 status; /* 0x04 Internal port transmit/receive status */ | 239 | _u16 timeout; /* 0x06 Time period to wait for an ACK */ |
242 | _u16 timeout; /* 0x06 Time period to wait for an ACK */ | 240 | _u16 link; /* 0x08 The host link associated with the PHB */ |
243 | _u16 link; /* 0x08 The host link associated with the PHB */ | 241 | _u16 destination; /* 0x0A Location of the remote port on the network */ |
244 | _u16 destination; /* 0x0A Location of the remote port on the network */ | 242 | |
245 | 243 | _u16 tx_start; /* 0x0C first entry in the packet array for transmit packets */ | |
246 | _u16 tx_start; /* 0x0C first entry in the packet array for transmit packets */ | 244 | _u16 tx_end; /* 0x0E last entry in the packet array for transmit packets */ |
247 | _u16 tx_end; /* 0x0E last entry in the packet array for transmit packets */ | 245 | _u16 tx_add; /* 0x10 position in the packet array for new transmit packets */ |
248 | _u16 tx_add; /* 0x10 position in the packet array for new transmit packets */ | 246 | _u16 tx_remove; /* 0x12 current position in the packet pointer array */ |
249 | _u16 tx_remove; /* 0x12 current position in the packet pointer array */ | 247 | |
250 | 248 | _u16 rx_start; /* 0x14 first entry in the packet array for receive packets */ | |
251 | _u16 rx_start; /* 0x14 first entry in the packet array for receive packets */ | 249 | _u16 rx_end; /* 0x16 last entry in the packet array for receive packets */ |
252 | _u16 rx_end; /* 0x16 last entry in the packet array for receive packets */ | 250 | _u16 rx_add; /* 0x18 position in the packet array for new receive packets */ |
253 | _u16 rx_add; /* 0x18 position in the packet array for new receive packets */ | 251 | _u16 rx_remove; /* 0x1A current position in the packet pointer array */ |
254 | _u16 rx_remove; /* 0x1A current position in the packet pointer array */ | ||
255 | 252 | ||
256 | } PHB; | 253 | } PHB; |
257 | 254 | ||
258 | /* Same thing again, but defined as offsets... */ | 255 | /* Same thing again, but defined as offsets... */ |
259 | 256 | ||
260 | #define PHB_source 0x00 /* 0x00 Location of the PHB in the host card */ | 257 | #define PHB_source 0x00 /* 0x00 Location of the PHB in the host card */ |
261 | #define PHB_handshake 0x02 /* 0x02 Used to manage receive packet flow control */ | 258 | #define PHB_handshake 0x02 /* 0x02 Used to manage receive packet flow control */ |
262 | #define PHB_status 0x04 /* 0x04 Internal port transmit/receive status */ | 259 | #define PHB_status 0x04 /* 0x04 Internal port transmit/receive status */ |
263 | #define PHB_timeout 0x06 /* 0x06 Time period to wait for an ACK */ | 260 | #define PHB_timeout 0x06 /* 0x06 Time period to wait for an ACK */ |
264 | #define PHB_link 0x08 /* 0x08 The host link associated with the PHB */ | 261 | #define PHB_link 0x08 /* 0x08 The host link associated with the PHB */ |
265 | #define PHB_destination 0x0A /* 0x0A Location of the remote port on the network */ | 262 | #define PHB_destination 0x0A /* 0x0A Location of the remote port on the network */ |
266 | #define PHB_tx_start 0x0C /* 0x0C first entry in the packet array for transmit packets */ | 263 | #define PHB_tx_start 0x0C /* 0x0C first entry in the packet array for transmit packets */ |
267 | #define PHB_tx_end 0x0E /* 0x0E last entry in the packet array for transmit packets */ | 264 | #define PHB_tx_end 0x0E /* 0x0E last entry in the packet array for transmit packets */ |
268 | #define PHB_tx_add 0x10 /* 0x10 position in the packet array for new transmit packets */ | 265 | #define PHB_tx_add 0x10 /* 0x10 position in the packet array for new transmit packets */ |
269 | #define PHB_tx_remove 0x12 /* 0x12 current position in the packet pointer array */ | 266 | #define PHB_tx_remove 0x12 /* 0x12 current position in the packet pointer array */ |
270 | #define PHB_rx_start 0x14 /* 0x14 first entry in the packet array for receive packets */ | 267 | #define PHB_rx_start 0x14 /* 0x14 first entry in the packet array for receive packets */ |
271 | #define PHB_rx_end 0x16 /* 0x16 last entry in the packet array for receive packets */ | 268 | #define PHB_rx_end 0x16 /* 0x16 last entry in the packet array for receive packets */ |
272 | #define PHB_rx_add 0x18 /* 0x18 position in the packet array for new receive packets */ | 269 | #define PHB_rx_add 0x18 /* 0x18 position in the packet array for new receive packets */ |
273 | #define PHB_rx_remove 0x1A /* 0x1A current position in the packet pointer array */ | 270 | #define PHB_rx_remove 0x1A /* 0x1A current position in the packet pointer array */ |
274 | #define sizeof_PHB 0x1C /* structure size = 0x1C */ | 271 | #define sizeof_PHB 0x1C /* structure size = 0x1C */ |
275 | 272 | ||
276 | /* PHB.handshake definitions... */ | 273 | /* PHB.handshake definitions... */ |
277 | #define PHB_HANDSHAKE_SET 0x0001 /* Set by LRT */ | 274 | #define PHB_HANDSHAKE_SET 0x0001 /* Set by LRT */ |
278 | #define PHB_HANDSHAKE_RESET 0x0002 /* Set by ISR / driver */ | 275 | #define PHB_HANDSHAKE_RESET 0x0002 /* Set by ISR / driver */ |
279 | #define PHB_HANDSHAKE_FLAGS (PHB_HANDSHAKE_RESET|PHB_HANDSHAKE_SET) | 276 | #define PHB_HANDSHAKE_FLAGS (PHB_HANDSHAKE_RESET|PHB_HANDSHAKE_SET) |
280 | /* Reset by ltt */ | 277 | /* Reset by ltt */ |
281 | 278 | ||
282 | #define MAX_PHB 128 /* range 0-127 */ | 279 | #define MAX_PHB 128 /* range 0-127 */ |
283 | 280 | ||
284 | /***************************************************************************** | 281 | /***************************************************************************** |
285 | ********************************** *********************************** | 282 | ********************************** *********************************** |
@@ -291,86 +288,85 @@ typedef struct _PHB | |||
291 | and there is normally an array of MAX_LINKS (=4) structures in a host card, | 288 | and there is normally an array of MAX_LINKS (=4) structures in a host card, |
292 | defined by PARM_MAP->link_str_ptr. */ | 289 | defined by PARM_MAP->link_str_ptr. */ |
293 | 290 | ||
294 | typedef struct _LPB | 291 | typedef struct _LPB { |
295 | { | 292 | _u16 link_number; /* 0x00 Link Number */ |
296 | _u16 link_number; /* 0x00 Link Number */ | 293 | _u16 in_ch; /* 0x02 Link In Channel */ |
297 | _u16 in_ch; /* 0x02 Link In Channel */ | 294 | _u16 out_ch; /* 0x04 Link Out Channel */ |
298 | _u16 out_ch; /* 0x04 Link Out Channel */ | 295 | _u8 attached_serial[4]; /* 0x06 Attached serial number */ |
299 | _u8 attached_serial[4]; /* 0x06 Attached serial number */ | 296 | _u8 attached_host_serial[4]; /* 0x0A Serial number of Host who booted other end */ |
300 | _u8 attached_host_serial[4];/* 0x0A Serial number of Host who booted other end */ | 297 | _u16 descheduled; /* 0x0E Currently Descheduled */ |
301 | _u16 descheduled; /* 0x0E Currently Descheduled */ | 298 | _u16 state; /* 0x10 Current state */ |
302 | _u16 state; /* 0x10 Current state */ | 299 | _u16 send_poll; /* 0x12 Send a Poll Packet */ |
303 | _u16 send_poll; /* 0x12 Send a Poll Packet */ | 300 | _u16 ltt_p; /* 0x14 Process Descriptor */ |
304 | _u16 ltt_p; /* 0x14 Process Descriptor */ | 301 | _u16 lrt_p; /* 0x16 Process Descriptor */ |
305 | _u16 lrt_p; /* 0x16 Process Descriptor */ | 302 | _u16 lrt_status; /* 0x18 Current lrt status */ |
306 | _u16 lrt_status; /* 0x18 Current lrt status */ | 303 | _u16 ltt_status; /* 0x1A Current ltt status */ |
307 | _u16 ltt_status; /* 0x1A Current ltt status */ | 304 | _u16 timeout; /* 0x1C Timeout value */ |
308 | _u16 timeout; /* 0x1C Timeout value */ | 305 | _u16 topology; /* 0x1E Topology bits */ |
309 | _u16 topology; /* 0x1E Topology bits */ | 306 | _u16 mon_ltt; /* 0x20 */ |
310 | _u16 mon_ltt; /* 0x20 */ | 307 | _u16 mon_lrt; /* 0x22 */ |
311 | _u16 mon_lrt; /* 0x22 */ | 308 | _u16 num_pkts; /* 0x24 */ |
312 | _u16 num_pkts; /* 0x24 */ | 309 | _u16 add_packet_list; /* 0x26 Add packets to here */ |
313 | _u16 add_packet_list; /* 0x26 Add packets to here */ | 310 | _u16 remove_packet_list; /* 0x28 Send packets from here */ |
314 | _u16 remove_packet_list; /* 0x28 Send packets from here */ | 311 | |
315 | 312 | _u16 lrt_fail_chan; /* 0x2A Lrt's failure channel */ | |
316 | _u16 lrt_fail_chan; /* 0x2A Lrt's failure channel */ | 313 | _u16 ltt_fail_chan; /* 0x2C Ltt's failure channel */ |
317 | _u16 ltt_fail_chan; /* 0x2C Ltt's failure channel */ | 314 | |
318 | 315 | RUP rup; /* 0x2E RUP structure for HOST to driver comms */ | |
319 | RUP rup; /* 0x2E RUP structure for HOST to driver comms */ | 316 | RUP link_rup; /* 0x40 RUP for the link (POLL, topology etc.) */ |
320 | RUP link_rup; /* 0x40 RUP for the link (POLL, topology etc.) */ | 317 | _u16 attached_link; /* 0x52 Number of attached link */ |
321 | _u16 attached_link; /* 0x52 Number of attached link */ | 318 | _u16 csum_errors; /* 0x54 csum errors */ |
322 | _u16 csum_errors; /* 0x54 csum errors */ | 319 | _u16 num_disconnects; /* 0x56 number of disconnects */ |
323 | _u16 num_disconnects; /* 0x56 number of disconnects */ | 320 | _u16 num_sync_rcvd; /* 0x58 # sync's received */ |
324 | _u16 num_sync_rcvd; /* 0x58 # sync's received */ | 321 | _u16 num_sync_rqst; /* 0x5A # sync requests */ |
325 | _u16 num_sync_rqst; /* 0x5A # sync requests */ | 322 | _u16 num_tx; /* 0x5C Num pkts sent */ |
326 | _u16 num_tx; /* 0x5C Num pkts sent */ | 323 | _u16 num_rx; /* 0x5E Num pkts received */ |
327 | _u16 num_rx; /* 0x5E Num pkts received */ | 324 | _u16 module_attached; /* 0x60 Module tpyes of attached */ |
328 | _u16 module_attached; /* 0x60 Module tpyes of attached */ | 325 | _u16 led_timeout; /* 0x62 LED timeout */ |
329 | _u16 led_timeout; /* 0x62 LED timeout */ | 326 | _u16 first_port; /* 0x64 First port to service */ |
330 | _u16 first_port; /* 0x64 First port to service */ | 327 | _u16 last_port; /* 0x66 Last port to service */ |
331 | _u16 last_port; /* 0x66 Last port to service */ | ||
332 | 328 | ||
333 | } LPB; | 329 | } LPB; |
334 | 330 | ||
335 | /* Same thing again, but defined as offsets... */ | 331 | /* Same thing again, but defined as offsets... */ |
336 | 332 | ||
337 | #define LPB_link_number 0x00 /* 0x00 Link Number */ | 333 | #define LPB_link_number 0x00 /* 0x00 Link Number */ |
338 | #define LPB_in_ch 0x02 /* 0x02 Link In Channel */ | 334 | #define LPB_in_ch 0x02 /* 0x02 Link In Channel */ |
339 | #define LPB_out_ch 0x04 /* 0x04 Link Out Channel */ | 335 | #define LPB_out_ch 0x04 /* 0x04 Link Out Channel */ |
340 | #define LPB_attached_serial 0x06 /* 0x06 Attached serial number */ | 336 | #define LPB_attached_serial 0x06 /* 0x06 Attached serial number */ |
341 | #define LPB_attached_host_serial 0x0A /* 0x0A Serial number of Host who booted other end */ | 337 | #define LPB_attached_host_serial 0x0A /* 0x0A Serial number of Host who booted other end */ |
342 | #define LPB_descheduled 0x0E /* 0x0E Currently Descheduled */ | 338 | #define LPB_descheduled 0x0E /* 0x0E Currently Descheduled */ |
343 | #define LPB_state 0x10 /* 0x10 Current state */ | 339 | #define LPB_state 0x10 /* 0x10 Current state */ |
344 | #define LPB_send_poll 0x12 /* 0x12 Send a Poll Packet */ | 340 | #define LPB_send_poll 0x12 /* 0x12 Send a Poll Packet */ |
345 | #define LPB_ltt_p 0x14 /* 0x14 Process Descriptor */ | 341 | #define LPB_ltt_p 0x14 /* 0x14 Process Descriptor */ |
346 | #define LPB_lrt_p 0x16 /* 0x16 Process Descriptor */ | 342 | #define LPB_lrt_p 0x16 /* 0x16 Process Descriptor */ |
347 | #define LPB_lrt_status 0x18 /* 0x18 Current lrt status */ | 343 | #define LPB_lrt_status 0x18 /* 0x18 Current lrt status */ |
348 | #define LPB_ltt_status 0x1A /* 0x1A Current ltt status */ | 344 | #define LPB_ltt_status 0x1A /* 0x1A Current ltt status */ |
349 | #define LPB_timeout 0x1C /* 0x1C Timeout value */ | 345 | #define LPB_timeout 0x1C /* 0x1C Timeout value */ |
350 | #define LPB_topology 0x1E /* 0x1E Topology bits */ | 346 | #define LPB_topology 0x1E /* 0x1E Topology bits */ |
351 | #define LPB_mon_ltt 0x20 /* 0x20 */ | 347 | #define LPB_mon_ltt 0x20 /* 0x20 */ |
352 | #define LPB_mon_lrt 0x22 /* 0x22 */ | 348 | #define LPB_mon_lrt 0x22 /* 0x22 */ |
353 | #define LPB_num_pkts 0x24 /* 0x24 */ | 349 | #define LPB_num_pkts 0x24 /* 0x24 */ |
354 | #define LPB_add_packet_list 0x26 /* 0x26 Add packets to here */ | 350 | #define LPB_add_packet_list 0x26 /* 0x26 Add packets to here */ |
355 | #define LPB_remove_packet_list 0x28 /* 0x28 Send packets from here */ | 351 | #define LPB_remove_packet_list 0x28 /* 0x28 Send packets from here */ |
356 | #define LPB_lrt_fail_chan 0x2A /* 0x2A Lrt's failure channel */ | 352 | #define LPB_lrt_fail_chan 0x2A /* 0x2A Lrt's failure channel */ |
357 | #define LPB_ltt_fail_chan 0x2C /* 0x2C Ltt's failure channel */ | 353 | #define LPB_ltt_fail_chan 0x2C /* 0x2C Ltt's failure channel */ |
358 | #define LPB_rup 0x2E /* 0x2E RUP structure for HOST to driver comms */ | 354 | #define LPB_rup 0x2E /* 0x2E RUP structure for HOST to driver comms */ |
359 | #define LPB_link_rup 0x40 /* 0x40 RUP for the link (POLL, topology etc.) */ | 355 | #define LPB_link_rup 0x40 /* 0x40 RUP for the link (POLL, topology etc.) */ |
360 | #define LPB_attached_link 0x52 /* 0x52 Number of attached link */ | 356 | #define LPB_attached_link 0x52 /* 0x52 Number of attached link */ |
361 | #define LPB_csum_errors 0x54 /* 0x54 csum errors */ | 357 | #define LPB_csum_errors 0x54 /* 0x54 csum errors */ |
362 | #define LPB_num_disconnects 0x56 /* 0x56 number of disconnects */ | 358 | #define LPB_num_disconnects 0x56 /* 0x56 number of disconnects */ |
363 | #define LPB_num_sync_rcvd 0x58 /* 0x58 # sync's received */ | 359 | #define LPB_num_sync_rcvd 0x58 /* 0x58 # sync's received */ |
364 | #define LPB_num_sync_rqst 0x5A /* 0x5A # sync requests */ | 360 | #define LPB_num_sync_rqst 0x5A /* 0x5A # sync requests */ |
365 | #define LPB_num_tx 0x5C /* 0x5C Num pkts sent */ | 361 | #define LPB_num_tx 0x5C /* 0x5C Num pkts sent */ |
366 | #define LPB_num_rx 0x5E /* 0x5E Num pkts received */ | 362 | #define LPB_num_rx 0x5E /* 0x5E Num pkts received */ |
367 | #define LPB_module_attached 0x60 /* 0x60 Module tpyes of attached */ | 363 | #define LPB_module_attached 0x60 /* 0x60 Module tpyes of attached */ |
368 | #define LPB_led_timeout 0x62 /* 0x62 LED timeout */ | 364 | #define LPB_led_timeout 0x62 /* 0x62 LED timeout */ |
369 | #define LPB_first_port 0x64 /* 0x64 First port to service */ | 365 | #define LPB_first_port 0x64 /* 0x64 First port to service */ |
370 | #define LPB_last_port 0x66 /* 0x66 Last port to service */ | 366 | #define LPB_last_port 0x66 /* 0x66 Last port to service */ |
371 | #define sizeof_LPB 0x68 /* structure size = 0x68 */ | 367 | #define sizeof_LPB 0x68 /* structure size = 0x68 */ |
372 | 368 | ||
373 | #define LINKS_PER_UNIT 4 /* number of links from a host */ | 369 | #define LINKS_PER_UNIT 4 /* number of links from a host */ |
374 | 370 | ||
375 | /***************************************************************************** | 371 | /***************************************************************************** |
376 | ******************************** ******************************* | 372 | ******************************** ******************************* |
@@ -380,17 +376,16 @@ typedef struct _LPB | |||
380 | 376 | ||
381 | /* Used to overlay packet headers when allocating/freeing packets from the free list */ | 377 | /* Used to overlay packet headers when allocating/freeing packets from the free list */ |
382 | 378 | ||
383 | typedef struct _FREE_LIST | 379 | typedef struct _FREE_LIST { |
384 | { | 380 | _u16 next; /* 0x00 offset of next list item */ |
385 | _u16 next; /* 0x00 offset of next list item */ | 381 | _u16 prev; /* 0x02 offset of previous list item */ |
386 | _u16 prev; /* 0x02 offset of previous list item */ | ||
387 | 382 | ||
388 | } FREE_LIST; | 383 | } FREE_LIST; |
389 | 384 | ||
390 | /* Same thing again, but defined as offsets... */ | 385 | /* Same thing again, but defined as offsets... */ |
391 | 386 | ||
392 | #define FL_next 0x00 /* 0x00 offset of next list item */ | 387 | #define FL_next 0x00 /* 0x00 offset of next list item */ |
393 | #define FL_prev 0x02 /* 0x02 offset of previous list item */ | 388 | #define FL_prev 0x02 /* 0x02 offset of previous list item */ |
394 | 389 | ||
395 | /***************************************************************************** | 390 | /***************************************************************************** |
396 | ********************************** *********************************** | 391 | ********************************** *********************************** |
@@ -401,32 +396,31 @@ typedef struct _FREE_LIST | |||
401 | /* The PKT is the main unit of communication between Host Cards and RTAs across | 396 | /* The PKT is the main unit of communication between Host Cards and RTAs across |
402 | the RIO network. */ | 397 | the RIO network. */ |
403 | 398 | ||
404 | #define PKT_MAX_DATA_LEN 72 /* Size of packet data */ | 399 | #define PKT_MAX_DATA_LEN 72 /* Size of packet data */ |
405 | 400 | ||
406 | typedef struct _PKT | 401 | typedef struct _PKT { |
407 | { | 402 | _u8 dest_unit; /* 0x00 Destination Unit Id */ |
408 | _u8 dest_unit; /* 0x00 Destination Unit Id */ | 403 | _u8 dest_port; /* 0x01 Destination Port */ |
409 | _u8 dest_port; /* 0x01 Destination Port */ | 404 | _u8 src_unit; /* 0x02 Source Unit Id */ |
410 | _u8 src_unit; /* 0x02 Source Unit Id */ | 405 | _u8 src_port; /* 0x03 Source Port */ |
411 | _u8 src_port; /* 0x03 Source Port */ | 406 | _u8 len; /* 0x04 Length (in bytes) of data field */ |
412 | _u8 len; /* 0x04 Length (in bytes) of data field */ | 407 | _u8 control; /* 0x05 */ |
413 | _u8 control; /* 0x05 */ | 408 | _u8 data[PKT_MAX_DATA_LEN]; /* 0x06 Actual data */ |
414 | _u8 data[PKT_MAX_DATA_LEN]; /* 0x06 Actual data */ | 409 | _u16 csum; /* 0x4E C-SUM */ |
415 | _u16 csum; /* 0x4E C-SUM */ | ||
416 | 410 | ||
417 | } PKT; | 411 | } PKT; |
418 | 412 | ||
419 | /* Same thing again, but defined as offsets... */ | 413 | /* Same thing again, but defined as offsets... */ |
420 | 414 | ||
421 | #define PKT_dest_unit 0x00 /* 0x00 Destination Unit Id */ | 415 | #define PKT_dest_unit 0x00 /* 0x00 Destination Unit Id */ |
422 | #define PKT_dest_port 0x01 /* 0x01 Destination Port */ | 416 | #define PKT_dest_port 0x01 /* 0x01 Destination Port */ |
423 | #define PKT_src_unit 0x02 /* 0x02 Source Unit Id */ | 417 | #define PKT_src_unit 0x02 /* 0x02 Source Unit Id */ |
424 | #define PKT_src_port 0x03 /* 0x03 Source Port */ | 418 | #define PKT_src_port 0x03 /* 0x03 Source Port */ |
425 | #define PKT_len 0x04 /* 0x04 Length (in bytes) of data field */ | 419 | #define PKT_len 0x04 /* 0x04 Length (in bytes) of data field */ |
426 | #define PKT_control 0x05 /* 0x05 */ | 420 | #define PKT_control 0x05 /* 0x05 */ |
427 | #define PKT_data 0x06 /* 0x06 Actual data */ | 421 | #define PKT_data 0x06 /* 0x06 Actual data */ |
428 | #define PKT_csum 0x4E /* 0x4E C-SUM */ | 422 | #define PKT_csum 0x4E /* 0x4E C-SUM */ |
429 | #define sizeof_PKT 0x50 /* structure size = 0x50 */ | 423 | #define sizeof_PKT 0x50 /* structure size = 0x50 */ |
430 | 424 | ||
431 | /* PKT.len definitions... */ | 425 | /* PKT.len definitions... */ |
432 | #define PKT_CMD_BIT 0x80 | 426 | #define PKT_CMD_BIT 0x80 |
@@ -449,38 +443,38 @@ typedef struct _PKT | |||
449 | /* The following definitions and structures define the control packets sent | 443 | /* The following definitions and structures define the control packets sent |
450 | between the driver and RIO Ports, RTAs and Host Cards. */ | 444 | between the driver and RIO Ports, RTAs and Host Cards. */ |
451 | 445 | ||
452 | #define PRE_EMPTIVE 0x80 /* Pre-emptive command (sent via port's RUP) */ | 446 | #define PRE_EMPTIVE 0x80 /* Pre-emptive command (sent via port's RUP) */ |
453 | 447 | ||
454 | /* "in-band" and "pre-emptive" port commands... */ | 448 | /* "in-band" and "pre-emptive" port commands... */ |
455 | #define OPEN 0x00 /* Driver->RIO Open a port */ | 449 | #define OPEN 0x00 /* Driver->RIO Open a port */ |
456 | #define CONFIG 0x01 /* Driver->RIO Configure a port */ | 450 | #define CONFIG 0x01 /* Driver->RIO Configure a port */ |
457 | #define MOPEN 0x02 /* Driver->RIO Modem open (wait for DCD) */ | 451 | #define MOPEN 0x02 /* Driver->RIO Modem open (wait for DCD) */ |
458 | #define CLOSE 0x03 /* Driver->RIO Close a port */ | 452 | #define CLOSE 0x03 /* Driver->RIO Close a port */ |
459 | #define WFLUSH (0x04|PRE_EMPTIVE) /* Driver->RIO Write flush */ | 453 | #define WFLUSH (0x04|PRE_EMPTIVE) /* Driver->RIO Write flush */ |
460 | #define RFLUSH (0x05|PRE_EMPTIVE) /* Driver->RIO Read flush */ | 454 | #define RFLUSH (0x05|PRE_EMPTIVE) /* Driver->RIO Read flush */ |
461 | #define RESUME (0x06|PRE_EMPTIVE) /* Driver->RIO Behave as if XON received */ | 455 | #define RESUME (0x06|PRE_EMPTIVE) /* Driver->RIO Behave as if XON received */ |
462 | #define SBREAK 0x07 /* Driver->RIO Start break */ | 456 | #define SBREAK 0x07 /* Driver->RIO Start break */ |
463 | #define EBREAK 0x08 /* Driver->RIO End break */ | 457 | #define EBREAK 0x08 /* Driver->RIO End break */ |
464 | #define SUSPEND (0x09|PRE_EMPTIVE) /* Driver->RIO Behave as if XOFF received */ | 458 | #define SUSPEND (0x09|PRE_EMPTIVE) /* Driver->RIO Behave as if XOFF received */ |
465 | #define FCLOSE (0x0A|PRE_EMPTIVE) /* Driver->RIO Force close */ | 459 | #define FCLOSE (0x0A|PRE_EMPTIVE) /* Driver->RIO Force close */ |
466 | #define XPRINT 0x0B /* Driver->RIO Xprint packet */ | 460 | #define XPRINT 0x0B /* Driver->RIO Xprint packet */ |
467 | #define MBIS (0x0C|PRE_EMPTIVE) /* Driver->RIO Set modem lines */ | 461 | #define MBIS (0x0C|PRE_EMPTIVE) /* Driver->RIO Set modem lines */ |
468 | #define MBIC (0x0D|PRE_EMPTIVE) /* Driver->RIO Clear modem lines */ | 462 | #define MBIC (0x0D|PRE_EMPTIVE) /* Driver->RIO Clear modem lines */ |
469 | #define MSET (0x0E|PRE_EMPTIVE) /* Driver->RIO Set modem lines */ | 463 | #define MSET (0x0E|PRE_EMPTIVE) /* Driver->RIO Set modem lines */ |
470 | #define PCLOSE 0x0F /* Driver->RIO Pseudo close */ | 464 | #define PCLOSE 0x0F /* Driver->RIO Pseudo close */ |
471 | #define MGET (0x10|PRE_EMPTIVE) /* Driver->RIO Force update of modem status */ | 465 | #define MGET (0x10|PRE_EMPTIVE) /* Driver->RIO Force update of modem status */ |
472 | #define MEMDUMP (0x11|PRE_EMPTIVE) /* Driver->RIO DEBUG request for RTA memory */ | 466 | #define MEMDUMP (0x11|PRE_EMPTIVE) /* Driver->RIO DEBUG request for RTA memory */ |
473 | #define READ_REGISTER (0x12|PRE_EMPTIVE) /* Driver->RIO DEBUG read CD1400 register */ | 467 | #define READ_REGISTER (0x12|PRE_EMPTIVE) /* Driver->RIO DEBUG read CD1400 register */ |
474 | 468 | ||
475 | /* Remote Unit Port (RUP) packet definitions... (specified in PKT.dest_unit and PKT.src_unit) */ | 469 | /* Remote Unit Port (RUP) packet definitions... (specified in PKT.dest_unit and PKT.src_unit) */ |
476 | #define SYNC_RUP 0xFF /* Download internal */ | 470 | #define SYNC_RUP 0xFF /* Download internal */ |
477 | #define COMMAND_RUP 0xFE /* Command ack/status */ | 471 | #define COMMAND_RUP 0xFE /* Command ack/status */ |
478 | #define ERROR_RUP 0xFD /* Download internal */ | 472 | #define ERROR_RUP 0xFD /* Download internal */ |
479 | #define POLL_RUP 0xFC /* Download internal */ | 473 | #define POLL_RUP 0xFC /* Download internal */ |
480 | #define BOOT_RUP 0xFB /* Used to boot RTAs */ | 474 | #define BOOT_RUP 0xFB /* Used to boot RTAs */ |
481 | #define ROUTE_RUP 0xFA /* Used to specify routing/topology */ | 475 | #define ROUTE_RUP 0xFA /* Used to specify routing/topology */ |
482 | #define STATUS_RUP 0xF9 /* Not used */ | 476 | #define STATUS_RUP 0xF9 /* Not used */ |
483 | #define POWER_RUP 0xF8 /* Download internal */ | 477 | #define POWER_RUP 0xF8 /* Download internal */ |
484 | 478 | ||
485 | /* COMMAND_RUP definitions... */ | 479 | /* COMMAND_RUP definitions... */ |
486 | #define COMPLETE (0x20|PRE_EMPTIVE) /* RIO->Driver Command complete */ | 480 | #define COMPLETE (0x20|PRE_EMPTIVE) /* RIO->Driver Command complete */ |
@@ -488,24 +482,24 @@ typedef struct _PKT | |||
488 | #define MODEM_STATUS (0x22|PRE_EMPTIVE) /* RIO->Driver Modem status change */ | 482 | #define MODEM_STATUS (0x22|PRE_EMPTIVE) /* RIO->Driver Modem status change */ |
489 | 483 | ||
490 | /* BOOT_RUP definitions... */ | 484 | /* BOOT_RUP definitions... */ |
491 | #define BOOT_REQUEST 0x00 /* RIO->Driver Request for boot */ | 485 | #define BOOT_REQUEST 0x00 /* RIO->Driver Request for boot */ |
492 | #define BOOT_ABORT 0x01 /* Driver->RIO Abort a boot */ | 486 | #define BOOT_ABORT 0x01 /* Driver->RIO Abort a boot */ |
493 | #define BOOT_SEQUENCE 0x02 /* Driver->RIO Packet with firmware details */ | 487 | #define BOOT_SEQUENCE 0x02 /* Driver->RIO Packet with firmware details */ |
494 | #define BOOT_COMPLETED 0x03 /* RIO->Driver Boot completed */ | 488 | #define BOOT_COMPLETED 0x03 /* RIO->Driver Boot completed */ |
495 | #define IFOAD 0x2F /* Driver->RIO Shutdown/Reboot RTA (Fall Over And Die) */ | 489 | #define IFOAD 0x2F /* Driver->RIO Shutdown/Reboot RTA (Fall Over And Die) */ |
496 | #define IDENTIFY 0x30 /* Driver->RIO Identify RTA */ | 490 | #define IDENTIFY 0x30 /* Driver->RIO Identify RTA */ |
497 | #define ZOMBIE 0x31 /* Driver->RIO Shutdown/Flash LEDs */ | 491 | #define ZOMBIE 0x31 /* Driver->RIO Shutdown/Flash LEDs */ |
498 | #define UFOAD 0x32 /* Driver->RIO Shutdown/Reboot neighbouring RTA */ | 492 | #define UFOAD 0x32 /* Driver->RIO Shutdown/Reboot neighbouring RTA */ |
499 | #define IWAIT 0x33 /* Driver->RIO Pause booting process */ | 493 | #define IWAIT 0x33 /* Driver->RIO Pause booting process */ |
500 | 494 | ||
501 | /* ROUTE_RUP definitions... */ | 495 | /* ROUTE_RUP definitions... */ |
502 | #define ROUTE_REQUEST 0x00 /* RIO->Driver Request an ID */ | 496 | #define ROUTE_REQUEST 0x00 /* RIO->Driver Request an ID */ |
503 | #define ROUTE_FOAD 0x01 /* Driver->RIO Shutdown/reboot RTA */ | 497 | #define ROUTE_FOAD 0x01 /* Driver->RIO Shutdown/reboot RTA */ |
504 | #define ROUTE_ALREADY 0x02 /* Driver->RIO Not used */ | 498 | #define ROUTE_ALREADY 0x02 /* Driver->RIO Not used */ |
505 | #define ROUTE_USED 0x03 /* Driver->RIO Not used */ | 499 | #define ROUTE_USED 0x03 /* Driver->RIO Not used */ |
506 | #define ROUTE_ALLOCATE 0x04 /* Driver->RIO Allocate RTA RUP numbers */ | 500 | #define ROUTE_ALLOCATE 0x04 /* Driver->RIO Allocate RTA RUP numbers */ |
507 | #define ROUTE_REQ_TOP 0x05 /* Driver->RIO Not used */ | 501 | #define ROUTE_REQ_TOP 0x05 /* Driver->RIO Not used */ |
508 | #define ROUTE_TOPOLOGY 0x06 /* RIO->Driver Route/Topology status */ | 502 | #define ROUTE_TOPOLOGY 0x06 /* RIO->Driver Route/Topology status */ |
509 | 503 | ||
510 | /***************************************************************************** | 504 | /***************************************************************************** |
511 | ********************************** ********************************** | 505 | ********************************** ********************************** |
@@ -518,89 +512,89 @@ typedef struct _PKT | |||
518 | Sent to open a port. | 512 | Sent to open a port. |
519 | Structure of configuration info used with OPEN, CONFIG and MOPEN packets... */ | 513 | Structure of configuration info used with OPEN, CONFIG and MOPEN packets... */ |
520 | 514 | ||
521 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 515 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
522 | #define PKT_Cor1 (PKT_Data+1) /* Channel Option Register 1 */ | 516 | #define PKT_Cor1 (PKT_Data+1) /* Channel Option Register 1 */ |
523 | #define PKT_Cor2 (PKT_Data+2) /* Channel Option Register 2 */ | 517 | #define PKT_Cor2 (PKT_Data+2) /* Channel Option Register 2 */ |
524 | #define PKT_Cor4 (PKT_Data+3) /* Channel Option Register 4 */ | 518 | #define PKT_Cor4 (PKT_Data+3) /* Channel Option Register 4 */ |
525 | #define PKT_Cor5 (PKT_Data+4) /* Channel Option Register 5 */ | 519 | #define PKT_Cor5 (PKT_Data+4) /* Channel Option Register 5 */ |
526 | #define PKT_TxXon (PKT_Data+5) /* Transmit XON character */ | 520 | #define PKT_TxXon (PKT_Data+5) /* Transmit XON character */ |
527 | #define PKT_TxXoff (PKT_Data+6) /* Transmit XOFF character */ | 521 | #define PKT_TxXoff (PKT_Data+6) /* Transmit XOFF character */ |
528 | #define PKT_RxXon (PKT_Data+7) /* Receive XON character */ | 522 | #define PKT_RxXon (PKT_Data+7) /* Receive XON character */ |
529 | #define PKT_RxXoff (PKT_Data+8) /* Receive XOFF character */ | 523 | #define PKT_RxXoff (PKT_Data+8) /* Receive XOFF character */ |
530 | #define PKT_Lnext (PKT_Data+9) /* Lnext character */ | 524 | #define PKT_Lnext (PKT_Data+9) /* Lnext character */ |
531 | #define PKT_TxBaud (PKT_Data+10) /* Transmit baud rate */ | 525 | #define PKT_TxBaud (PKT_Data+10) /* Transmit baud rate */ |
532 | #define PKT_RxBaud (PKT_Data+11) /* Receive baud rate */ | 526 | #define PKT_RxBaud (PKT_Data+11) /* Receive baud rate */ |
533 | 527 | ||
534 | /* COR1 definitions... */ | 528 | /* COR1 definitions... */ |
535 | #define COR1_PARITY 0xE0 /* Parity mask */ | 529 | #define COR1_PARITY 0xE0 /* Parity mask */ |
536 | #define COR1_NONE 0x00 /* No parity */ | 530 | #define COR1_NONE 0x00 /* No parity */ |
537 | #define COR1_SPACE 0x20 /* Space parity */ | 531 | #define COR1_SPACE 0x20 /* Space parity */ |
538 | #define COR1_EVEN 0x40 /* Even parity */ | 532 | #define COR1_EVEN 0x40 /* Even parity */ |
539 | #define COR1_MARK 0xA0 /* Mark parity */ | 533 | #define COR1_MARK 0xA0 /* Mark parity */ |
540 | #define COR1_ODD 0xC0 /* Odd parity */ | 534 | #define COR1_ODD 0xC0 /* Odd parity */ |
541 | 535 | ||
542 | #define COR1_STOPBITS 0x0C /* Stop bits mask */ | 536 | #define COR1_STOPBITS 0x0C /* Stop bits mask */ |
543 | #define COR1_STOP1 0x00 /* 1 stop bit */ | 537 | #define COR1_STOP1 0x00 /* 1 stop bit */ |
544 | #define COR1_STOP1_5 0x04 /* 1.5 stop bits */ | 538 | #define COR1_STOP1_5 0x04 /* 1.5 stop bits */ |
545 | #define COR1_STOP2 0x08 /* 2 stop bits */ | 539 | #define COR1_STOP2 0x08 /* 2 stop bits */ |
546 | 540 | ||
547 | #define COR1_DATABITS 0x03 /* Data bits mask */ | 541 | #define COR1_DATABITS 0x03 /* Data bits mask */ |
548 | #define COR1_DATA5 0x00 /* 5 data bits */ | 542 | #define COR1_DATA5 0x00 /* 5 data bits */ |
549 | #define COR1_DATA6 0x01 /* 6 data bits */ | 543 | #define COR1_DATA6 0x01 /* 6 data bits */ |
550 | #define COR1_DATA7 0x02 /* 7 data bits */ | 544 | #define COR1_DATA7 0x02 /* 7 data bits */ |
551 | #define COR1_DATA8 0x03 /* 8 data bits */ | 545 | #define COR1_DATA8 0x03 /* 8 data bits */ |
552 | 546 | ||
553 | /* COR2 definitions... */ | 547 | /* COR2 definitions... */ |
554 | #define COR2_XON_TXFLOW 0x40 /* XON/XOFF Transmit Flow */ | 548 | #define COR2_XON_TXFLOW 0x40 /* XON/XOFF Transmit Flow */ |
555 | #define COR2_XANY_TXFLOW 0xC0 /* XON/XANY Transmit Flow */ | 549 | #define COR2_XANY_TXFLOW 0xC0 /* XON/XANY Transmit Flow */ |
556 | #define COR2_HUPCL 0x20 /* Hang Up On Close */ | 550 | #define COR2_HUPCL 0x20 /* Hang Up On Close */ |
557 | #define COR2_DSR_TXFLOW 0x08 /* DSR Transmit Flow Control */ | 551 | #define COR2_DSR_TXFLOW 0x08 /* DSR Transmit Flow Control */ |
558 | #define COR2_RTS_RXFLOW 0x04 /* RTS Receive Flow Control */ | 552 | #define COR2_RTS_RXFLOW 0x04 /* RTS Receive Flow Control */ |
559 | #define COR2_CTS_TXFLOW 0x02 /* CTS Transmit Flow Control */ | 553 | #define COR2_CTS_TXFLOW 0x02 /* CTS Transmit Flow Control */ |
560 | #define COR2_XON_RXFLOW 0x01 /* XON/XOFF Receive Flow */ | 554 | #define COR2_XON_RXFLOW 0x01 /* XON/XOFF Receive Flow */ |
561 | 555 | ||
562 | /* COR4 definition... */ | 556 | /* COR4 definition... */ |
563 | #define COR4_IGNCR 0x80 /* Discard received CR */ | 557 | #define COR4_IGNCR 0x80 /* Discard received CR */ |
564 | #define COR4_ICRNL 0x40 /* Map received CR -> NL */ | 558 | #define COR4_ICRNL 0x40 /* Map received CR -> NL */ |
565 | #define COR4_INLCR 0x20 /* Map received NL -> CR */ | 559 | #define COR4_INLCR 0x20 /* Map received NL -> CR */ |
566 | #define COR4_IGNBRK 0x10 /* Ignore Received Break */ | 560 | #define COR4_IGNBRK 0x10 /* Ignore Received Break */ |
567 | #define COR4_NBRKINT 0x08 /* No interrupt on rx Break */ | 561 | #define COR4_NBRKINT 0x08 /* No interrupt on rx Break */ |
568 | #define COR4_IGNPAR 0x04 /* ignore rx parity error chars */ | 562 | #define COR4_IGNPAR 0x04 /* ignore rx parity error chars */ |
569 | #define COR4_PARMRK 0x02 /* Mark rx parity error chars */ | 563 | #define COR4_PARMRK 0x02 /* Mark rx parity error chars */ |
570 | #define COR4_RAISEMOD 0x01 /* Raise modem lines on !0 baud */ | 564 | #define COR4_RAISEMOD 0x01 /* Raise modem lines on !0 baud */ |
571 | 565 | ||
572 | /* COR5 definitions... */ | 566 | /* COR5 definitions... */ |
573 | #define COR5_ISTRIP 0x80 /* Strip input chars to 7 bits */ | 567 | #define COR5_ISTRIP 0x80 /* Strip input chars to 7 bits */ |
574 | #define COR5_LNE 0x40 /* Enable LNEXT processing */ | 568 | #define COR5_LNE 0x40 /* Enable LNEXT processing */ |
575 | #define COR5_CMOE 0x20 /* Match good & error characters */ | 569 | #define COR5_CMOE 0x20 /* Match good & error characters */ |
576 | #define COR5_TAB3 0x10 /* TAB3 mode */ | 570 | #define COR5_TAB3 0x10 /* TAB3 mode */ |
577 | #define COR5_TSTATE_ON 0x08 /* Enable tbusy/tstop monitoring */ | 571 | #define COR5_TSTATE_ON 0x08 /* Enable tbusy/tstop monitoring */ |
578 | #define COR5_TSTATE_OFF 0x04 /* Disable tbusy/tstop monitoring */ | 572 | #define COR5_TSTATE_OFF 0x04 /* Disable tbusy/tstop monitoring */ |
579 | #define COR5_ONLCR 0x02 /* NL -> CR NL on output */ | 573 | #define COR5_ONLCR 0x02 /* NL -> CR NL on output */ |
580 | #define COR5_OCRNL 0x01 /* CR -> NL on output */ | 574 | #define COR5_OCRNL 0x01 /* CR -> NL on output */ |
581 | 575 | ||
582 | /* RxBaud and TxBaud definitions... */ | 576 | /* RxBaud and TxBaud definitions... */ |
583 | #define RIO_B0 0x00 /* RTS / DTR signals dropped */ | 577 | #define RIO_B0 0x00 /* RTS / DTR signals dropped */ |
584 | #define RIO_B50 0x01 /* 50 baud */ | 578 | #define RIO_B50 0x01 /* 50 baud */ |
585 | #define RIO_B75 0x02 /* 75 baud */ | 579 | #define RIO_B75 0x02 /* 75 baud */ |
586 | #define RIO_B110 0x03 /* 110 baud */ | 580 | #define RIO_B110 0x03 /* 110 baud */ |
587 | #define RIO_B134 0x04 /* 134.5 baud */ | 581 | #define RIO_B134 0x04 /* 134.5 baud */ |
588 | #define RIO_B150 0x05 /* 150 baud */ | 582 | #define RIO_B150 0x05 /* 150 baud */ |
589 | #define RIO_B200 0x06 /* 200 baud */ | 583 | #define RIO_B200 0x06 /* 200 baud */ |
590 | #define RIO_B300 0x07 /* 300 baud */ | 584 | #define RIO_B300 0x07 /* 300 baud */ |
591 | #define RIO_B600 0x08 /* 600 baud */ | 585 | #define RIO_B600 0x08 /* 600 baud */ |
592 | #define RIO_B1200 0x09 /* 1200 baud */ | 586 | #define RIO_B1200 0x09 /* 1200 baud */ |
593 | #define RIO_B1800 0x0A /* 1800 baud */ | 587 | #define RIO_B1800 0x0A /* 1800 baud */ |
594 | #define RIO_B2400 0x0B /* 2400 baud */ | 588 | #define RIO_B2400 0x0B /* 2400 baud */ |
595 | #define RIO_B4800 0x0C /* 4800 baud */ | 589 | #define RIO_B4800 0x0C /* 4800 baud */ |
596 | #define RIO_B9600 0x0D /* 9600 baud */ | 590 | #define RIO_B9600 0x0D /* 9600 baud */ |
597 | #define RIO_B19200 0x0E /* 19200 baud */ | 591 | #define RIO_B19200 0x0E /* 19200 baud */ |
598 | #define RIO_B38400 0x0F /* 38400 baud */ | 592 | #define RIO_B38400 0x0F /* 38400 baud */ |
599 | #define RIO_B56000 0x10 /* 56000 baud */ | 593 | #define RIO_B56000 0x10 /* 56000 baud */ |
600 | #define RIO_B57600 0x11 /* 57600 baud */ | 594 | #define RIO_B57600 0x11 /* 57600 baud */ |
601 | #define RIO_B64000 0x12 /* 64000 baud */ | 595 | #define RIO_B64000 0x12 /* 64000 baud */ |
602 | #define RIO_B115200 0x13 /* 115200 baud */ | 596 | #define RIO_B115200 0x13 /* 115200 baud */ |
603 | #define RIO_B2000 0x14 /* 2000 baud */ | 597 | #define RIO_B2000 0x14 /* 2000 baud */ |
604 | 598 | ||
605 | /***************************************************************************** | 599 | /***************************************************************************** |
606 | ********************************* ********************************* | 600 | ********************************* ********************************* |
@@ -636,7 +630,7 @@ typedef struct _PKT | |||
636 | No parameters. | 630 | No parameters. |
637 | */ | 631 | */ |
638 | #if 0 | 632 | #if 0 |
639 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 633 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
640 | #endif | 634 | #endif |
641 | /***************************************************************************** | 635 | /***************************************************************************** |
642 | ********************************* ********************************* | 636 | ********************************* ********************************* |
@@ -653,9 +647,9 @@ typedef struct _PKT | |||
653 | write flushing previously started by a pre-emptive WFLUSH packet. (in-band) | 647 | write flushing previously started by a pre-emptive WFLUSH packet. (in-band) |
654 | */ | 648 | */ |
655 | #if 0 | 649 | #if 0 |
656 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 650 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
657 | #endif | 651 | #endif |
658 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 652 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
659 | 653 | ||
660 | /***************************************************************************** | 654 | /***************************************************************************** |
661 | ********************************* ********************************* | 655 | ********************************* ********************************* |
@@ -669,8 +663,8 @@ typedef struct _PKT | |||
669 | packets of a port. | 663 | packets of a port. |
670 | */ | 664 | */ |
671 | #if 0 | 665 | #if 0 |
672 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 666 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
673 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 667 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
674 | #endif | 668 | #endif |
675 | 669 | ||
676 | /***************************************************************************** | 670 | /***************************************************************************** |
@@ -685,8 +679,8 @@ typedef struct _PKT | |||
685 | transmission of data if blocked by XOFF. (as if XON had been received) | 679 | transmission of data if blocked by XOFF. (as if XON had been received) |
686 | */ | 680 | */ |
687 | #if 0 | 681 | #if 0 |
688 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 682 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
689 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 683 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
690 | #endif | 684 | #endif |
691 | 685 | ||
692 | /***************************************************************************** | 686 | /***************************************************************************** |
@@ -707,9 +701,9 @@ typedef struct _PKT | |||
707 | specified number of mS. | 701 | specified number of mS. |
708 | */ | 702 | */ |
709 | #if 0 | 703 | #if 0 |
710 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 704 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
711 | #endif | 705 | #endif |
712 | #define PKT_BreakDelay (PKT_Data+1) /* Break delay in mS */ | 706 | #define PKT_BreakDelay (PKT_Data+1) /* Break delay in mS */ |
713 | 707 | ||
714 | /***************************************************************************** | 708 | /***************************************************************************** |
715 | ********************************* ********************************* | 709 | ********************************* ********************************* |
@@ -736,8 +730,8 @@ typedef struct _PKT | |||
736 | transmission of data. (as if XOFF had been received) | 730 | transmission of data. (as if XOFF had been received) |
737 | */ | 731 | */ |
738 | #if 0 | 732 | #if 0 |
739 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 733 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
740 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 734 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
741 | #endif | 735 | #endif |
742 | 736 | ||
743 | /***************************************************************************** | 737 | /***************************************************************************** |
@@ -753,8 +747,8 @@ typedef struct _PKT | |||
753 | modem signals if the COR5_HUPCL (Hang Up On Close) flag is set. | 747 | modem signals if the COR5_HUPCL (Hang Up On Close) flag is set. |
754 | */ | 748 | */ |
755 | #if 0 | 749 | #if 0 |
756 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 750 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
757 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 751 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
758 | #endif | 752 | #endif |
759 | 753 | ||
760 | /***************************************************************************** | 754 | /***************************************************************************** |
@@ -774,8 +768,8 @@ typedef struct _PKT | |||
774 | - Transparent Print Stop Sequence. | 768 | - Transparent Print Stop Sequence. |
775 | */ | 769 | */ |
776 | #if 0 | 770 | #if 0 |
777 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 771 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
778 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 772 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
779 | #endif | 773 | #endif |
780 | 774 | ||
781 | /***************************************************************************** | 775 | /***************************************************************************** |
@@ -789,14 +783,14 @@ typedef struct _PKT | |||
789 | MBIS is sent pre-emptively from the driver to set a port's modem signals. | 783 | MBIS is sent pre-emptively from the driver to set a port's modem signals. |
790 | */ | 784 | */ |
791 | #if 0 | 785 | #if 0 |
792 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 786 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
793 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 787 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
794 | #endif | 788 | #endif |
795 | #define PKT_ModemSet (PKT_Data+4) /* Modem set signals mask */ | 789 | #define PKT_ModemSet (PKT_Data+4) /* Modem set signals mask */ |
796 | 790 | ||
797 | /* ModemSet definitions... */ | 791 | /* ModemSet definitions... */ |
798 | #define MBIS_RTS 0x01 /* RTS modem signal */ | 792 | #define MBIS_RTS 0x01 /* RTS modem signal */ |
799 | #define MBIS_DTR 0x02 /* DTR modem signal */ | 793 | #define MBIS_DTR 0x02 /* DTR modem signal */ |
800 | 794 | ||
801 | /***************************************************************************** | 795 | /***************************************************************************** |
802 | ********************************** ********************************** | 796 | ********************************** ********************************** |
@@ -808,16 +802,16 @@ typedef struct _PKT | |||
808 | 802 | ||
809 | MBIC is sent pre-emptively from the driver to clear a port's modem signals. | 803 | MBIC is sent pre-emptively from the driver to clear a port's modem signals. |
810 | */ | 804 | */ |
811 | #if 0 | 805 | #if 0 |
812 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 806 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
813 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 807 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
814 | #endif | 808 | #endif |
815 | 809 | ||
816 | #define PKT_ModemClear (PKT_Data+4) /* Modem clear signals mask */ | 810 | #define PKT_ModemClear (PKT_Data+4) /* Modem clear signals mask */ |
817 | 811 | ||
818 | /* ModemClear definitions... */ | 812 | /* ModemClear definitions... */ |
819 | #define MBIC_RTS 0x01 /* RTS modem signal */ | 813 | #define MBIC_RTS 0x01 /* RTS modem signal */ |
820 | #define MBIC_DTR 0x02 /* DTR modem signal */ | 814 | #define MBIC_DTR 0x02 /* DTR modem signal */ |
821 | 815 | ||
822 | /***************************************************************************** | 816 | /***************************************************************************** |
823 | ********************************** ********************************** | 817 | ********************************** ********************************** |
@@ -829,15 +823,15 @@ typedef struct _PKT | |||
829 | 823 | ||
830 | MSET is sent pre-emptively from the driver to set/clear a port's modem signals. */ | 824 | MSET is sent pre-emptively from the driver to set/clear a port's modem signals. */ |
831 | #if 0 | 825 | #if 0 |
832 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 826 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
833 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 827 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
834 | #endif | 828 | #endif |
835 | 829 | ||
836 | #define PKT_ModemSet (PKT_Data+4) /* Modem set signals mask */ | 830 | #define PKT_ModemSet (PKT_Data+4) /* Modem set signals mask */ |
837 | 831 | ||
838 | /* ModemSet definitions... */ | 832 | /* ModemSet definitions... */ |
839 | #define MSET_RTS 0x01 /* RTS modem signal */ | 833 | #define MSET_RTS 0x01 /* RTS modem signal */ |
840 | #define MSET_DTR 0x02 /* DTR modem signal */ | 834 | #define MSET_DTR 0x02 /* DTR modem signal */ |
841 | 835 | ||
842 | /***************************************************************************** | 836 | /***************************************************************************** |
843 | ********************************* ********************************* | 837 | ********************************* ********************************* |
@@ -853,7 +847,7 @@ typedef struct _PKT | |||
853 | port's transmit / receive and modem signals will be left enabled and the | 847 | port's transmit / receive and modem signals will be left enabled and the |
854 | port marked internally as Pseudo Closed. */ | 848 | port marked internally as Pseudo Closed. */ |
855 | 849 | ||
856 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 850 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
857 | 851 | ||
858 | /***************************************************************************** | 852 | /***************************************************************************** |
859 | ********************************** ********************************** | 853 | ********************************** ********************************** |
@@ -865,8 +859,8 @@ typedef struct _PKT | |||
865 | 859 | ||
866 | MGET is sent pre-emptively from the driver to request the port's current modem signals. */ | 860 | MGET is sent pre-emptively from the driver to request the port's current modem signals. */ |
867 | 861 | ||
868 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 862 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
869 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 863 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
870 | 864 | ||
871 | /***************************************************************************** | 865 | /***************************************************************************** |
872 | ********************************* ******************************** | 866 | ********************************* ******************************** |
@@ -880,11 +874,11 @@ typedef struct _PKT | |||
880 | of the specified port's RTA address space. | 874 | of the specified port's RTA address space. |
881 | */ | 875 | */ |
882 | #if 0 | 876 | #if 0 |
883 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 877 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
884 | #endif | 878 | #endif |
885 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 879 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
886 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 880 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
887 | #define PKT_Address (PKT_Data+6) /* Requested address */ | 881 | #define PKT_Address (PKT_Data+6) /* Requested address */ |
888 | 882 | ||
889 | /***************************************************************************** | 883 | /***************************************************************************** |
890 | ****************************** ***************************** | 884 | ****************************** ***************************** |
@@ -898,11 +892,11 @@ typedef struct _PKT | |||
898 | of the CD1400 register specified in address. | 892 | of the CD1400 register specified in address. |
899 | */ | 893 | */ |
900 | #if 0 | 894 | #if 0 |
901 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 895 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
902 | #endif | 896 | #endif |
903 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 897 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
904 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 898 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
905 | #define PKT_Address (PKT_Data+6) /* Requested address */ | 899 | #define PKT_Address (PKT_Data+6) /* Requested address */ |
906 | 900 | ||
907 | /***************************************************************************** | 901 | /***************************************************************************** |
908 | ************************ ************************** | 902 | ************************ ************************** |
@@ -916,33 +910,33 @@ typedef struct _PKT | |||
916 | packets, except MEMDUMP and READ_REGISTER. | 910 | packets, except MEMDUMP and READ_REGISTER. |
917 | */ | 911 | */ |
918 | #if 0 | 912 | #if 0 |
919 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 913 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
920 | #endif | 914 | #endif |
921 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 915 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
922 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 916 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
923 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ | 917 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ |
924 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ | 918 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ |
925 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 919 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
926 | 920 | ||
927 | /* ModemStatus definitions... */ | 921 | /* ModemStatus definitions... */ |
928 | #define MODEM_DSR 0x80 /* Data Set Ready modem state */ | 922 | #define MODEM_DSR 0x80 /* Data Set Ready modem state */ |
929 | #define MODEM_CTS 0x40 /* Clear To Send modem state */ | 923 | #define MODEM_CTS 0x40 /* Clear To Send modem state */ |
930 | #define MODEM_RI 0x20 /* Ring Indicate modem state */ | 924 | #define MODEM_RI 0x20 /* Ring Indicate modem state */ |
931 | #define MODEM_CD 0x10 /* Carrier Detect modem state */ | 925 | #define MODEM_CD 0x10 /* Carrier Detect modem state */ |
932 | #define MODEM_TSTOP 0x08 /* Transmit Stopped state */ | 926 | #define MODEM_TSTOP 0x08 /* Transmit Stopped state */ |
933 | #define MODEM_TEMPTY 0x04 /* Transmit Empty state */ | 927 | #define MODEM_TEMPTY 0x04 /* Transmit Empty state */ |
934 | #define MODEM_DTR 0x02 /* DTR modem output state */ | 928 | #define MODEM_DTR 0x02 /* DTR modem output state */ |
935 | #define MODEM_RTS 0x01 /* RTS modem output state */ | 929 | #define MODEM_RTS 0x01 /* RTS modem output state */ |
936 | 930 | ||
937 | /* PortStatus definitions... */ | 931 | /* PortStatus definitions... */ |
938 | #define PORT_ISOPEN 0x01 /* Port open ? */ | 932 | #define PORT_ISOPEN 0x01 /* Port open ? */ |
939 | #define PORT_HUPCL 0x02 /* Hangup on close? */ | 933 | #define PORT_HUPCL 0x02 /* Hangup on close? */ |
940 | #define PORT_MOPENPEND 0x04 /* Modem open pending */ | 934 | #define PORT_MOPENPEND 0x04 /* Modem open pending */ |
941 | #define PORT_ISPARALLEL 0x08 /* Parallel port */ | 935 | #define PORT_ISPARALLEL 0x08 /* Parallel port */ |
942 | #define PORT_BREAK 0x10 /* Port on break */ | 936 | #define PORT_BREAK 0x10 /* Port on break */ |
943 | #define PORT_STATUSPEND 0020 /* Status packet pending */ | 937 | #define PORT_STATUSPEND 0020 /* Status packet pending */ |
944 | #define PORT_BREAKPEND 0x40 /* Break packet pending */ | 938 | #define PORT_BREAKPEND 0x40 /* Break packet pending */ |
945 | #define PORT_MODEMPEND 0x80 /* Modem status packet pending */ | 939 | #define PORT_MODEMPEND 0x80 /* Modem status packet pending */ |
946 | 940 | ||
947 | /***************************************************************************** | 941 | /***************************************************************************** |
948 | ************************ ************************** | 942 | ************************ ************************** |
@@ -956,35 +950,35 @@ typedef struct _PKT | |||
956 | packets, except MEMDUMP and READ_REGISTER. | 950 | packets, except MEMDUMP and READ_REGISTER. |
957 | */ | 951 | */ |
958 | #if 0 | 952 | #if 0 |
959 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 953 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
960 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 954 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
961 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 955 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
962 | #endif | 956 | #endif |
963 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ | 957 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ |
964 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ | 958 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ |
965 | #if 0 | 959 | #if 0 |
966 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 960 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
967 | #endif | 961 | #endif |
968 | 962 | ||
969 | /* ModemStatus definitions... */ | 963 | /* ModemStatus definitions... */ |
970 | #define MODEM_DSR 0x80 /* Data Set Ready modem state */ | 964 | #define MODEM_DSR 0x80 /* Data Set Ready modem state */ |
971 | #define MODEM_CTS 0x40 /* Clear To Send modem state */ | 965 | #define MODEM_CTS 0x40 /* Clear To Send modem state */ |
972 | #define MODEM_RI 0x20 /* Ring Indicate modem state */ | 966 | #define MODEM_RI 0x20 /* Ring Indicate modem state */ |
973 | #define MODEM_CD 0x10 /* Carrier Detect modem state */ | 967 | #define MODEM_CD 0x10 /* Carrier Detect modem state */ |
974 | #define MODEM_TSTOP 0x08 /* Transmit Stopped state */ | 968 | #define MODEM_TSTOP 0x08 /* Transmit Stopped state */ |
975 | #define MODEM_TEMPTY 0x04 /* Transmit Empty state */ | 969 | #define MODEM_TEMPTY 0x04 /* Transmit Empty state */ |
976 | #define MODEM_DTR 0x02 /* DTR modem output state */ | 970 | #define MODEM_DTR 0x02 /* DTR modem output state */ |
977 | #define MODEM_RTS 0x01 /* RTS modem output state */ | 971 | #define MODEM_RTS 0x01 /* RTS modem output state */ |
978 | 972 | ||
979 | /* PortStatus definitions... */ | 973 | /* PortStatus definitions... */ |
980 | #define PORT_ISOPEN 0x01 /* Port open ? */ | 974 | #define PORT_ISOPEN 0x01 /* Port open ? */ |
981 | #define PORT_HUPCL 0x02 /* Hangup on close? */ | 975 | #define PORT_HUPCL 0x02 /* Hangup on close? */ |
982 | #define PORT_MOPENPEND 0x04 /* Modem open pending */ | 976 | #define PORT_MOPENPEND 0x04 /* Modem open pending */ |
983 | #define PORT_ISPARALLEL 0x08 /* Parallel port */ | 977 | #define PORT_ISPARALLEL 0x08 /* Parallel port */ |
984 | #define PORT_BREAK 0x10 /* Port on break */ | 978 | #define PORT_BREAK 0x10 /* Port on break */ |
985 | #define PORT_STATUSPEND 0020 /* Status packet pending */ | 979 | #define PORT_STATUSPEND 0020 /* Status packet pending */ |
986 | #define PORT_BREAKPEND 0x40 /* Break packet pending */ | 980 | #define PORT_BREAKPEND 0x40 /* Break packet pending */ |
987 | #define PORT_MODEMPEND 0x80 /* Modem status packet pending */ | 981 | #define PORT_MODEMPEND 0x80 /* Modem status packet pending */ |
988 | 982 | ||
989 | /***************************************************************************** | 983 | /***************************************************************************** |
990 | ******************** ******************** | 984 | ******************** ******************** |
@@ -998,15 +992,15 @@ typedef struct _PKT | |||
998 | port I/O control command packet. | 992 | port I/O control command packet. |
999 | */ | 993 | */ |
1000 | #if 0 | 994 | #if 0 |
1001 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 995 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1002 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 996 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
1003 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 997 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
1004 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ | 998 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ |
1005 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ | 999 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ |
1006 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 1000 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
1007 | #define PKT_Address (PKT_Data+6) /* Requested address */ | 1001 | #define PKT_Address (PKT_Data+6) /* Requested address */ |
1008 | #endif | 1002 | #endif |
1009 | #define PKT_Dump (PKT_Data+8) /* 32bytes of requested dump data */ | 1003 | #define PKT_Dump (PKT_Data+8) /* 32bytes of requested dump data */ |
1010 | 1004 | ||
1011 | /***************************************************************************** | 1005 | /***************************************************************************** |
1012 | ***************** ***************** | 1006 | ***************** ***************** |
@@ -1020,14 +1014,14 @@ typedef struct _PKT | |||
1020 | READ_REGISTER port I/O control command packet. | 1014 | READ_REGISTER port I/O control command packet. |
1021 | */ | 1015 | */ |
1022 | #if 0 | 1016 | #if 0 |
1023 | #define PKT_Cmd (PKT_Data+0) /*Command code */ | 1017 | #define PKT_Cmd (PKT_Data+0) /*Command code */ |
1024 | #define PKT_PhbNum (PKT_Data+1) /*Port number wrt RTA */ | 1018 | #define PKT_PhbNum (PKT_Data+1) /*Port number wrt RTA */ |
1025 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 1019 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
1026 | #endif | 1020 | #endif |
1027 | #define PKT_RegisterValue (PKT_Data+3) /* Modem signal status */ | 1021 | #define PKT_RegisterValue (PKT_Data+3) /* Modem signal status */ |
1028 | #if 0 | 1022 | #if 0 |
1029 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ | 1023 | #define PKT_PortStatus (PKT_Data+4) /* Port signal status */ |
1030 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ | 1024 | #define PKT_SubCmd (PKT_Data+5) /* Sub Command */ |
1031 | #endif | 1025 | #endif |
1032 | 1026 | ||
1033 | /***************************************************************************** | 1027 | /***************************************************************************** |
@@ -1041,9 +1035,9 @@ typedef struct _PKT | |||
1041 | COMMAND_RUP - BREAK_RECEIVED packets are sent when the port detects a receive BREAK signal. | 1035 | COMMAND_RUP - BREAK_RECEIVED packets are sent when the port detects a receive BREAK signal. |
1042 | */ | 1036 | */ |
1043 | #if 0 | 1037 | #if 0 |
1044 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1038 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1045 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 1039 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
1046 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 1040 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
1047 | #endif | 1041 | #endif |
1048 | 1042 | ||
1049 | /***************************************************************************** | 1043 | /***************************************************************************** |
@@ -1059,10 +1053,10 @@ typedef struct _PKT | |||
1059 | 1053 | ||
1060 | */ | 1054 | */ |
1061 | #if 0 | 1055 | #if 0 |
1062 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1056 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1063 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ | 1057 | #define PKT_PhbNum (PKT_Data+1) /* Port number wrt RTA */ |
1064 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ | 1058 | #define PKT_Cmd2 (PKT_Data+2) /* Command code copy */ |
1065 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ | 1059 | #define PKT_ModemStatus (PKT_Data+3) /* Modem signal status */ |
1066 | #endif | 1060 | #endif |
1067 | 1061 | ||
1068 | /***************************************************************************** | 1062 | /***************************************************************************** |
@@ -1077,7 +1071,7 @@ typedef struct _PKT | |||
1077 | firmware code to load onto attached RTAs. | 1071 | firmware code to load onto attached RTAs. |
1078 | */ | 1072 | */ |
1079 | #if 0 | 1073 | #if 0 |
1080 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1074 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1081 | #endif | 1075 | #endif |
1082 | 1076 | ||
1083 | /***************************************************************************** | 1077 | /***************************************************************************** |
@@ -1092,12 +1086,12 @@ typedef struct _PKT | |||
1092 | to a BOOT_RUP - BOOT_REQUEST packet. | 1086 | to a BOOT_RUP - BOOT_REQUEST packet. |
1093 | */ | 1087 | */ |
1094 | #if 0 | 1088 | #if 0 |
1095 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1089 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1096 | #endif | 1090 | #endif |
1097 | #define PKT_NumPackets (PKT_Data+2) /* Packets required to load firmware */ | 1091 | #define PKT_NumPackets (PKT_Data+2) /* Packets required to load firmware */ |
1098 | #define PKT_LoadBase (PKT_Data+4) /* RTA firmware load address */ | 1092 | #define PKT_LoadBase (PKT_Data+4) /* RTA firmware load address */ |
1099 | #define PKT_CodeSize (PKT_Data+6) /* Size of firmware in bytes */ | 1093 | #define PKT_CodeSize (PKT_Data+6) /* Size of firmware in bytes */ |
1100 | #define PKT_CmdString (PKT_Data+8) /* Command string */ | 1094 | #define PKT_CmdString (PKT_Data+8) /* Command string */ |
1101 | 1095 | ||
1102 | /***************************************************************************** | 1096 | /***************************************************************************** |
1103 | ************************ *********************** | 1097 | ************************ *********************** |
@@ -1111,10 +1105,10 @@ typedef struct _PKT | |||
1111 | RTA firmware has completed. | 1105 | RTA firmware has completed. |
1112 | */ | 1106 | */ |
1113 | #if 0 | 1107 | #if 0 |
1114 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1108 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1115 | #endif | 1109 | #endif |
1116 | #define PKT_LinkNumber (PKT_Data+1) /* Link number RTA booted on */ | 1110 | #define PKT_LinkNumber (PKT_Data+1) /* Link number RTA booted on */ |
1117 | #define PKT_SerialNumber (PKT_Data+2) /* 4 byte serial number */ | 1111 | #define PKT_SerialNumber (PKT_Data+2) /* 4 byte serial number */ |
1118 | 1112 | ||
1119 | /***************************************************************************** | 1113 | /***************************************************************************** |
1120 | ************************ *********************** | 1114 | ************************ *********************** |
@@ -1127,7 +1121,7 @@ typedef struct _PKT | |||
1127 | BOOT_RUP packet without the PKT_CMD_BIT set in the PKT->len field is sent | 1121 | BOOT_RUP packet without the PKT_CMD_BIT set in the PKT->len field is sent |
1128 | from RIO to the Driver as a request for a firmware boot packet. */ | 1122 | from RIO to the Driver as a request for a firmware boot packet. */ |
1129 | 1123 | ||
1130 | #define PKT_SequenceNumber (PKT_Data+0) /* Packet sequence number */ | 1124 | #define PKT_SequenceNumber (PKT_Data+0) /* Packet sequence number */ |
1131 | 1125 | ||
1132 | /***************************************************************************** | 1126 | /***************************************************************************** |
1133 | *********************** *********************** | 1127 | *********************** *********************** |
@@ -1141,9 +1135,9 @@ typedef struct _PKT | |||
1141 | packet with the 70 bytes of the requested sequence. | 1135 | packet with the 70 bytes of the requested sequence. |
1142 | */ | 1136 | */ |
1143 | #if 0 | 1137 | #if 0 |
1144 | #define PKT_SequenceNumber (PKT_Data+0) /* Packet sequence number */ | 1138 | #define PKT_SequenceNumber (PKT_Data+0) /* Packet sequence number */ |
1145 | #endif | 1139 | #endif |
1146 | #define PKT_FirmwarePacket (PKT_Data+2) /* Firmware packet */ | 1140 | #define PKT_FirmwarePacket (PKT_Data+2) /* Firmware packet */ |
1147 | 1141 | ||
1148 | /***************************************************************************** | 1142 | /***************************************************************************** |
1149 | **************************** **************************** | 1143 | **************************** **************************** |
@@ -1157,10 +1151,10 @@ typedef struct _PKT | |||
1157 | RTA to shut down and reboot. | 1151 | RTA to shut down and reboot. |
1158 | */ | 1152 | */ |
1159 | #if 0 | 1153 | #if 0 |
1160 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1154 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1161 | #endif | 1155 | #endif |
1162 | #define PKT_IfoadId1 (PKT_Data+2) /* IFOAD Id 1 */ | 1156 | #define PKT_IfoadId1 (PKT_Data+2) /* IFOAD Id 1 */ |
1163 | #define PKT_IfoadId2 (PKT_Data+3) /* IFOAD Id 2 */ | 1157 | #define PKT_IfoadId2 (PKT_Data+3) /* IFOAD Id 2 */ |
1164 | 1158 | ||
1165 | #define IFOADID1 0xAD | 1159 | #define IFOADID1 0xAD |
1166 | #define IFOADID2 0xF0 | 1160 | #define IFOADID2 0xF0 |
@@ -1177,9 +1171,9 @@ typedef struct _PKT | |||
1177 | RTA to flash its LEDs for a period of time. | 1171 | RTA to flash its LEDs for a period of time. |
1178 | */ | 1172 | */ |
1179 | #if 0 | 1173 | #if 0 |
1180 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1174 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1181 | #endif | 1175 | #endif |
1182 | #define PKT_IdentifyId (PKT_Data+2) /* defines pattern to flash */ | 1176 | #define PKT_IdentifyId (PKT_Data+2) /* defines pattern to flash */ |
1183 | 1177 | ||
1184 | /***************************************************************************** | 1178 | /***************************************************************************** |
1185 | **************************** *************************** | 1179 | **************************** *************************** |
@@ -1193,10 +1187,10 @@ typedef struct _PKT | |||
1193 | RTA to shut down and flash it's LEDs. | 1187 | RTA to shut down and flash it's LEDs. |
1194 | */ | 1188 | */ |
1195 | #if 0 | 1189 | #if 0 |
1196 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1190 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1197 | #endif | 1191 | #endif |
1198 | #define PKT_ZombieId1 (PKT_Data+2) /* ZOMBIE Id 1 */ | 1192 | #define PKT_ZombieId1 (PKT_Data+2) /* ZOMBIE Id 1 */ |
1199 | #define PKT_ZombieId2 (PKT_Data+3) /* ZOMBIE Id 2 */ | 1193 | #define PKT_ZombieId2 (PKT_Data+3) /* ZOMBIE Id 2 */ |
1200 | 1194 | ||
1201 | #define ZOMBIEID1 0x52 | 1195 | #define ZOMBIEID1 0x52 |
1202 | #define ZOMBIEID2 0x21 | 1196 | #define ZOMBIEID2 0x21 |
@@ -1213,11 +1207,11 @@ typedef struct _PKT | |||
1213 | to ask it's neighbouring RTA to shut down and reboot. | 1207 | to ask it's neighbouring RTA to shut down and reboot. |
1214 | */ | 1208 | */ |
1215 | #if 0 | 1209 | #if 0 |
1216 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1210 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1217 | #define PKT_LinkNumber (PKT_Data+1) /* Link number of RTA to UFOAD */ | 1211 | #define PKT_LinkNumber (PKT_Data+1) /* Link number of RTA to UFOAD */ |
1218 | #endif | 1212 | #endif |
1219 | #define PKT_UfoadId1 (PKT_Data+2) /* UFOAD Id 1 */ | 1213 | #define PKT_UfoadId1 (PKT_Data+2) /* UFOAD Id 1 */ |
1220 | #define PKT_UfoadId2 (PKT_Data+3) /* UFOAD Id 2 */ | 1214 | #define PKT_UfoadId2 (PKT_Data+3) /* UFOAD Id 2 */ |
1221 | 1215 | ||
1222 | #define UFOADID1 0x1E | 1216 | #define UFOADID1 0x1E |
1223 | #define UFOADID2 0x0D | 1217 | #define UFOADID2 0x0D |
@@ -1234,11 +1228,11 @@ typedef struct _PKT | |||
1234 | to pause booting on the specified link for 30 seconds. | 1228 | to pause booting on the specified link for 30 seconds. |
1235 | */ | 1229 | */ |
1236 | #if 0 | 1230 | #if 0 |
1237 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1231 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1238 | #define PKT_LinkNumber (PKT_Data+1) /* Link number of RTA to UFOAD */ | 1232 | #define PKT_LinkNumber (PKT_Data+1) /* Link number of RTA to UFOAD */ |
1239 | #endif | 1233 | #endif |
1240 | #define PKT_IwaitId1 (PKT_Data+2) /* IWAIT Id 1 */ | 1234 | #define PKT_IwaitId1 (PKT_Data+2) /* IWAIT Id 1 */ |
1241 | #define PKT_IwaitId2 (PKT_Data+3) /* IWAIT Id 2 */ | 1235 | #define PKT_IwaitId2 (PKT_Data+3) /* IWAIT Id 2 */ |
1242 | 1236 | ||
1243 | #define IWAITID1 0xDE | 1237 | #define IWAITID1 0xDE |
1244 | #define IWAITID2 0xB1 | 1238 | #define IWAITID2 0xB1 |
@@ -1255,20 +1249,20 @@ typedef struct _PKT | |||
1255 | RTA to a Driver to request an ID (RUP or unit number). | 1249 | RTA to a Driver to request an ID (RUP or unit number). |
1256 | */ | 1250 | */ |
1257 | #if 0 | 1251 | #if 0 |
1258 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1252 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1259 | #endif | 1253 | #endif |
1260 | #define PKT_SerialNumber (PKT_Data+2) /* 4 byte serial number */ | 1254 | #define PKT_SerialNumber (PKT_Data+2) /* 4 byte serial number */ |
1261 | #define PKT_ModuleTypes (PKT_Data+6) /* RTA Module types */ | 1255 | #define PKT_ModuleTypes (PKT_Data+6) /* RTA Module types */ |
1262 | 1256 | ||
1263 | /* ModuleTypes definitions... */ | 1257 | /* ModuleTypes definitions... */ |
1264 | #define MOD_BLANK 0x0F /* Blank plate attached */ | 1258 | #define MOD_BLANK 0x0F /* Blank plate attached */ |
1265 | #define MOD_RS232DB25 0x00 /* RS232 DB25 connector */ | 1259 | #define MOD_RS232DB25 0x00 /* RS232 DB25 connector */ |
1266 | #define MOD_RS232RJ45 0x01 /* RS232 RJ45 connector */ | 1260 | #define MOD_RS232RJ45 0x01 /* RS232 RJ45 connector */ |
1267 | #define MOD_RS422DB25 0x02 /* RS422 DB25 connector */ | 1261 | #define MOD_RS422DB25 0x02 /* RS422 DB25 connector */ |
1268 | #define MOD_RS485DB25 0x03 /* RS485 DB25 connector */ | 1262 | #define MOD_RS485DB25 0x03 /* RS485 DB25 connector */ |
1269 | #define MOD_PARALLEL 0x04 /* Centronics parallel */ | 1263 | #define MOD_PARALLEL 0x04 /* Centronics parallel */ |
1270 | 1264 | ||
1271 | #define MOD2 0x08 /* Set to indicate Rev2 module */ | 1265 | #define MOD2 0x08 /* Set to indicate Rev2 module */ |
1272 | 1266 | ||
1273 | /***************************************************************************** | 1267 | /***************************************************************************** |
1274 | ************************* ************************* | 1268 | ************************* ************************* |
@@ -1282,9 +1276,9 @@ typedef struct _PKT | |||
1282 | packet to cause the RTA to "Fall Over And Die"., i.e. shutdown and reboot. | 1276 | packet to cause the RTA to "Fall Over And Die"., i.e. shutdown and reboot. |
1283 | */ | 1277 | */ |
1284 | #if 0 | 1278 | #if 0 |
1285 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1279 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1286 | #endif | 1280 | #endif |
1287 | #define PKT_RouteCmdString (PKT_Data+2) /* Command string */ | 1281 | #define PKT_RouteCmdString (PKT_Data+2) /* Command string */ |
1288 | 1282 | ||
1289 | /***************************************************************************** | 1283 | /***************************************************************************** |
1290 | *********************** *********************** | 1284 | *********************** *********************** |
@@ -1298,13 +1292,13 @@ typedef struct _PKT | |||
1298 | packet to allocate the RTA's Id number (RUP number 1..16) | 1292 | packet to allocate the RTA's Id number (RUP number 1..16) |
1299 | */ | 1293 | */ |
1300 | #if 0 | 1294 | #if 0 |
1301 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1295 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1302 | #endif | 1296 | #endif |
1303 | #define PKT_IdNum (PKT_Data+1) /* RUP number for ports 1..8 */ | 1297 | #define PKT_IdNum (PKT_Data+1) /* RUP number for ports 1..8 */ |
1304 | #if 0 | 1298 | #if 0 |
1305 | #define PKT_RouteCmdString (PKT_Data+2) /* Command string */ | 1299 | #define PKT_RouteCmdString (PKT_Data+2) /* Command string */ |
1306 | #endif | 1300 | #endif |
1307 | #define PKT_IdNum2 (PKT_Data+0x17) /* RUP number for ports 9..16 */ | 1301 | #define PKT_IdNum2 (PKT_Data+0x17) /* RUP number for ports 9..16 */ |
1308 | 1302 | ||
1309 | /***************************************************************************** | 1303 | /***************************************************************************** |
1310 | *********************** *********************** | 1304 | *********************** *********************** |
@@ -1318,18 +1312,18 @@ typedef struct _PKT | |||
1318 | current link status. | 1312 | current link status. |
1319 | */ | 1313 | */ |
1320 | #if 0 | 1314 | #if 0 |
1321 | #define PKT_Cmd (PKT_Data+0) /* Command code */ | 1315 | #define PKT_Cmd (PKT_Data+0) /* Command code */ |
1322 | #endif | 1316 | #endif |
1323 | #define PKT_Link1Rup (PKT_Data+2) /* Link 1 RUP number */ | 1317 | #define PKT_Link1Rup (PKT_Data+2) /* Link 1 RUP number */ |
1324 | #define PKT_Link1Link (PKT_Data+3) /* Link 1 link number */ | 1318 | #define PKT_Link1Link (PKT_Data+3) /* Link 1 link number */ |
1325 | #define PKT_Link2Rup (PKT_Data+4) /* Link 2 RUP number */ | 1319 | #define PKT_Link2Rup (PKT_Data+4) /* Link 2 RUP number */ |
1326 | #define PKT_Link2Link (PKT_Data+5) /* Link 2 link number */ | 1320 | #define PKT_Link2Link (PKT_Data+5) /* Link 2 link number */ |
1327 | #define PKT_Link3Rup (PKT_Data+6) /* Link 3 RUP number */ | 1321 | #define PKT_Link3Rup (PKT_Data+6) /* Link 3 RUP number */ |
1328 | #define PKT_Link3Link (PKT_Data+7) /* Link 3 link number */ | 1322 | #define PKT_Link3Link (PKT_Data+7) /* Link 3 link number */ |
1329 | #define PKT_Link4Rup (PKT_Data+8) /* Link 4 RUP number */ | 1323 | #define PKT_Link4Rup (PKT_Data+8) /* Link 4 RUP number */ |
1330 | #define PKT_Link4Link (PKT_Data+9) /* Link 4 link number */ | 1324 | #define PKT_Link4Link (PKT_Data+9) /* Link 4 link number */ |
1331 | #define PKT_RtaVpdProm (PKT_Data+10) /* 32 bytes of RTA VPD PROM Contents */ | 1325 | #define PKT_RtaVpdProm (PKT_Data+10) /* 32 bytes of RTA VPD PROM Contents */ |
1332 | 1326 | ||
1333 | #endif /* _sxwinif_h */ | 1327 | #endif /* _sxwinif_h */ |
1334 | 1328 | ||
1335 | /* End of RIOWINIF.H */ | 1329 | /* End of RIOWINIF.H */ |