mirror of https://github.com/zeldaret/tp.git
25 lines
460 B
C
25 lines
460 B
C
#ifndef AR_H
|
|
#define AR_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void (*ARCallback)(void);
|
|
|
|
ARCallback ARRegisterDMACallback(ARCallback callback);
|
|
u32 ARGetDMAStatus(void);
|
|
void ARStartDMA(u32 type, u32 mainmem_addr, u32 aram_addr, u32 length);
|
|
u32 ARInit(u32* stack_index_addr, u32 num_entries);
|
|
u32 ARAlloc(u32 length);
|
|
u32 ARGetSize(void);
|
|
u16 __ARGetInterruptStatus();
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* AR_H */
|