From 71fb737c2399096f0ef75e6c6b0497d70f960d3f Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Wed, 24 Nov 2004 15:17:09 +0000 Subject: Added defines to indicate what stage we are in when loading data. The smartmedia loader needs to know where to initialize the found values too, thus we added the skindata struct. --- Graphic_Equalizer/include/smartmedia.hch | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Graphic_Equalizer/include/smartmedia.hch b/Graphic_Equalizer/include/smartmedia.hch index 774518f..9bbd2b1 100644 --- a/Graphic_Equalizer/include/smartmedia.hch +++ b/Graphic_Equalizer/include/smartmedia.hch @@ -27,8 +27,19 @@ #define WRITE 1 + +/* + * The different stages the smart media loaders knows. + */ +#define STAGE_LOAD_SKIN 0x00 +#define STAGE_LOAD_HELP 0x01 +#define STAGE_LOAD_GRAPH 0x02 +#define STAGE_LOAD_PRESET 0x03 + + /* * Create a define to keep API generic + * FIXME: replace with PAL calls when avaiable. */ #define CPLDRun(ClockRate) RC200CPLDRun(ClockRate) #define SmartMediaRun(ClockRate) RC200SmartMediaRun(ClockRate) @@ -38,14 +49,15 @@ /* * Initializes the smartmedia device. */ -unsigned 1 smartmedia_init(void); + +macro proc smartmedia_init(result); /* * This function loads the memory with data from the smartmedia card. */ -macro proc smartmedia_loaddata(RAM_BANK0); +macro proc smartmedia_loaddata(skindata, RAM_BANK0); #else #error "ERROR file smartmedia.hch multiple times included" -- cgit v0.12