2021-03-28 22:49:05 +02:00
|
|
|
#ifndef AR_H
|
|
|
|
|
#define AR_H
|
|
|
|
|
|
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
|
|
2022-11-11 10:09:48 -08:00
|
|
|
#ifdef __cplusplus
|
2021-05-03 02:03:24 +02:00
|
|
|
extern "C" {
|
2022-11-11 10:09:48 -08:00
|
|
|
#endif
|
|
|
|
|
|
2023-01-02 11:20:10 -08:00
|
|
|
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);
|
2021-05-03 02:03:24 +02:00
|
|
|
u32 ARGetSize(void);
|
2024-01-19 16:22:19 -08:00
|
|
|
u16 __ARGetInterruptStatus();
|
2022-11-11 10:09:48 -08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
};
|
|
|
|
|
#endif
|
2021-05-03 02:03:24 +02:00
|
|
|
|
2021-03-28 22:49:05 +02:00
|
|
|
#endif /* AR_H */
|