mirror of https://github.com/zeldaret/tp.git
194 lines
4.3 KiB
C++
194 lines
4.3 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: arq
|
|
//
|
|
|
|
#include "dolphin/ar/arq.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// Forward References:
|
|
//
|
|
|
|
extern "C" void __ARQServiceQueueLo();
|
|
extern "C" void __ARQCallbackHack();
|
|
extern "C" void __ARQInterruptServiceRoutine();
|
|
extern "C" void ARQInit();
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
extern "C" void OSRegisterVersion();
|
|
extern "C" void OSDisableInterrupts();
|
|
extern "C" void OSRestoreInterrupts();
|
|
extern "C" void ARRegisterDMACallback();
|
|
extern "C" void ARStartDMA();
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* ############################################################################################## */
|
|
/* 804518D8-804518DC 000DD8 0004+00 3/3 0/0 0/0 .sbss __ARQRequestQueueHi */
|
|
static u8 __ARQRequestQueueHi[4];
|
|
|
|
/* 804518DC-804518E0 000DDC 0004+00 1/1 0/0 0/0 .sbss __ARQRequestTailHi */
|
|
static u8 __ARQRequestTailHi[4];
|
|
|
|
/* 804518E0-804518E4 000DE0 0004+00 3/3 0/0 0/0 .sbss __ARQRequestQueueLo */
|
|
static u8 __ARQRequestQueueLo[4];
|
|
|
|
/* 804518E4-804518E8 000DE4 0004+00 1/1 0/0 0/0 .sbss __ARQRequestTailLo */
|
|
static u8 __ARQRequestTailLo[4];
|
|
|
|
/* 804518E8-804518EC 000DE8 0004+00 3/3 0/0 0/0 .sbss __ARQRequestPendingHi */
|
|
static u8 __ARQRequestPendingHi[4];
|
|
|
|
/* 804518EC-804518F0 000DEC 0004+00 4/4 0/0 0/0 .sbss __ARQRequestPendingLo */
|
|
static u8 __ARQRequestPendingLo[4];
|
|
|
|
/* 804518F0-804518F4 000DF0 0004+00 3/3 0/0 0/0 .sbss __ARQCallbackHi */
|
|
static u8 __ARQCallbackHi[4];
|
|
|
|
/* 804518F4-804518F8 000DF4 0004+00 3/3 0/0 0/0 .sbss __ARQCallbackLo */
|
|
static u8 __ARQCallbackLo[4];
|
|
|
|
/* 804518F8-804518FC 000DF8 0004+00 2/2 0/0 0/0 .sbss __ARQChunkSize */
|
|
static u8 __ARQChunkSize[4];
|
|
|
|
/* 80352094-80352194 34C9D4 0100+00 2/2 0/0 0/0 .text __ARQServiceQueueLo */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __ARQServiceQueueLo() {
|
|
nofralloc
|
|
#include "asm/dolphin/ar/arq/__ARQServiceQueueLo.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80352194-80352198 34CAD4 0004+00 1/1 0/0 0/0 .text __ARQCallbackHack */
|
|
void __ARQCallbackHack() {
|
|
/* empty function */
|
|
}
|
|
|
|
/* 80352198-80352264 34CAD8 00CC+00 1/1 0/0 0/0 .text __ARQInterruptServiceRoutine */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __ARQInterruptServiceRoutine() {
|
|
nofralloc
|
|
#include "asm/dolphin/ar/arq/__ARQInterruptServiceRoutine.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D1C30-803D1C78 02ED50 0045+03 1/0 0/0 0/0 .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 -00001 0004+04 1/1 0/0 0/0 .sdata __ARQVersion */
|
|
SECTION_SDATA static void* __ARQVersion[1 + 1 /* padding */] = {
|
|
(void*)&lit_1,
|
|
/* padding */
|
|
NULL,
|
|
};
|
|
|
|
/* 804518FC-80451900 000DFC 0004+00 1/1 0/0 0/0 .sbss __ARQ_init_flag */
|
|
static u8 __ARQ_init_flag[4];
|
|
|
|
/* 80352264-803522D4 34CBA4 0070+00 0/0 1/1 0/0 .text ARQInit */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void ARQInit() {
|
|
nofralloc
|
|
#include "asm/dolphin/ar/arq/ARQInit.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803522D4-80352430 34CC14 015C+00 0/0 1/1 0/0 .text ARQPostRequest */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void ARQPostRequest(ARQRequest* task, u32 owner, u32 type, u32 priority, u32 source,
|
|
u32 destination, u32 length, ARQCallback callback) {
|
|
nofralloc
|
|
#include "asm/dolphin/ar/arq/ARQPostRequest.s"
|
|
}
|
|
#pragma pop
|