Skip to content

Commit

Permalink
Link ar library
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartPiece44 committed Dec 17, 2024
1 parent 0850116 commit 077d468
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 1,532 deletions.
9 changes: 2 additions & 7 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,13 +924,8 @@ def MatchingFor(*versions):
DolphinLib(
"ar",
[
Object(NonMatching, "ar/ar.c"),
]
),
DolphinLib(
"arq",
[
Object(NonMatching, "ar/arq.c"),
Object(Matching, "ar/ar.c"),
Object(Matching, "ar/arq.c"),
]
),
DolphinLib(
Expand Down
14 changes: 3 additions & 11 deletions include/Dolphin/ar.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,17 @@ struct ARQRequest {

/////////////// AR FUNCTIONS ///////////////
// ARQ functions.
void __ARQServiceQueueLo();
void __ARQCallbackHack();
void __ARQInterruptServiceRoutine();
void ARQInit();
void ARQPostRequest(ARQRequest* task, u32 owner, u32 type, u32 priority, u32 source, u32 dest, u32 length, ARQCallback callback);

// AR functions.
ARCallback ARRegisterDMACallback(ARCallback callback);
u32 ARGetDMAStatus();
void ARStartDMA(u32 type, u32 mainmem_addr, u32 aram_addr, u32 length);
u32 ARAlloc(u32 length);
u32 ARInit(u32* stack_index_addr, u32 num_entries);
u32 ARGetBaseAddress();
u32 ARGetSize();

// Unused/inlined in P2.
u32 ARFree(u32* length);
BOOL ARCheckInit();
void ARReset();
void ARSetSize();
u32 ARGetInternalSize();
void ARClear(u32 flag);

////////////////////////////////////////////
u16 __ARGetInterruptStatus();
Expand Down
Loading

0 comments on commit 077d468

Please sign in to comment.