diff options
| author | rozlette <uberpanzermensch@gmail.com> | 2019-11-14 00:52:31 -0600 |
|---|---|---|
| committer | rozlette <uberpanzermensch@gmail.com> | 2019-11-14 00:52:31 -0600 |
| commit | a09a799eef76b00a58e74209fb968d425d50447f (patch) | |
| tree | 990564d7d0e38aa6a049841b8b93f26cf07e41b3 /src/boot_O2_g3/z_std_dma.c | |
| parent | b1938991fa755ca1b75134c0a5c50d649faf1370 (diff) | |
Rename tons of structs because we aren't using the z_ prefix anymore ;_;
Diffstat (limited to 'src/boot_O2_g3/z_std_dma.c')
| -rw-r--r-- | src/boot_O2_g3/z_std_dma.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/boot_O2_g3/z_std_dma.c b/src/boot_O2_g3/z_std_dma.c index f7a598de3..2230d489a 100644 --- a/src/boot_O2_g3/z_std_dma.c +++ b/src/boot_O2_g3/z_std_dma.c @@ -48,8 +48,8 @@ void Dmamgr_osEPiStartDmaWrapper(OSPiHandle* pihandle, OSIoMesg* mb, s32 directi osEPiStartDma(pihandle, mb, direction); } -z_DmadataEntry* Dmamgr_FindDmaEntry(u32 a0) { - z_DmadataEntry* curr; +DmadataEntry* Dmamgr_FindDmaEntry(u32 a0) { + DmadataEntry* curr; for (curr = dmadata; curr->vromEnd != 0; curr++) { if (a0 < curr->vromStart) continue; @@ -62,7 +62,7 @@ z_DmadataEntry* Dmamgr_FindDmaEntry(u32 a0) { } s32 Dmamgr_TranslateVromToRom(u32 a0) { - z_DmadataEntry* v0 = Dmamgr_FindDmaEntry(a0); + DmadataEntry* v0 = Dmamgr_FindDmaEntry(a0); if (v0 != NULL) { if (v0->romEnd == 0) { @@ -80,7 +80,7 @@ s32 Dmamgr_TranslateVromToRom(u32 a0) { } s32 Dmamgr_FindDmaIndex(u32 a0) { - z_DmadataEntry* v0 = Dmamgr_FindDmaEntry(a0); + DmadataEntry* v0 = Dmamgr_FindDmaEntry(a0); if (v0 != NULL) { return v0 - dmadata; @@ -95,7 +95,7 @@ UNK_TYPE* func_800809F4(u32 a0) { #ifdef NONMATCHING -void Dmamgr_HandleRequest(z_DmaRequest* a0) { +void Dmamgr_HandleRequest(DmaRequest* a0) { UNK_TYPE sp34; UNK_TYPE sp30; UNK_TYPE sp2C; @@ -149,9 +149,9 @@ GLOBAL_ASM("./asm/nonmatching/z_std_dma/Dmamgr_HandleRequest.asm") #ifdef NONMATCHING void Dmamgr_ThreadEntry(void* a0) { - z_DmaRequest* sp34; + DmaRequest* sp34; UNK_TYPE pad; - z_DmaRequest* s0; + DmaRequest* s0; for (;;) { osRecvMesg(&D_8009B2C0, (OSMesg)&sp34, 1); @@ -172,7 +172,7 @@ GLOBAL_ASM("./asm/nonmatching/z_std_dma/Dmamgr_ThreadEntry.asm") #ifdef NONMATCHING -s32 Dmamgr_SendRequest(z_DmaRequest* a0, UNK_FUN_PTR(a1), UNK_PTR a2, UNK_TYPE a3, UNK_TYPE sp30, OSMesgQueue* sp34, UNK_TYPE sp38) { +s32 Dmamgr_SendRequest(DmaRequest* a0, UNK_FUN_PTR(a1), UNK_PTR a2, UNK_TYPE a3, UNK_TYPE sp30, OSMesgQueue* sp34, UNK_TYPE sp38) { // TODO this isn't correct, it uses a lui, addiu to get the address of D_80096B60, then loads it, // meaning that this is likely just "if (*D_80096B60 >= 2)". However, I can not get it to not // produce the usual lui, lw combo to load from an address :/ @@ -199,7 +199,7 @@ GLOBAL_ASM("./asm/nonmatching/z_std_dma/Dmamgr_SendRequest.asm") #endif s32 Dmamgr_SendRequestAndWait(UNK_TYPE a0, UNK_PTR a1, UNK_TYPE a2) { - z_DmaRequest sp48; + DmaRequest sp48; OSMesgQueue sp30; OSMesg sp2C; s32 ret; @@ -220,7 +220,7 @@ s32 Dmamgr_SendRequestAndWait(UNK_TYPE a0, UNK_PTR a1, UNK_TYPE a2) { #ifdef NONMATCHING void Dmamgr_Start() { - z_DmadataEntry* v0; + DmadataEntry* v0; u32 v1; // TODO register load ordering is wrong Dmamgr_DoDmaTransfer(&dmadataRomStart, dmadata, (u8*)&dmadataRomEnd - (u8*)&dmadataRomStart); |
