X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2Fport.h;fp=plugins%2Fgpu_unai%2Fport.h;h=3561acdcda99abf5b20b92445fe3d30a56e21d9f;hp=0000000000000000000000000000000000000000;hb=7c49c8a2a0cd00c453425b0f88c7b117223c92f4;hpb=ffd0d743cceac1715686af44f80779dc877735e0 diff --git a/plugins/gpu_unai/port.h b/plugins/gpu_unai/port.h new file mode 100644 index 00000000..3561acdc --- /dev/null +++ b/plugins/gpu_unai/port.h @@ -0,0 +1,36 @@ +#include +#include + +#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 + +}