aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/rio/formpkt.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/char/rio/formpkt.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/char/rio/formpkt.h')
-rw-r--r--drivers/char/rio/formpkt.h154
1 files changed, 154 insertions, 0 deletions
diff --git a/drivers/char/rio/formpkt.h b/drivers/char/rio/formpkt.h
new file mode 100644
index 000000000000..a8b65ae0de90
--- /dev/null
+++ b/drivers/char/rio/formpkt.h
@@ -0,0 +1,154 @@
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
44static char *_rio_formpkt_h_sccs = "@(#)formpkt.h 1.1" ;
45#endif
46#endif
47
48typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1 ;
49struct FORM_BOOT_PKT_1 {
50 ushort pkt_number ;
51 ushort pkt_total ;
52 ushort boot_top ;
53 } ;
54
55typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2 ;
56struct FORM_BOOT_PKT_2 {
57 ushort pkt_number ;
58 char boot_data[10] ;
59 } ;
60
61
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 } ;
70
71
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 } ;
79
80
81
82typedef struct FORM_ROUTE_1 FORM_ROUTE_1 ;
83struct FORM_ROUTE_1 {
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 ;
92struct FORM_ROUTE_2 {
93 char cmd_code ;
94 char pkt_number ;
95 char total_in_sequence ;
96 char route_data[9] ;
97 } ;
98
99typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ ;
100struct FORM_ROUTE_REQ {
101 char cmd_code ;
102 char pkt_number ;
103 char total_in_sequence ;
104 char route_data[10] ;
105 } ;
106
107
108typedef struct FORM_ERROR FORM_ERROR ;
109struct FORM_ERROR {
110 char cmd_code ;
111 char error_code ;
112
113 } ;
114
115typedef struct FORM_STATUS FORM_STATUS ;
116struct FORM_STATUS {
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 } ;
125
126
127typedef struct FORM_LINK_STATUS FORM_LINK_STATUS ;
128struct FORM_LINK_STATUS {
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 } ;
137
138
139
140typedef struct FORM_PARTITION FORM_PARTITION ;
141struct FORM_PARTITION {
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 } ;
149
150
151#endif
152
153/*********** end of file ***********/
154