formpkt.h 3.4 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


/****************************************************************************
 *******                                                              *******
 *******         F O R M   P A C K E T   H E A D E R   F I L E
 *******                                                              *******
 ****************************************************************************

 Author  : Ian Nandhra
 Date    :

 *
 *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

 Version : 0.01


                            Mods
 ----------------------------------------------------------------------------
  Date     By                Description
 ----------------------------------------------------------------------------

 ***************************************************************************/

#ifndef _formpkt_h
#define _formpkt_h 1

#ifndef lint
#ifdef SCCS
A
Andrew Morton 已提交
44
static char *_rio_formpkt_h_sccs = "@(#)formpkt.h	1.1";
L
Linus Torvalds 已提交
45 46 47
#endif
#endif

A
Andrew Morton 已提交
48
typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1;
L
Linus Torvalds 已提交
49
struct FORM_BOOT_PKT_1 {
A
Andrew Morton 已提交
50 51 52 53
	ushort pkt_number;
	ushort pkt_total;
	ushort boot_top;
};
L
Linus Torvalds 已提交
54

A
Andrew Morton 已提交
55
typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2;
L
Linus Torvalds 已提交
56
struct FORM_BOOT_PKT_2 {
A
Andrew Morton 已提交
57 58 59
	ushort pkt_number;
	char boot_data[10];
};
L
Linus Torvalds 已提交
60 61


A
Andrew Morton 已提交
62 63 64 65 66 67 68 69
typedef struct FORM_ATTACH_RTA FORM_ATTACH_RTA;
struct FORM_ATTACH_RTA {
	char cmd_code;
	char booter_serial[4];
	char booter_link;
	char bootee_serial[4];
	char bootee_link;
};
L
Linus Torvalds 已提交
70 71


A
Andrew Morton 已提交
72 73 74 75 76 77 78
typedef struct FORM_BOOT_ID FORM_BOOT_ID;
struct FORM_BOOT_ID {
	char cmd_code;
	char bootee_serial[4];
	char bootee_prod_id;
	char bootee_link;
};
L
Linus Torvalds 已提交
79 80 81



A
Andrew Morton 已提交
82
typedef struct FORM_ROUTE_1 FORM_ROUTE_1;
L
Linus Torvalds 已提交
83
struct FORM_ROUTE_1 {
A
Andrew Morton 已提交
84 85 86 87 88 89 90 91
	char cmd_code;
	char pkt_number;
	char total_in_sequence;
	char unit_id;
	char host_unit_id;
};

typedef struct FORM_ROUTE_2 FORM_ROUTE_2;
L
Linus Torvalds 已提交
92
struct FORM_ROUTE_2 {
A
Andrew Morton 已提交
93 94 95 96 97
	char cmd_code;
	char pkt_number;
	char total_in_sequence;
	char route_data[9];
};
L
Linus Torvalds 已提交
98

A
Andrew Morton 已提交
99
typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ;
L
Linus Torvalds 已提交
100
struct FORM_ROUTE_REQ {
A
Andrew Morton 已提交
101 102 103 104 105
	char cmd_code;
	char pkt_number;
	char total_in_sequence;
	char route_data[10];
};
L
Linus Torvalds 已提交
106 107


A
Andrew Morton 已提交
108
typedef struct FORM_ERROR FORM_ERROR;
L
Linus Torvalds 已提交
109
struct FORM_ERROR {
A
Andrew Morton 已提交
110 111
	char cmd_code;
	char error_code;
L
Linus Torvalds 已提交
112

A
Andrew Morton 已提交
113
};
L
Linus Torvalds 已提交
114

A
Andrew Morton 已提交
115
typedef struct FORM_STATUS FORM_STATUS;
L
Linus Torvalds 已提交
116
struct FORM_STATUS {
A
Andrew Morton 已提交
117 118 119 120 121 122 123 124
	char cmd_code;
	char status_code;
	char last_packet_valid;
	char tx_buffer;
	char rx_buffer;
	char port_status;
	char phb_status;
};
L
Linus Torvalds 已提交
125 126


A
Andrew Morton 已提交
127
typedef struct FORM_LINK_STATUS FORM_LINK_STATUS;
L
Linus Torvalds 已提交
128
struct FORM_LINK_STATUS {
A
Andrew Morton 已提交
129 130 131 132 133 134 135 136
	char cmd_code;
	char status_code;
	char link_number;
	ushort rx_errors;
	ushort tx_errors;
	ushort csum_errors;
	ushort disconnects;
};
L
Linus Torvalds 已提交
137 138 139



A
Andrew Morton 已提交
140
typedef struct FORM_PARTITION FORM_PARTITION;
L
Linus Torvalds 已提交
141
struct FORM_PARTITION {
A
Andrew Morton 已提交
142 143 144 145 146 147 148
	char cmd_code;
	char status_code;
	char port_number;
	char tx_max;
	char rx_max;
	char rx_limit;
};
L
Linus Torvalds 已提交
149 150 151 152 153


#endif

/*********** end of file ***********/