psx_gpu: fix divide by 0
[pcsx_rearmed.git] / plugins / gpu_unai / port.h
CommitLineData
7c49c8a2 1#include <stddef.h>
2#include <string.h>
3
4#define INLINE static inline
5
6#define GPU_init GPUinit
7#define GPU_shutdown GPUshutdown
8//#define GPU_freeze GPUfreeze
9#define GPU_writeDataMem GPUwriteDataMem
10#define GPU_dmaChain GPUdmaChain
11#define GPU_writeData GPUwriteData
12#define GPU_readDataMem GPUreadDataMem
13#define GPU_readData GPUreadData
14#define GPU_readStatus GPUreadStatus
15#define GPU_writeStatus GPUwriteStatus
16#define GPU_updateLace GPUupdateLace
17
18extern "C" {
19
20#define u32 unsigned int
21#define s32 signed int
22
23bool GPUinit(void);
24void GPUshutdown(void);
25void GPUwriteDataMem(u32* dmaAddress, s32 dmaCount);
b03e0caf 26long GPUdmaChain(u32* baseAddr, u32 dmaVAddr);
7c49c8a2 27void GPUwriteData(u32 data);
28void GPUreadDataMem(u32* dmaAddress, s32 dmaCount);
29u32 GPUreadData(void);
30u32 GPUreadStatus(void);
31void GPUwriteStatus(u32 data);
32
33#undef u32
34#undef s32
35
36}