Files
tp/libs/exi/EXIUart.cpp
T

90 lines
2.1 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: EXIUart
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
#include "exi/EXIUart.h"
2021-03-28 22:49:05 +02:00
#include "dol2asm.h"
#include "dolphin/types.h"
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Forward References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
extern "C" static void ProbeBarnacle();
extern "C" void __OSEnableBarnacle();
extern "C" void InitializeUART();
extern "C" void WriteUARTN();
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// External References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
extern "C" void OSGetConsoleType();
extern "C" void EXIImm();
extern "C" void EXISync();
extern "C" void EXIAttach();
extern "C" void EXIDetach();
extern "C" void EXISelect();
extern "C" void EXIDeselect();
extern "C" void EXILock();
extern "C" void EXIUnlock();
extern "C" void EXIGetID();
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 803445E8-80344774 33EF28 018C+00 1/1 0/0 0/0 .text ProbeBarnacle */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
static asm void ProbeBarnacle() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/exi/EXIUart/ProbeBarnacle.s"
}
#pragma pop
/* ############################################################################################## */
2021-04-06 18:00:35 +02:00
/* 804516E0-804516E4 000BE0 0004+00 3/3 0/0 0/0 .sbss Chan */
2021-03-28 22:49:05 +02:00
static u8 Chan[4];
2021-04-06 18:00:35 +02:00
/* 804516E4-804516E8 000BE4 0004+00 3/3 0/0 0/0 .sbss Dev */
2021-03-28 22:49:05 +02:00
static u8 Dev[4];
2021-04-06 18:00:35 +02:00
/* 804516E8-804516EC 000BE8 0004+00 3/3 0/0 0/0 .sbss Enabled */
2021-03-28 22:49:05 +02:00
static u8 Enabled[4];
2021-04-06 18:00:35 +02:00
/* 804516EC-804516F0 000BEC 0004+00 2/2 0/0 0/0 .sbss BarnacleEnabled */
2021-03-28 22:49:05 +02:00
static u8 BarnacleEnabled[4];
2021-04-06 18:00:35 +02:00
/* 80344774-80344930 33F0B4 01BC+00 0/0 1/1 0/0 .text __OSEnableBarnacle */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
asm void __OSEnableBarnacle() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/exi/EXIUart/__OSEnableBarnacle.s"
}
#pragma pop
2021-04-06 18:00:35 +02:00
/* 80344930-803449A0 33F270 0070+00 0/0 1/1 0/0 .text InitializeUART */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
asm void InitializeUART() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/exi/EXIUart/InitializeUART.s"
}
#pragma pop
2021-04-06 18:00:35 +02:00
/* 803449A0-80344BA0 33F2E0 0200+00 0/0 1/1 0/0 .text WriteUARTN */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
asm void WriteUARTN() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/exi/EXIUart/WriteUARTN.s"
}
#pragma pop