2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_GXFIFO
|
|
|
|
#define _DOLPHIN_GXFIFO
|
2022-08-30 04:05:16 +00:00
|
|
|
|
|
|
|
#include <dolphin/gx/GXEnum.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
u8 pad[128];
|
|
|
|
} GXFifoObj;
|
|
|
|
|
2022-12-01 05:58:57 +00:00
|
|
|
typedef void (*GXBreakPtCallback)(void);
|
|
|
|
|
2022-08-30 04:05:16 +00:00
|
|
|
void GXInitFifoBase(GXFifoObj* fifo, void* base, u32 size);
|
|
|
|
void GXInitFifoPtrs(GXFifoObj* fifo, void* readPtr, void* writePtr);
|
|
|
|
void GXGetFifoPtrs(GXFifoObj* fifo, void** readPtr, void** writePtr);
|
|
|
|
GXFifoObj* GXGetCPUFifo(void);
|
|
|
|
GXFifoObj* GXGetGPFifo(void);
|
|
|
|
void GXSetCPUFifo(GXFifoObj* fifo);
|
|
|
|
void GXSetGPFifo(GXFifoObj* fifo);
|
|
|
|
void GXSaveCPUFifo(GXFifoObj* fifo);
|
2022-09-18 06:05:46 +00:00
|
|
|
void GXGetFifoStatus(GXFifoObj* fifo, GXBool* overhi, GXBool* underlow, u32* fifoCount,
|
|
|
|
GXBool* cpu_write, GXBool* gp_read, GXBool* fifowrap);
|
|
|
|
void GXGetGPStatus(GXBool* overhi, GXBool* underlow, GXBool* readIdle, GXBool* cmdIdle,
|
|
|
|
GXBool* brkpt);
|
2022-08-30 04:05:16 +00:00
|
|
|
void GXInitFifoLimits(GXFifoObj* fifo, u32 hiWaterMark, u32 loWaterMark);
|
2022-12-01 05:58:57 +00:00
|
|
|
GXBreakPtCallback GXSetBreakPtCallback(GXBreakPtCallback cb);
|
|
|
|
void GXEnableBreakPt(void* breakPt);
|
|
|
|
void GXDisableBreakPt(void);
|
2022-08-30 04:05:16 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_GXFIFO
|