diff options
Diffstat (limited to 'plugins/gpu_unai/port.h')
-rw-r--r-- | plugins/gpu_unai/port.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/gpu_unai/port.h b/plugins/gpu_unai/port.h new file mode 100644 index 0000000..3561acd --- /dev/null +++ b/plugins/gpu_unai/port.h @@ -0,0 +1,36 @@ +#include <stddef.h> +#include <string.h> + +#define INLINE static inline + +#define GPU_init GPUinit +#define GPU_shutdown GPUshutdown +//#define GPU_freeze GPUfreeze +#define GPU_writeDataMem GPUwriteDataMem +#define GPU_dmaChain GPUdmaChain +#define GPU_writeData GPUwriteData +#define GPU_readDataMem GPUreadDataMem +#define GPU_readData GPUreadData +#define GPU_readStatus GPUreadStatus +#define GPU_writeStatus GPUwriteStatus +#define GPU_updateLace GPUupdateLace + +extern "C" { + +#define u32 unsigned int +#define s32 signed int + +bool GPUinit(void); +void GPUshutdown(void); +void GPUwriteDataMem(u32* dmaAddress, s32 dmaCount); +void GPUdmaChain(u32* baseAddr, u32 dmaVAddr); +void GPUwriteData(u32 data); +void GPUreadDataMem(u32* dmaAddress, s32 dmaCount); +u32 GPUreadData(void); +u32 GPUreadStatus(void); +void GPUwriteStatus(u32 data); + +#undef u32 +#undef s32 + +} |