Files
dusklight/libs/dolphin/ar/arq.cpp
T
2021-03-31 23:22:38 +02:00

225 lines
7.8 KiB
C++

//
// Generated By: dol2asm
// Translation Unit: arq
//
#include "dol2asm.h"
#include "dolphin/types.h"
#include "dolphin/ar/arq.h"
//
// Forward References:
//
// True False
extern "C" static void __ARQServiceQueueLo();
// True False
// void False
extern "C" static void __ARQCallbackHack();
// True False
extern "C" static void __ARQInterruptServiceRoutine();
// False False
extern "C" void ARQInit();
// False False
extern "C" void ARQPostRequest();
//
// External References:
//
// False False
extern "C" void OSRegisterVersion();
// False False
extern "C" void OSDisableInterrupts();
// False False
extern "C" void OSRestoreInterrupts();
// False False
extern "C" void ARRegisterDMACallback();
// False False
extern "C" void ARStartDMA();
//
// Declarations:
//
/* ############################################################################################## */
/* 804518D8-804518DC 0004+00 s=3 e=0 z=0 None .sbss __ARQRequestQueueHi */
static u8 __ARQRequestQueueHi[4];
/* 804518DC-804518E0 0004+00 s=1 e=0 z=0 None .sbss __ARQRequestTailHi */
static u8 __ARQRequestTailHi[4];
/* 804518E0-804518E4 0004+00 s=3 e=0 z=0 None .sbss __ARQRequestQueueLo */
static u8 __ARQRequestQueueLo[4];
/* 804518E4-804518E8 0004+00 s=1 e=0 z=0 None .sbss __ARQRequestTailLo */
static u8 __ARQRequestTailLo[4];
/* 804518E8-804518EC 0004+00 s=3 e=0 z=0 None .sbss __ARQRequestPendingHi */
static u8 __ARQRequestPendingHi[4];
/* 804518EC-804518F0 0004+00 s=4 e=0 z=0 None .sbss __ARQRequestPendingLo */
static u8 __ARQRequestPendingLo[4];
/* 804518F0-804518F4 0004+00 s=3 e=0 z=0 None .sbss __ARQCallbackHi */
static u8 __ARQCallbackHi[4];
/* 804518F4-804518F8 0004+00 s=3 e=0 z=0 None .sbss __ARQCallbackLo */
static u8 __ARQCallbackLo[4];
/* 804518F8-804518FC 0004+00 s=2 e=0 z=0 None .sbss __ARQChunkSize */
static u8 __ARQChunkSize[4];
/* 80352094-80352194 0100+00 s=2 e=0 z=0 None .text __ARQServiceQueueLo */
// 803520A0: 804518EC (__ARQRequestPendingLo)
// 803520AC: 804518E0 (__ARQRequestQueueLo)
// 803520B8: 804518EC (__ARQRequestPendingLo)
// 803520C0: 804518E0 (__ARQRequestQueueLo)
// 803520C4: 804518EC (__ARQRequestPendingLo)
// 803520D4: 804518F8 (__ARQChunkSize)
// 803520F4: 803505D4 (ARStartDMA)
// 80352104: 803505D4 (ARStartDMA)
// 80352108: 804518EC (__ARQRequestPendingLo)
// 80352110: 804518F4 (__ARQCallbackLo)
// 80352130: 803505D4 (ARStartDMA)
// 80352144: 803505D4 (ARStartDMA)
// 80352148: 804518EC (__ARQRequestPendingLo)
// 8035214C: 804518F8 (__ARQChunkSize)
// 8035215C: 804518EC (__ARQRequestPendingLo)
// 80352160: 804518F8 (__ARQChunkSize)
// 80352170: 804518EC (__ARQRequestPendingLo)
// 80352174: 804518F8 (__ARQChunkSize)
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
// True False
extern "C" asm static void __ARQServiceQueueLo() {
nofralloc
#include "asm/dolphin/ar/arq/__ARQServiceQueueLo.s"
}
#pragma pop
/* 80352194-80352198 0004+00 s=1 e=0 z=0 None .text __ARQCallbackHack */
// True False
// void False
extern "C" static void __ARQCallbackHack() {
/* empty function */
}
/* 80352198-80352264 00CC+00 s=1 e=0 z=0 None .text __ARQInterruptServiceRoutine */
// 803521A4: 804518F0 (__ARQCallbackHi)
// 803521B0: 804518E8 (__ARQRequestPendingHi)
// 803521C0: 804518E8 (__ARQRequestPendingHi)
// 803521C4: 804518F0 (__ARQCallbackHi)
// 803521CC: 804518F4 (__ARQCallbackLo)
// 803521D8: 804518EC (__ARQRequestPendingLo)
// 803521E8: 804518EC (__ARQRequestPendingLo)
// 803521EC: 804518F4 (__ARQCallbackLo)
// 803521F0: 804518D8 (__ARQRequestQueueHi)
// 80352214: 803505D4 (ARStartDMA)
// 80352228: 803505D4 (ARStartDMA)
// 8035222C: 804518D8 (__ARQRequestQueueHi)
// 80352234: 804518F0 (__ARQCallbackHi)
// 80352238: 804518E8 (__ARQRequestPendingHi)
// 80352240: 804518D8 (__ARQRequestQueueHi)
// 80352244: 804518E8 (__ARQRequestPendingHi)
// 80352250: 80352094 (__ARQServiceQueueLo)
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
// True False
extern "C" asm static void __ARQInterruptServiceRoutine() {
nofralloc
#include "asm/dolphin/ar/arq/__ARQInterruptServiceRoutine.s"
}
#pragma pop
/* ############################################################################################## */
/* 803D1C30-803D1C78 0045+03 s=1 e=0 z=0 None .data @1 */
SECTION_DATA static u8 lit_1[69 + 3 /* padding */] = {
0x3C, 0x3C, 0x20, 0x44, 0x6F, 0x6C, 0x70, 0x68, 0x69, 0x6E, 0x20, 0x53, 0x44, 0x4B, 0x20, 0x2D,
0x20, 0x41, 0x52, 0x51, 0x09, 0x72, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x20, 0x62, 0x75, 0x69,
0x6C, 0x64, 0x3A, 0x20, 0x41, 0x70, 0x72, 0x20, 0x20, 0x35, 0x20, 0x32, 0x30, 0x30, 0x34, 0x20,
0x30, 0x34, 0x3A, 0x31, 0x35, 0x3A, 0x30, 0x34, 0x20, 0x28, 0x30, 0x78, 0x32, 0x33, 0x30, 0x31,
0x29, 0x20, 0x3E, 0x3E, 0x00,
/* padding */
0x00, 0x00, 0x00,
};
/* 80450A50-80450A58 0004+04 s=1 e=0 z=0 None .sdata __ARQVersion */
SECTION_SDATA static void* __ARQVersion[1 + 1 /* padding */] = {
(void*)&lit_1,
/* padding */
NULL,
};
/* 804518FC-80451900 0004+00 s=1 e=0 z=0 None .sbss __ARQ_init_flag */
static u8 __ARQ_init_flag[4];
/* 80352264-803522D4 0070+00 s=0 e=1 z=0 None .text ARQInit */
// 80352274: 804518FC (__ARQ_init_flag)
// 80352280: 80450A50 (__ARQVersion)
// 80352284: 8033A874 (OSRegisterVersion)
// 80352290: 804518E0 (__ARQRequestQueueLo)
// 80352294: 80352198 (__ARQInterruptServiceRoutine)
// 80352298: 804518D8 (__ARQRequestQueueHi)
// 8035229C: 80352198 (__ARQInterruptServiceRoutine)
// 803522A0: 804518F8 (__ARQChunkSize)
// 803522A4: 80350554 (ARRegisterDMACallback)
// 803522AC: 804518E8 (__ARQRequestPendingHi)
// 803522B0: 804518EC (__ARQRequestPendingLo)
// 803522B4: 804518F0 (__ARQCallbackHi)
// 803522B8: 804518F4 (__ARQCallbackLo)
// 803522BC: 804518FC (__ARQ_init_flag)
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
// False False
extern "C" asm void ARQInit() {
nofralloc
#include "asm/dolphin/ar/arq/ARQInit.s"
}
#pragma pop
/* 803522D4-80352430 015C+00 s=0 e=1 z=0 None .text ARQPostRequest */
// 80352320: 80352194 (__ARQCallbackHack)
// 80352324: 80352194 (__ARQCallbackHack)
// 8035232C: 8033D6F4 (OSDisableInterrupts)
// 8035234C: 804518E0 (__ARQRequestQueueLo)
// 80352358: 804518E4 (__ARQRequestTailLo)
// 80352364: 804518E0 (__ARQRequestQueueLo)
// 80352368: 804518E4 (__ARQRequestTailLo)
// 80352370: 804518D8 (__ARQRequestQueueHi)
// 8035237C: 804518DC (__ARQRequestTailHi)
// 80352388: 804518D8 (__ARQRequestQueueHi)
// 8035238C: 804518DC (__ARQRequestTailHi)
// 80352390: 804518E8 (__ARQRequestPendingHi)
// 8035239C: 804518EC (__ARQRequestPendingLo)
// 803523A8: 804518D8 (__ARQRequestQueueHi)
// 803523CC: 803505D4 (ARStartDMA)
// 803523E0: 803505D4 (ARStartDMA)
// 803523E4: 804518D8 (__ARQRequestQueueHi)
// 803523EC: 804518F0 (__ARQCallbackHi)
// 803523F0: 804518E8 (__ARQRequestPendingHi)
// 803523F8: 804518D8 (__ARQRequestQueueHi)
// 803523FC: 804518E8 (__ARQRequestPendingHi)
// 80352408: 80352094 (__ARQServiceQueueLo)
// 80352410: 8033D71C (OSRestoreInterrupts)
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
// False False
extern "C" asm void ARQPostRequest() {
nofralloc
#include "asm/dolphin/ar/arq/ARQPostRequest.s"
}
#pragma pop