Search
lxdream.org :: lxdream/src/bootstrap.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/bootstrap.h
changeset 26:ad258e3daaa5
prev1:eea311cfd33e
next88:0a1bd43fa4ad
author nkeynes
date Sun Jan 22 22:40:53 2006 +0000 (18 years ago)
permissions -rw-r--r--
last change Add dummied-up BIOS syscalls
file annotate diff log raw
1.1 --- a/src/bootstrap.h Sat Mar 13 00:03:32 2004 +0000
1.2 +++ b/src/bootstrap.h Sun Jan 22 22:40:53 2006 +0000
1.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 modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.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 of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.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.html
1.24 */
1.25 -#ifndef dc_ipbin_H
1.26 -#define dc_ipbin_H 1
1.27 -
1.28 -#include <sys/types.h>
1.29 +#ifndef dream_bootstrap_H
1.30 +#define dream_bootstrap_H 1
1.31
1.32 #ifdef __cplusplus
1.33 extern "C" {
1.34 -#if 0
1.35 -}
1.36 -#endif
1.37 #endif
1.38
1.39 -#define BOOTSTRAP_LOAD_ADDR 0x8C008000
1.40 -#define BOOTSTRAP_SIZE 32768
1.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 0x0000001
1.61 -#define DC_PERIPH_VGABOX 0x0000010
1.62 -#define DC_PERIPH_OTHER 0x0000100
1.63 -#define DC_PERIPH_PURUPURU 0x0000200
1.64 -#define DC_PERIPH_MIKE 0x0000400
1.65 -#define DC_PERIPH_MEMCARD 0x0000800
1.66 -/* Basic requirements */
1.67 -#define DC_PERIPH_BASIC 0x0001000 /* Basic controls - start, a, b, arrows */
1.68 -#define DC_PERIPH_C_BUTTON 0x0002000
1.69 -#define DC_PERIPH_D_BUTTON 0x0004000
1.70 -#define DC_PERIPH_X_BUTTON 0x0008000
1.71 -#define DC_PERIPH_Y_BUTTON 0x0010000
1.72 -#define DC_PERIPH_Z_BUTTON 0x0020000
1.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 0x2000000
1.82 -#define DC_PERIPH_KEYBOARD 0x4000000
1.83 -#define DC_PERIPH_MOUSE 0x8000000
1.84 -
1.85 -void parse_ipbin(char *data);
1.86 +/**
1.87 + * Dump the bootstrap info to the output log for infomational/debugging
1.88 + * purposes.
1.89 + */
1.90 +void bootstrap_dump(char *data);
1.91
1.92 #ifdef __cplusplus
1.93 }
1.94 #endif
1.95 -#endif
1.96 +#endif /* !dream_bootstrap_H */
.