PS2SDK
PS2 Homebrew Libraries
acflash.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 _ACFLASH_H
12 #define _ACFLASH_H
13 
14 #include <accore.h>
15 
16 typedef acUint32 acFlashAddr;
17 
18 typedef struct ac_flash_info
19 {
20  acUint32 fi_blocks;
21  acUint32 fi_bsize;
23 
25 
26 extern int acFlashModuleRestart(int argc, char **argv);
27 extern int acFlashModuleStart(int argc, char **argv);
28 extern int acFlashModuleStatus();
29 extern int acFlashModuleStop();
30 extern int acFlashStart();
31 extern int acFlashStatus(acFlashAddr addr);
32 extern int acFlashStop();
33 extern int acFlashInfo(acFlashInfoData *info);
34 extern int acFlashErase(acFlashAddr addr);
35 extern int acFlashProgram(acFlashAddr addr, void *buf, int count);
36 extern int acFlashRead(acFlashAddr addr, void *buf, int count);
37 extern int acFlashVerify(acFlashAddr addr, void *buf, int count);
38 
39 #define acflash_IMPORTS_start DECLARE_IMPORT_TABLE(acflash, 1, 1)
40 #define acflash_IMPORTS_end END_IMPORT_TABLE
41 
42 #define I_acFlashModuleRestart DECLARE_IMPORT(4, acFlashModuleRestart)
43 #define I_acFlashModuleStart DECLARE_IMPORT(5, acFlashModuleStart)
44 #define I_acFlashModuleStatus DECLARE_IMPORT(6, acFlashModuleStatus)
45 #define I_acFlashModuleStop DECLARE_IMPORT(7, acFlashModuleStop)
46 #define I_acFlashStart DECLARE_IMPORT(8, acFlashStart)
47 #define I_acFlashStatus DECLARE_IMPORT(9, acFlashStatus)
48 #define I_acFlashStop DECLARE_IMPORT(10, acFlashStop)
49 #define I_acFlashInfo DECLARE_IMPORT(11, acFlashInfo)
50 #define I_acFlashErase DECLARE_IMPORT(12, acFlashErase)
51 #define I_acFlashProgram DECLARE_IMPORT(13, acFlashProgram)
52 #define I_acFlashRead DECLARE_IMPORT(14, acFlashRead)
53 #define I_acFlashVerify DECLARE_IMPORT(15, acFlashVerify)
54 
55 #endif
s_info
Definition: xprintf.c:78
count
u32 count
start sector of fragmented bd/file
Definition: usbhdfsd-common.h:3
ac_flash_info
Definition: acflash.h:18