summaryrefslogtreecommitdiff
path: root/include/dolphin/ar/ar.h
blob: a7c4f92424130577e6d6f5517d48f5eac5d1af75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 ARGetBaseAddress();
u32 ARGetSize(void);

#ifdef __cplusplus
};
#endif

#endif /* AR_H */