4 * CD Bootstrap header parsing. Mostly for informational purposes.
6 * Copyright (c) 2005 Nathan Keynes.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 * IP.BIN related code. Ref: http://mc.pp.se/dc/ip0000.bin.html
22 #ifndef lxdream_bootstrap_H
23 #define lxdream_bootstrap_H 1
31 #define BOOTSTRAP_LOAD_ADDR 0x8C008000
32 #define BOOTSTRAP_SIZE 32768
33 #define BOOTSTRAP_MAGIC "SEGA SEGAKATANA SEGA ENTERPRISES"
34 #define BOOTSTRAP_MAGIC_SIZE 32
36 #define BINARY_LOAD_ADDR 0x8C010000
39 * Bootstrap header structure
41 typedef struct dc_bootstrap_head {
44 char padding; /* normally ascii space */
51 char product_date[16];
54 char product_name[128];
55 } *dc_bootstrap_head_t;
58 * Dump the bootstrap info to the output log for infomational/debugging
61 void bootstrap_dump(void *data, gboolean detail);
63 void bootprogram_scramble( unsigned char *dest, unsigned char *src, size_t length );
64 void bootprogram_unscramble( unsigned char *dest, unsigned char *src, size_t length );
69 #endif /* !lxdream_bootstrap_H */
.