DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
libdma.h
1
#pragma once
2
3
/* Vendor SDK declarations. The reconstruction is given no system include path at all — only the
4
game's own headers — which is why this is reached with quotes rather than as <libdma.h>. */
5
6
#include "common.h"
7
8
typedef
struct
{
9
u_long DIR : 1;
10
u_long pad1 : 1;
11
u_long MOD : 2;
12
u_long ASP : 2;
13
u_long TTE : 1;
14
u_long TIE : 1;
15
u_long STR : 1;
16
u_long pad9 : 7;
17
u_long TAG : 16;
18
}
sceDmaChcr
;
19
20
/* Only the control register is declared: it is the one field anything reconstructed so far
21
reaches, and the rest of the channel would be a claim about the SDK rather than a reading of
22
the game. */
23
typedef
struct
{
24
sceDmaChcr
chcr;
25
}
sceDmaChan
;
26
30
typedef
struct
sceDmaEnv
{
31
u_char
sts
;
32
u_char
std
;
33
u_char
mbs
;
34
u_char
mbd
;
35
u_short unk_04;
36
u_short
notify
;
37
u_short unk_08;
38
u_short unk_0A;
39
u_int unk_0C;
40
void
*
mem
;
41
}
sceDmaEnv
;
42
43
STATIC_ASSERT(
sizeof
(
sceDmaEnv
) == 0x14);
44
45
extern
"C"
{
46
47
sceDmaChan
*sceDmaGetChan(
int
channel);
48
int
sceDmaSend(
sceDmaChan
*chan,
void
*data);
49
int
sceDmaSync(
sceDmaChan
*chan,
int
mode,
int
timeout);
50
54
int
sceDmaReset(
int
mode);
55
59
int
sceDmaGetEnv(
sceDmaEnv
*env);
60
64
int
sceDmaPutEnv(
sceDmaEnv
*env);
65
}
sceDmaChan
Definition
libdma.h:23
sceDmaChcr
Definition
libdma.h:8
sceDmaEnv
Definition
libdma.h:30
sceDmaEnv::mem
void * mem
Definition
libdma.h:40
sceDmaEnv::mbd
u_char mbd
Definition
libdma.h:34
sceDmaEnv::sts
u_char sts
Definition
libdma.h:31
sceDmaEnv::mbs
u_char mbs
Definition
libdma.h:33
sceDmaEnv::notify
u_short notify
Definition
libdma.h:36
sceDmaEnv::std
u_char std
Definition
libdma.h:32
ps2
include
sce
libdma.h
Generated by
1.9.8