0bfe8d59 |
1 | #ifndef __GPU_UNAI_GPU_PORT_H__ |
2 | #define __GPU_UNAI_GPU_PORT_H__ |
3 | |
4 | #include <stddef.h> |
5 | #include <string.h> |
6 | |
7 | #define INLINE static inline |
8 | |
9 | #define GPU_init GPUinit |
10 | #define GPU_shutdown GPUshutdown |
11 | //#define GPU_freeze GPUfreeze |
12 | #define GPU_writeDataMem GPUwriteDataMem |
13 | #define GPU_dmaChain GPUdmaChain |
14 | #define GPU_writeData GPUwriteData |
15 | #define GPU_readDataMem GPUreadDataMem |
16 | #define GPU_readData GPUreadData |
17 | #define GPU_readStatus GPUreadStatus |
18 | #define GPU_writeStatus GPUwriteStatus |
19 | #define GPU_updateLace GPUupdateLace |
20 | |
21 | extern "C" { |
22 | |
23 | #define u32 unsigned int |
24 | #define s32 signed int |
25 | |
26 | bool GPUinit(void); |
27 | void GPUshutdown(void); |
28 | void GPUwriteDataMem(u32* dmaAddress, s32 dmaCount); |
29 | long GPUdmaChain(u32* baseAddr, u32 dmaVAddr); |
30 | void GPUwriteData(u32 data); |
31 | void GPUreadDataMem(u32* dmaAddress, s32 dmaCount); |
32 | u32 GPUreadData(void); |
33 | u32 GPUreadStatus(void); |
34 | void GPUwriteStatus(u32 data); |
35 | |
36 | #undef u32 |
37 | #undef s32 |
38 | |
39 | } |
40 | |
41 | #endif /* __GPU_UNAI_GPU_PORT_H__ */ |