PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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
16typedef acUint32 acFlashAddr;
17
18typedef struct ac_flash_info
19{
20 acUint32 fi_blocks;
21 acUint32 fi_bsize;
23
25
26extern int acFlashModuleRestart(int argc, char **argv);
27extern int acFlashModuleStart(int argc, char **argv);
28extern int acFlashModuleStatus();
29extern int acFlashModuleStop();
30extern int acFlashStart();
31extern int acFlashStatus(acFlashAddr addr);
32extern int acFlashStop();
33extern int acFlashInfo(acFlashInfoData *info);
34extern int acFlashErase(acFlashAddr addr);
35extern int acFlashProgram(acFlashAddr addr, void *buf, int count);
36extern int acFlashRead(acFlashAddr addr, void *buf, int count);
37extern 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
u32 count
start sector of fragmented bd/file