48 #define AR_MRAMTOARAM 0 49 #define AR_ARAMTOMRAM 1 62 #define AR_ARAMINTALL 0 63 #define AR_ARAMINTUSER 1 257 #define AR_StartDMARead(maddr,araddr,tlen) \ 258 AR_StartDMA(AR_ARAMTOMRAM,maddr,araddr,tlen); 265 #define AR_StartDMAWrite(maddr,araddr,tlen) \ 266 AR_StartDMA(AR_MRAMTOARAM,maddr,araddr,tlen); u32 AR_GetDMAStatus()
Get current status of DMA.
Definition: aram.c:88
u32 AR_Init(u32 *stack_idx_array, u32 num_entries)
Initializes ARAM subsystem.
Definition: aram.c:97
GLenum GLsizei len
Definition: glext.h:7389
void(* ARCallback)(void)
function pointer typedef for the user's ARAM interrupt callback
Definition: aram.h:81
u32 AR_GetInternalSize()
Get the size of the internal ARAM memory.
Definition: aram.c:214
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
BOOL AR_CheckInit()
Get the ARAM subsystem initialization flag.
Definition: aram.c:194
ARCallback AR_RegisterCallback(ARCallback callback)
Register the given function as a DMA callback.
Definition: aram.c:76
u32 AR_Free(u32 *len)
Free a block from ARAM.
Definition: aram.c:160
void AR_StartDMA(u32 dir, u32 memaddr, u32 aramaddr, u32 len)
Initiates a DMA between main memory and ARAM.
Definition: aram.c:123
void AR_Reset()
Clears the ARAM subsystem initialization flag.
Definition: aram.c:199
void AR_Clear(u32 flag)
Clear ARAM memory.
Definition: aram.c:174
u32 AR_Alloc(u32 len)
Allocate a block of memory from ARAM having len bytes.
Definition: aram.c:145
unsigned int BOOL
Definition: gctypes.h:51
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
u32 AR_GetSize()
Get the total size - in bytes - of ARAM as calculated during AR_Init()
Definition: aram.c:204
u32 AR_GetBaseAddress()
Get the baseaddress of ARAM memory.
Definition: aram.c:209