bebox_bootrec.h revision 1.1.6.2 1 1.1.6.2 matt /* $NetBSD: bebox_bootrec.h,v 1.1.6.2 2008/01/09 01:47:58 matt Exp $ */
2 1.1.6.2 matt
3 1.1.6.2 matt #define BEBOX_HEADER_SIZE 0x6400
4 1.1.6.2 matt #define BEBOX_BLOCK_SIZE 0x100
5 1.1.6.2 matt #define BEBOX_FILE_SIZE_OFFSET 0x00004494
6 1.1.6.2 matt #define BEBOX_FILE_SIZE_ALIGN_OFFSET 0x00004498
7 1.1.6.2 matt #define BEBOX_FILE_BLOCK_MAP_START 0x00000200
8 1.1.6.2 matt #define BEBOX_FILE_BLOCK_MAP_END 0x00000368
9 1.1.6.2 matt
10 1.1.6.2 matt u_char bebox_image_data0[] = {
11 1.1.6.2 matt 0x00, 0x03, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, /* mtime */
12 1.1.6.2 matt 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
13 1.1.6.2 matt 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0b, 0x40, /* avail size */
14 1.1.6.2 matt 0x00, 0x00, 0x02, 0x00, 0xff, 0xff, 0xff, 0xff,
15 1.1.6.2 matt 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x0b, 0x40, /* used block */
16 1.1.6.2 matt 0x01, 0x00, 0x00, 0x00, 0x66, 0x64, 0x00, 0x00,
17 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
21 1.1.6.2 matt 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x41, 0xc0,
22 1.1.6.2 matt 0xbe, 0x00, 0xbe, 0x01, 0xb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d2, 0xbe, 0xd3,
75 1.1.6.2 matt };
76 1.1.6.2 matt
77 1.1.6.2 matt u_char bebox_image_data1[] = {
78 1.1.6.2 matt 0x54, 0x72, 0x61, 0x73, 0x68, 0x00, 0x00, 0x00,
79 1.1.6.2 matt };
80 1.1.6.2 matt
81 1.1.6.2 matt u_char bebox_image_data2[] = {
82 1.1.6.2 matt 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00,
83 1.1.6.2 matt 0xff, 0xff, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef, /* mtime */
84 1.1.6.2 matt 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* mtime */
85 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
86 1.1.6.2 matt 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x41, 0xff,
87 1.1.6.2 matt };
88 1.1.6.2 matt
89 1.1.6.2 matt u_char bebox_image_data3[] = {
90 1.1.6.2 matt 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x00, 0x00,
91 1.1.6.2 matt };
92 1.1.6.2 matt
93 1.1.6.2 matt u_char bebox_image_data4[] = {
94 1.1.6.2 matt 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00,
95 1.1.6.2 matt 0xff, 0xff, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef, /* mtime */
96 1.1.6.2 matt 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* mtime */
97 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
98 1.1.6.2 matt 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x41, 0xff,
99 1.1.6.2 matt };
100 1.1.6.2 matt
101 1.1.6.2 matt u_char bebox_image_data5[] = {
102 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
103 1.1.6.2 matt };
104 1.1.6.2 matt
105 1.1.6.2 matt u_char bebox_image_data6[] = {
106 1.1.6.2 matt 0x00, 0x72, 0x61, 0x73, 0x68, 0x00, 0x00, 0x00,
107 1.1.6.2 matt };
108 1.1.6.2 matt
109 1.1.6.2 matt u_char bebox_image_data7[] = {
110 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0xff,
111 1.1.6.2 matt };
112 1.1.6.2 matt
113 1.1.6.2 matt u_char bebox_image_data8[] = {
114 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
115 1.1.6.2 matt };
116 1.1.6.2 matt
117 1.1.6.2 matt u_char bebox_image_data9[] = {
118 1.1.6.2 matt 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x00, 0x00,
119 1.1.6.2 matt };
120 1.1.6.2 matt
121 1.1.6.2 matt u_char bebox_image_data10[] = {
122 1.1.6.2 matt 0x80, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x65,
123 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, /* mtime */
124 1.1.6.2 matt 0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0xbe, 0xef, /* mtime/filesize */
125 1.1.6.2 matt 0xde, 0xea, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00, /* filesize(aligned) */
126 1.1.6.2 matt 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x81, 0xb6,
127 1.1.6.2 matt };
128 1.1.6.2 matt
129 1.1.6.2 matt u_char bebox_image_data11[] = {
130 1.1.6.2 matt 0x00, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x00, 0x00,
131 1.1.6.2 matt };
132 1.1.6.2 matt
133 1.1.6.2 matt u_char bebox_image_data12[] = {
134 1.1.6.2 matt 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0xff,
135 1.1.6.2 matt };
136 1.1.6.2 matt
137 1.1.6.2 matt struct bebox_image_block {
138 1.1.6.2 matt long offset;
139 1.1.6.2 matt u_char *data;
140 1.1.6.2 matt int size;
141 1.1.6.2 matt };
142 1.1.6.2 matt
143 1.1.6.2 matt #define BEBOX_IMG(x) __CONCAT(bebox_image_data,x)
144 1.1.6.2 matt #define BEBOX_IMG_DATA_SIZE(x) BEBOX_IMG(x), \
145 1.1.6.2 matt (sizeof (BEBOX_IMG(x)) / sizeof (BEBOX_IMG(x)[0]))
146 1.1.6.2 matt
147 1.1.6.2 matt struct bebox_image_block bebox_image_block[] = {
148 1.1.6.2 matt { 0x00000000, BEBOX_IMG_DATA_SIZE(0) },
149 1.1.6.2 matt { 0x00000440, BEBOX_IMG_DATA_SIZE(1) },
150 1.1.6.2 matt { 0x00000480, BEBOX_IMG_DATA_SIZE(2) },
151 1.1.6.2 matt { 0x000004c0, BEBOX_IMG_DATA_SIZE(3) },
152 1.1.6.2 matt { 0x00000500, BEBOX_IMG_DATA_SIZE(4) },
153 1.1.6.2 matt { 0x00002400, BEBOX_IMG_DATA_SIZE(5) },
154 1.1.6.2 matt { 0x00002440, BEBOX_IMG_DATA_SIZE(6) },
155 1.1.6.2 matt { 0x000024a0, BEBOX_IMG_DATA_SIZE(7) },
156 1.1.6.2 matt { 0x00004400, BEBOX_IMG_DATA_SIZE(8) },
157 1.1.6.2 matt { 0x00004440, BEBOX_IMG_DATA_SIZE(9) },
158 1.1.6.2 matt { 0x00004480, BEBOX_IMG_DATA_SIZE(10) },
159 1.1.6.2 matt { 0x000044c0, BEBOX_IMG_DATA_SIZE(11) },
160 1.1.6.2 matt { 0x00004520, BEBOX_IMG_DATA_SIZE(12) },
161 1.1.6.2 matt { -1 }
162 1.1.6.2 matt };
163 1.1.6.2 matt
164 1.1.6.2 matt long bebox_mtime_offset[] = {
165 1.1.6.2 matt 0x00000004,
166 1.1.6.2 matt 0x0000048c,
167 1.1.6.2 matt 0x00000490,
168 1.1.6.2 matt 0x0000050c,
169 1.1.6.2 matt 0x00000510,
170 1.1.6.2 matt 0x0000448c,
171 1.1.6.2 matt 0x00004490,
172 1.1.6.2 matt -1
173 1.1.6.2 matt };
174