Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / powerpc / stand / mkbootimage / bebox_bootrec.h
blob89ff2f2423b09078c5aa783821a19dc669baf08d
1 /* $NetBSD: bebox_bootrec.h,v 1.1 2007/12/20 22:59:59 garbled Exp $ */
3 #define BEBOX_HEADER_SIZE 0x6400
4 #define BEBOX_BLOCK_SIZE 0x200
5 #define BEBOX_FILE_BLOCK_SIZE 0x100
6 #define BEBOX_FILE_SIZE_OFFSET 0x00004494
7 #define BEBOX_FILE_SIZE_ALIGN_OFFSET 0x00004498
8 #define BEBOX_FILE_BLOCK_MAP_START 0x00000200
9 #define BEBOX_FILE_BLOCK_MAP_END 0x00000368
11 u_char bebox_image_data0[] = {
12 0x00, 0x03, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, /* mtime */
13 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
14 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0b, 0x40, /* avail size */
15 0x00, 0x00, 0x02, 0x00, 0xff, 0xff, 0xff, 0xff,
16 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x0b, 0x40, /* used block */
17 0x01, 0x00, 0x00, 0x00, 0x66, 0x64, 0x00, 0x00,
18 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
22 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x41, 0xc0,
23 0xbe, 0x00, 0xbe, 0x01, 0xbe, 0x02, 0xbe, 0x03,
24 0xbe, 0x04, 0xbe, 0x05, 0xbe, 0x06, 0xbe, 0x07,
25 0xbe, 0x08, 0xbe, 0x09, 0xbe, 0x0a, 0xbe, 0x0b,
26 0xbe, 0x0c, 0xbe, 0x0d, 0xbe, 0x0e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be, 0xba, 0xbe, 0xbb,
70 0xbe, 0xbc, 0xbe, 0xbd, 0xbe, 0xbe, 0xbe, 0xbf,
71 0xbe, 0xc0, 0xbe, 0xc1, 0xbe, 0xc2, 0xbe, 0xc3,
72 0xbe, 0xc4, 0xbe, 0xc5, 0xbe, 0xc6, 0xbe, 0xc7,
73 0xbe, 0xc8, 0xbe, 0xc9, 0xbe, 0xca, 0xbe, 0xcb,
74 0xbe, 0xcc, 0xbe, 0xcd, 0xbe, 0xce, 0xbe, 0xcf,
75 0xbe, 0xd0, 0xbe, 0xd1, 0xbe, 0xd2, 0xbe, 0xd3,
78 u_char bebox_image_data1[] = {
79 0x54, 0x72, 0x61, 0x73, 0x68, 0x00, 0x00, 0x00,
82 u_char bebox_image_data2[] = {
83 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00,
84 0xff, 0xff, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef, /* mtime */
85 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* mtime */
86 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x41, 0xff,
90 u_char bebox_image_data3[] = {
91 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x00, 0x00,
94 u_char bebox_image_data4[] = {
95 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00,
96 0xff, 0xff, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef, /* mtime */
97 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* mtime */
98 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
99 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x41, 0xff,
102 u_char bebox_image_data5[] = {
103 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
106 u_char bebox_image_data6[] = {
107 0x00, 0x72, 0x61, 0x73, 0x68, 0x00, 0x00, 0x00,
110 u_char bebox_image_data7[] = {
111 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0xff,
114 u_char bebox_image_data8[] = {
115 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
118 u_char bebox_image_data9[] = {
119 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x00, 0x00,
122 u_char bebox_image_data10[] = {
123 0x80, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x65,
124 0x00, 0x00, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, /* mtime */
125 0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0xbe, 0xef, /* mtime/filesize */
126 0xde, 0xea, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* filesize(aligned) */
127 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x81, 0xb6,
130 u_char bebox_image_data11[] = {
131 0x00, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x00, 0x00,
134 u_char bebox_image_data12[] = {
135 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0xff,
138 struct bebox_image_block {
139 long offset;
140 u_char *data;
141 int size;
144 #define BEBOX_IMG(x) __CONCAT(bebox_image_data,x)
145 #define BEBOX_IMG_DATA_SIZE(x) BEBOX_IMG(x), \
146 (sizeof (BEBOX_IMG(x)) / sizeof (BEBOX_IMG(x)[0]))
148 struct bebox_image_block bebox_image_block[] = {
149 { 0x00000000, BEBOX_IMG_DATA_SIZE(0) },
150 { 0x00000440, BEBOX_IMG_DATA_SIZE(1) },
151 { 0x00000480, BEBOX_IMG_DATA_SIZE(2) },
152 { 0x000004c0, BEBOX_IMG_DATA_SIZE(3) },
153 { 0x00000500, BEBOX_IMG_DATA_SIZE(4) },
154 { 0x00002400, BEBOX_IMG_DATA_SIZE(5) },
155 { 0x00002440, BEBOX_IMG_DATA_SIZE(6) },
156 { 0x000024a0, BEBOX_IMG_DATA_SIZE(7) },
157 { 0x00004400, BEBOX_IMG_DATA_SIZE(8) },
158 { 0x00004440, BEBOX_IMG_DATA_SIZE(9) },
159 { 0x00004480, BEBOX_IMG_DATA_SIZE(10) },
160 { 0x000044c0, BEBOX_IMG_DATA_SIZE(11) },
161 { 0x00004520, BEBOX_IMG_DATA_SIZE(12) },
162 { -1 }
165 long bebox_mtime_offset[] = {
166 0x00000004,
167 0x0000048c,
168 0x00000490,
169 0x0000050c,
170 0x00000510,
171 0x0000448c,
172 0x00004490,