[PATCH] Remove enable.h from rio (unused file)
[linux-block.git] / drivers / char / rio / formpkt.h
CommitLineData
1da177e4
LT
1
2
3/****************************************************************************
4 ******* *******
5 ******* F O R M P A C K E T H E A D E R F I L E
6 ******* *******
7 ****************************************************************************
8
9 Author : Ian Nandhra
10 Date :
11
12 *
13 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
29 Version : 0.01
30
31
32 Mods
33 ----------------------------------------------------------------------------
34 Date By Description
35 ----------------------------------------------------------------------------
36
37 ***************************************************************************/
38
39#ifndef _formpkt_h
40#define _formpkt_h 1
41
42#ifndef lint
43#ifdef SCCS
8d8706e2 44static char *_rio_formpkt_h_sccs = "@(#)formpkt.h 1.1";
1da177e4
LT
45#endif
46#endif
47
8d8706e2 48typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1;
1da177e4 49struct FORM_BOOT_PKT_1 {
8d8706e2
AM
50 ushort pkt_number;
51 ushort pkt_total;
52 ushort boot_top;
53};
1da177e4 54
8d8706e2 55typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2;
1da177e4 56struct FORM_BOOT_PKT_2 {
8d8706e2
AM
57 ushort pkt_number;
58 char boot_data[10];
59};
1da177e4
LT
60
61
8d8706e2
AM
62typedef struct FORM_ATTACH_RTA FORM_ATTACH_RTA;
63struct FORM_ATTACH_RTA {
64 char cmd_code;
65 char booter_serial[4];
66 char booter_link;
67 char bootee_serial[4];
68 char bootee_link;
69};
1da177e4
LT
70
71
8d8706e2
AM
72typedef struct FORM_BOOT_ID FORM_BOOT_ID;
73struct FORM_BOOT_ID {
74 char cmd_code;
75 char bootee_serial[4];
76 char bootee_prod_id;
77 char bootee_link;
78};
1da177e4
LT
79
80
81
8d8706e2 82typedef struct FORM_ROUTE_1 FORM_ROUTE_1;
1da177e4 83struct FORM_ROUTE_1 {
8d8706e2
AM
84 char cmd_code;
85 char pkt_number;
86 char total_in_sequence;
87 char unit_id;
88 char host_unit_id;
89};
90
91typedef struct FORM_ROUTE_2 FORM_ROUTE_2;
1da177e4 92struct FORM_ROUTE_2 {
8d8706e2
AM
93 char cmd_code;
94 char pkt_number;
95 char total_in_sequence;
96 char route_data[9];
97};
1da177e4 98
8d8706e2 99typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ;
1da177e4 100struct FORM_ROUTE_REQ {
8d8706e2
AM
101 char cmd_code;
102 char pkt_number;
103 char total_in_sequence;
104 char route_data[10];
105};
1da177e4
LT
106
107
8d8706e2 108typedef struct FORM_ERROR FORM_ERROR;
1da177e4 109struct FORM_ERROR {
8d8706e2
AM
110 char cmd_code;
111 char error_code;
1da177e4 112
8d8706e2 113};
1da177e4 114
8d8706e2 115typedef struct FORM_STATUS FORM_STATUS;
1da177e4 116struct FORM_STATUS {
8d8706e2
AM
117 char cmd_code;
118 char status_code;
119 char last_packet_valid;
120 char tx_buffer;
121 char rx_buffer;
122 char port_status;
123 char phb_status;
124};
1da177e4
LT
125
126
8d8706e2 127typedef struct FORM_LINK_STATUS FORM_LINK_STATUS;
1da177e4 128struct FORM_LINK_STATUS {
8d8706e2
AM
129 char cmd_code;
130 char status_code;
131 char link_number;
132 ushort rx_errors;
133 ushort tx_errors;
134 ushort csum_errors;
135 ushort disconnects;
136};
1da177e4
LT
137
138
139
8d8706e2 140typedef struct FORM_PARTITION FORM_PARTITION;
1da177e4 141struct FORM_PARTITION {
8d8706e2
AM
142 char cmd_code;
143 char status_code;
144 char port_number;
145 char tx_max;
146 char rx_max;
147 char rx_limit;
148};
1da177e4
LT
149
150
151#endif
152
153/*********** end of file ***********/