PS2SDK
PS2 Homebrew Libraries
acmem.h
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #ifndef _ACMEM_H
12 #define _ACMEM_H
13 
14 #include <accore.h>
15 
16 typedef struct ac_mem
17 {
18  void *m_buf;
19  acUint32 m_size;
20  acUint32 m_id;
21  acUint32 m_attr;
22 } acMemData;
23 
24 typedef acMemData *acMemT;
25 
26 typedef acUint32 acMemEEaddr;
27 
28 extern int acMemModuleRestart(int argc, char **argv);
29 extern int acMemModuleStart(int argc, char **argv);
30 extern int acMemModuleStatus();
31 extern int acMemModuleStop();
32 extern acMemT acMemSetup(acMemData *mem, void *buf, int size);
33 extern int acMemSend(acMemT mem, acMemEEaddr addr, int size, int retry);
34 extern int acMemReceive(acMemT mem, acMemEEaddr addr, int size);
35 extern int acMemWait(acMemT mem, int threshold, int retry);
36 
37 #define acmem_IMPORTS_start DECLARE_IMPORT_TABLE(acmem, 1, 1)
38 #define acmem_IMPORTS_end END_IMPORT_TABLE
39 
40 #define I_acMemModuleRestart DECLARE_IMPORT(4, acMemModuleRestart)
41 #define I_acMemModuleStart DECLARE_IMPORT(5, acMemModuleStart)
42 #define I_acMemModuleStatus DECLARE_IMPORT(6, acMemModuleStatus)
43 #define I_acMemModuleStop DECLARE_IMPORT(7, acMemModuleStop)
44 #define I_acMemSetup DECLARE_IMPORT(8, acMemSetup)
45 #define I_acMemSend DECLARE_IMPORT(9, acMemSend)
46 #define I_acMemReceive DECLARE_IMPORT(10, acMemReceive)
47 #define I_acMemWait DECLARE_IMPORT(11, acMemWait)
48 
49 #endif
ac_mem
Definition: acmem.h:16