Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
arq.h
Go to the documentation of this file.
1
#ifndef ARQ_H
2
#define ARQ_H
3
4
#include "
dolphin/types.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#define ARQ_CHUNK_SIZE_DEFAULT 4096
11
12
typedef
void
(*
ARQCallback
)(
u32
request_address
);
13
14
typedef
enum
_ARamType
{
15
ARAM_DIR_MRAM_TO_ARAM
,
16
ARAM_DIR_ARAM_TO_MRAM
,
17
}
ARamType
;
18
19
typedef
enum
_ArqPriotity
{
20
ARQ_PRIORITY_LOW
,
21
ARQ_PRIORITY_HIGH
,
22
}
ArqPriotity
;
23
24
typedef
struct
ARQRequest
{
25
struct
ARQRequest
*
next
;
26
u32
owner
;
27
u32
type
;
28
u32
priority
;
29
u32
source
;
30
u32
destination
;
31
u32
length
;
32
ARQCallback
callback
;
33
}
ARQRequest
;
34
35
void
ARQInit
(
void
);
36
void
ARQPostRequest
(
ARQRequest
* task,
u32
owner
,
u32
type
,
u32
priority
,
u32
source
,
37
u32
destination
,
u32
length
,
ARQCallback
callback
);
38
39
#ifdef __cplusplus
40
};
41
#endif
42
43
#endif
/* ARQ_H */
ARamType
enum _ARamType ARamType
ARQCallback
void(* ARQCallback)(u32 request_address)
Definition
arq.h:12
ARQInit
void ARQInit(void)
Definition
arq.c:111
_ARamType
_ARamType
Definition
arq.h:14
ARAM_DIR_ARAM_TO_MRAM
@ ARAM_DIR_ARAM_TO_MRAM
Definition
arq.h:16
ARAM_DIR_MRAM_TO_ARAM
@ ARAM_DIR_MRAM_TO_ARAM
Definition
arq.h:15
_ArqPriotity
_ArqPriotity
Definition
arq.h:19
ARQ_PRIORITY_HIGH
@ ARQ_PRIORITY_HIGH
Definition
arq.h:21
ARQ_PRIORITY_LOW
@ ARQ_PRIORITY_LOW
Definition
arq.h:20
ArqPriotity
enum _ArqPriotity ArqPriotity
ARQPostRequest
void ARQPostRequest(ARQRequest *task, u32 owner, u32 type, u32 priority, u32 source, u32 destination, u32 length, ARQCallback callback)
Definition
arq.c:128
cLib_calcTimer
T cLib_calcTimer(T *value)
Definition
c_lib.h:74
ARQRequest
Definition
arq.h:24
ARQRequest::next
struct ARQRequest * next
Definition
arq.h:25
ARQRequest::owner
u32 owner
Definition
arq.h:26
ARQRequest::destination
u32 destination
Definition
arq.h:30
ARQRequest::callback
ARQCallback callback
Definition
arq.h:32
ARQRequest::priority
u32 priority
Definition
arq.h:28
ARQRequest::length
u32 length
Definition
arq.h:31
ARQRequest::source
u32 source
Definition
arq.h:29
ARQRequest::type
u32 type
Definition
arq.h:27
types.h
u32
unsigned long u32
Definition
types.h:10
include
dolphin
arq.h
Generated by
1.9.8