]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/char/rio/formpkt.h
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / drivers / char / rio / formpkt.h
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
44 static char *_rio_formpkt_h_sccs = "@(#)formpkt.h 1.1" ;
45 #endif
46 #endif
47
48 typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1 ;
49 struct FORM_BOOT_PKT_1 {
50 ushort pkt_number ;
51 ushort pkt_total ;
52 ushort boot_top ;
53 } ;
54
55 typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2 ;
56 struct FORM_BOOT_PKT_2 {
57 ushort pkt_number ;
58 char boot_data[10] ;
59 } ;
60
61
62 typedef struct FORM_ATTACH_RTA FORM_ATTACH_RTA ;
63 struct 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
72 typedef struct FORM_BOOT_ID FORM_BOOT_ID ;
73 struct 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
82 typedef struct FORM_ROUTE_1 FORM_ROUTE_1 ;
83 struct 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
91 typedef struct FORM_ROUTE_2 FORM_ROUTE_2 ;
92 struct FORM_ROUTE_2 {
93 char cmd_code ;
94 char pkt_number ;
95 char total_in_sequence ;
96 char route_data[9] ;
97 } ;
98
99 typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ ;
100 struct FORM_ROUTE_REQ {
101 char cmd_code ;
102 char pkt_number ;
103 char total_in_sequence ;
104 char route_data[10] ;
105 } ;
106
107
108 typedef struct FORM_ERROR FORM_ERROR ;
109 struct FORM_ERROR {
110 char cmd_code ;
111 char error_code ;
112
113 } ;
114
115 typedef struct FORM_STATUS FORM_STATUS ;
116 struct 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
127 typedef struct FORM_LINK_STATUS FORM_LINK_STATUS ;
128 struct 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
140 typedef struct FORM_PARTITION FORM_PARTITION ;
141 struct 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