summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/smartmedia.hch
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-11-24 15:17:09 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-11-24 15:17:09 (GMT)
commit71fb737c2399096f0ef75e6c6b0497d70f960d3f (patch)
tree56eede1bb92193214396fca09bbd508d13ba7ae5 /Graphic_Equalizer/include/smartmedia.hch
parent2a8207ec3a34353c189eb1171ee8336c6e0ae1b3 (diff)
downloadTASS-71fb737c2399096f0ef75e6c6b0497d70f960d3f.zip
TASS-71fb737c2399096f0ef75e6c6b0497d70f960d3f.tar.gz
TASS-71fb737c2399096f0ef75e6c6b0497d70f960d3f.tar.bz2
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.
Diffstat (limited to 'Graphic_Equalizer/include/smartmedia.hch')
-rw-r--r--Graphic_Equalizer/include/smartmedia.hch16
1 files 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"