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
8typedef 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;
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. */
23typedef struct {
24 sceDmaChcr chcr;
26
30typedef 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
43STATIC_ASSERT(sizeof(sceDmaEnv) == 0x14);
44
45extern "C" {
46
47sceDmaChan *sceDmaGetChan(int channel);
48int sceDmaSend(sceDmaChan *chan, void *data);
49int sceDmaSync(sceDmaChan *chan, int mode, int timeout);
50
54int sceDmaReset(int mode);
55
59int sceDmaGetEnv(sceDmaEnv *env);
60
64int sceDmaPutEnv(sceDmaEnv *env);
65}
void * mem
Definition libdma.h:40
u_char mbd
Definition libdma.h:34
u_char sts
Definition libdma.h:31
u_char mbs
Definition libdma.h:33
u_short notify
Definition libdma.h:36
u_char std
Definition libdma.h:32