From 1f9c3382c451382756934e0eaf7d35b51ce3b1d4 Mon Sep 17 00:00:00 2001 From: red031000 Date: Tue, 30 Jun 2020 14:10:53 +0100 Subject: arm9 MI_dma_gxcommand, remove arm9_itcm.s --- arm9/lib/include/GX_g3x.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arm9/lib/include/GX_g3x.h') diff --git a/arm9/lib/include/GX_g3x.h b/arm9/lib/include/GX_g3x.h index 4bd55831..a0512b28 100644 --- a/arm9/lib/include/GX_g3x.h +++ b/arm9/lib/include/GX_g3x.h @@ -1,6 +1,8 @@ #ifndef GUARD_GX_G3X_H #define GUARD_GX_G3X_H +#include "fx.h" + void GXi_NopClearFifo128_(void *reg); void G3X_Init(); void G3X_ResetMtxStack(); @@ -66,4 +68,17 @@ typedef enum } GXFifoStat; +static inline void G3X_SetFifoIntrCond(GXFifoIntrCond cond) +{ + reg_G3X_GXSTAT = ((reg_G3X_GXSTAT & ~0xc0000000) | + (cond << 30)); +} + +static inline GXFifoStat G3X_GetCommandFifoStatus(void) +{ + return (GXFifoStat)((reg_G3X_GXSTAT & (0x01000000 | + 0x02000000 | + 0x04000000)) >> 24); +} + #endif //GUARD_GX_G3X_H -- cgit v1.2.3