filename | src/bootstrap.h |
changeset | 26:ad258e3daaa5 |
prev | 1:eea311cfd33e |
next | 88:0a1bd43fa4ad |
author | nkeynes |
date | Sun Jan 22 22:40:05 2006 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Add aica_enable() function for aica-only mode, disable by default Halt ARM on invalid address but leave everything else running Error if ESD can't start |
file | annotate | diff | log | raw |
1.1 --- a/src/bootstrap.h Sat Mar 13 00:03:32 2004 +00001.2 +++ b/src/bootstrap.h Sun Jan 22 22:40:05 2006 +00001.3 @@ -1,67 +1,38 @@1.4 +/**1.5 + * $Id: bootstrap.h,v 1.2 2005-12-24 08:02:14 nkeynes Exp $1.6 + *1.7 + * CD Bootstrap header parsing. Mostly for informational purposes.1.8 + *1.9 + * Copyright (c) 2005 Nathan Keynes.1.10 + *1.11 + * This program is free software; you can redistribute it and/or modify1.12 + * it under the terms of the GNU General Public License as published by1.13 + * the Free Software Foundation; either version 2 of the License, or1.14 + * (at your option) any later version.1.15 + *1.16 + * This program is distributed in the hope that it will be useful,1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.19 + * GNU General Public License for more details.1.20 + */1.21 +1.22 /*1.23 * IP.BIN related code. Ref: http://mc.pp.se/dc/ip0000.bin.html1.24 */1.25 -#ifndef dc_ipbin_H1.26 -#define dc_ipbin_H 11.27 -1.28 -#include <sys/types.h>1.29 +#ifndef dream_bootstrap_H1.30 +#define dream_bootstrap_H 11.32 #ifdef __cplusplus1.33 extern "C" {1.34 -#if 01.35 -}1.36 -#endif1.37 #endif1.39 -#define BOOTSTRAP_LOAD_ADDR 0x8C0080001.40 -#define BOOTSTRAP_SIZE 327681.41 -1.42 -typedef struct dc_bootstrap_head {1.43 - char hardware_id[16]; /* must be "SEGA SEGAKATANA " */1.44 - char maker_id[16]; /* ditto, "SEGA ENTERPRISES" */1.45 - char crc[4];1.46 - char padding; /* normally ascii space */1.47 - char gdrom_id[6];1.48 - char disc_no[5];1.49 - char regions[8];1.50 - char peripherals[8];1.51 - char product_id[10];1.52 - char product_ver[6];1.53 - char product_date[16];1.54 - char boot_file[16];1.55 - char vendor_id[16];1.56 - char product_name[128];1.57 -} *dc_bootstrap_head_t;1.58 -1.59 -/* Expansion units */1.60 -#define DC_PERIPH_WINCE 0x00000011.61 -#define DC_PERIPH_VGABOX 0x00000101.62 -#define DC_PERIPH_OTHER 0x00001001.63 -#define DC_PERIPH_PURUPURU 0x00002001.64 -#define DC_PERIPH_MIKE 0x00004001.65 -#define DC_PERIPH_MEMCARD 0x00008001.66 -/* Basic requirements */1.67 -#define DC_PERIPH_BASIC 0x0001000 /* Basic controls - start, a, b, arrows */1.68 -#define DC_PERIPH_C_BUTTON 0x00020001.69 -#define DC_PERIPH_D_BUTTON 0x00040001.70 -#define DC_PERIPH_X_BUTTON 0x00080001.71 -#define DC_PERIPH_Y_BUTTON 0x00100001.72 -#define DC_PERIPH_Z_BUTTON 0x00200001.73 -#define DC_PERIPH_EXP_DIR 0x0040000 /* Expanded direction buttons */1.74 -#define DC_PERIPH_ANALOG_R 0x0080000 /* Analog R trigger */1.75 -#define DC_PERIPH_ANALOG_L 0x0100000 /* Analog L trigger */1.76 -#define DC_PERIPH_ANALOG_H 0x0200000 /* Analog horizontal controller */1.77 -#define DC_PERIPH_ANALOG_V 0x0400000 /* Analog vertical controller */1.78 -#define DC_PERIPH_EXP_AH 0x0800000 /* Expanded analog horizontal (?) */1.79 -#define DC_PERIPH_EXP_AV 0x1000000 /* Expanded analog vertical (?) */1.80 -/* Optional peripherals */1.81 -#define DC_PERIPH_GUN 0x20000001.82 -#define DC_PERIPH_KEYBOARD 0x40000001.83 -#define DC_PERIPH_MOUSE 0x80000001.84 -1.85 -void parse_ipbin(char *data);1.86 +/**1.87 + * Dump the bootstrap info to the output log for infomational/debugging1.88 + * purposes.1.89 + */1.90 +void bootstrap_dump(char *data);1.92 #ifdef __cplusplus1.93 }1.94 #endif1.95 -#endif1.96 +#endif /* !dream_bootstrap_H */
.