filename | src/bootstrap.h |
changeset | 1:eea311cfd33e |
next | 26:ad258e3daaa5 |
author | nkeynes |
date | Sat Mar 13 00:03:32 2004 +0000 (20 years ago) |
permissions | -rw-r--r-- |
last change | This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches. |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/bootstrap.h Sat Mar 13 00:03:32 2004 +00001.3 @@ -0,0 +1,67 @@1.4 +/*1.5 + * IP.BIN related code. Ref: http://mc.pp.se/dc/ip0000.bin.html1.6 + */1.7 +#ifndef dc_ipbin_H1.8 +#define dc_ipbin_H 11.9 +1.10 +#include <sys/types.h>1.11 +1.12 +#ifdef __cplusplus1.13 +extern "C" {1.14 +#if 01.15 +}1.16 +#endif1.17 +#endif1.18 +1.19 +#define BOOTSTRAP_LOAD_ADDR 0x8C0080001.20 +#define BOOTSTRAP_SIZE 327681.21 +1.22 +typedef struct dc_bootstrap_head {1.23 + char hardware_id[16]; /* must be "SEGA SEGAKATANA " */1.24 + char maker_id[16]; /* ditto, "SEGA ENTERPRISES" */1.25 + char crc[4];1.26 + char padding; /* normally ascii space */1.27 + char gdrom_id[6];1.28 + char disc_no[5];1.29 + char regions[8];1.30 + char peripherals[8];1.31 + char product_id[10];1.32 + char product_ver[6];1.33 + char product_date[16];1.34 + char boot_file[16];1.35 + char vendor_id[16];1.36 + char product_name[128];1.37 +} *dc_bootstrap_head_t;1.38 +1.39 +/* Expansion units */1.40 +#define DC_PERIPH_WINCE 0x00000011.41 +#define DC_PERIPH_VGABOX 0x00000101.42 +#define DC_PERIPH_OTHER 0x00001001.43 +#define DC_PERIPH_PURUPURU 0x00002001.44 +#define DC_PERIPH_MIKE 0x00004001.45 +#define DC_PERIPH_MEMCARD 0x00008001.46 +/* Basic requirements */1.47 +#define DC_PERIPH_BASIC 0x0001000 /* Basic controls - start, a, b, arrows */1.48 +#define DC_PERIPH_C_BUTTON 0x00020001.49 +#define DC_PERIPH_D_BUTTON 0x00040001.50 +#define DC_PERIPH_X_BUTTON 0x00080001.51 +#define DC_PERIPH_Y_BUTTON 0x00100001.52 +#define DC_PERIPH_Z_BUTTON 0x00200001.53 +#define DC_PERIPH_EXP_DIR 0x0040000 /* Expanded direction buttons */1.54 +#define DC_PERIPH_ANALOG_R 0x0080000 /* Analog R trigger */1.55 +#define DC_PERIPH_ANALOG_L 0x0100000 /* Analog L trigger */1.56 +#define DC_PERIPH_ANALOG_H 0x0200000 /* Analog horizontal controller */1.57 +#define DC_PERIPH_ANALOG_V 0x0400000 /* Analog vertical controller */1.58 +#define DC_PERIPH_EXP_AH 0x0800000 /* Expanded analog horizontal (?) */1.59 +#define DC_PERIPH_EXP_AV 0x1000000 /* Expanded analog vertical (?) */1.60 +/* Optional peripherals */1.61 +#define DC_PERIPH_GUN 0x20000001.62 +#define DC_PERIPH_KEYBOARD 0x40000001.63 +#define DC_PERIPH_MOUSE 0x80000001.64 +1.65 +void parse_ipbin(char *data);1.66 +1.67 +#ifdef __cplusplus1.68 +}1.69 +#endif1.70 +#endif
.