gpus: return DMA word count to avoid 1 list walk
[pcsx_rearmed.git] / plugins / gpu_unai / port.h
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
18 extern "C" {
19
20 #define u32 unsigned int
21 #define s32 signed int
22
23 bool GPUinit(void);
24 void GPUshutdown(void);
25 void GPUwriteDataMem(u32* dmaAddress, s32 dmaCount);
26 long GPUdmaChain(u32* baseAddr, u32 dmaVAddr);
27 void GPUwriteData(u32 data);
28 void GPUreadDataMem(u32* dmaAddress, s32 dmaCount);
29 u32  GPUreadData(void);
30 u32  GPUreadStatus(void);
31 void GPUwriteStatus(u32 data);
32
33 #undef u32
34 #undef s32
35
36 }