summaryrefslogtreecommitdiff
path: root/include/rvl/GXVert.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-15 21:27:19 +0100
committerTreeki <treeki@gmail.com>2012-01-15 21:27:19 +0100
commit0dabea30d98d175e5d7e0655c10757db99ac8295 (patch)
treea41f5826440f19770348015b2a546ed4dcc7f0bc /include/rvl/GXVert.h
parent1cac64b9ff7384af650fed2bef25fa27069fd589 (diff)
downloadkamek-0dabea30d98d175e5d7e0655c10757db99ac8295.tar.gz
kamek-0dabea30d98d175e5d7e0655c10757db99ac8295.zip
Cleanups in the include files and other stuff
Diffstat (limited to '')
-rwxr-xr-xinclude/rvl/GXVert.h38
1 files changed, 26 insertions, 12 deletions
diff --git a/include/rvl/GXVert.h b/include/rvl/GXVert.h
index 8564563..41587c5 100755
--- a/include/rvl/GXVert.h
+++ b/include/rvl/GXVert.h
@@ -24,10 +24,24 @@ extern "C" {
#else // MINNOW
#define GXFIFO_ADDR 0x1C008000
#endif// MINNOW
+typedef union uPPCWGPipe
+{
+ u8 u8;
+ u16 u16;
+ u32 u32;
+ u64 u64;
+ s8 s8;
+ s16 s16;
+ s32 s32;
+ s64 s64;
+ f32 f32;
+ f64 f64;
+} PPCWGPipe;
+
// SN-Phil: removed 'extern', added AT_ADDRESS
-//volatile PPCWGPipe GXWGFifo AT_ADDRESS(GXFIFO_ADDR) ;
-extern volatile PPCWGPipe GXWGFifo;
+volatile PPCWGPipe GXWGFifo : (GXFIFO_ADDR) ;
+//extern volatile PPCWGPipe GXWGFifo;
#endif // !EMU
/*---------------------------------------------------------------------------*/
@@ -76,7 +90,7 @@ extern volatile PPCWGPipe GXWGFifo;
#define __GXCDEF1(func,ts,td) \
static inline void func(const ts x) \
{ \
- GXWGFifo._##td = (td) x; \
+ GXWGFifo.td = (td) x; \
return; \
}
@@ -84,8 +98,8 @@ extern volatile PPCWGPipe GXWGFifo;
#define __GXCDEF2(func,ts,td) \
static inline void func(const ts x, const ts y) \
{ \
- GXWGFifo._##td = (td) x; \
- GXWGFifo._##td = (td) y; \
+ GXWGFifo.td = (td) x; \
+ GXWGFifo.td = (td) y; \
return; \
}
@@ -93,9 +107,9 @@ extern volatile PPCWGPipe GXWGFifo;
#define __GXCDEF3(func,ts,td) \
static inline void func(const ts x, const ts y, const ts z) \
{ \
- GXWGFifo._##td = (td) x; \
- GXWGFifo._##td = (td) y; \
- GXWGFifo._##td = (td) z; \
+ GXWGFifo.td = (td) x; \
+ GXWGFifo.td = (td) y; \
+ GXWGFifo.td = (td) z; \
return; \
}
@@ -103,10 +117,10 @@ extern volatile PPCWGPipe GXWGFifo;
#define __GXCDEF4(func,ts,td) \
static inline void func(const ts x, const ts y, const ts z, const ts w) \
{ \
- GXWGFifo._##td = (td) x; \
- GXWGFifo._##td = (td) y; \
- GXWGFifo._##td = (td) z; \
- GXWGFifo._##td = (td) w; \
+ GXWGFifo.td = (td) x; \
+ GXWGFifo.td = (td) y; \
+ GXWGFifo.td = (td) z; \
+ GXWGFifo.td = (td) w; \
return; \
}