PSPSDK 2026-01-13
Loading...
Searching...
No Matches
pspnand_driver.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspnand_driver.h - Definitions and interfaces to the NAND (flash) driver.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
9 *
10 */
11
12#ifndef PSPNAND_DRIVER_H
13#define PSPNAND_DRIVER_H
14
15#include <pspkerneltypes.h>
16#include <psptypes.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22int sceNandSetWriteProtect(int protectFlag);
23
24int sceNandLock(int writeFlag);
25
26void sceNandUnlock(void);
27
29
30int sceNandReset(int flag);
31
32int sceNandReadId(void *buf, SceSize size);
33
34int sceNandReadPages(u32 ppn, void *buf, void *buf2, u32 count);
35
36int sceNandReadPagesRawAll(u32 ppn, void* buf, void* spare, u32 count);
37
38/*
39// sceNandWritePages
40// sceNandReadAccess
41// sceNandCalcEcc
42// sceNandVerifyEcc
43// sceNandCollectEcc
44*/
45
47
48int sceNandWriteAccess(u32 ppn, void *buf, void *spare, int, unsigned int);
49
50int sceNandReadExtraOnly(u32 ppn, void *buf, int);
51
53
55
57
58/*
59// sceNandWriteBlock
60*/
61
62int sceNandWriteBlockWithVerify(u32 ppn, void *buf, void *spare);
63
64int sceNandReadBlockWithRetry(u32 ppn, void *buf, void *buf2);
65
66/*
67// sceNandVerifyBlockWithRetry
68*/
69
71
73
74/*
75// sceNandEraseAllBlock
76// sceNandTestBlock
77*/
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* PSPNAND_DRIVER_H */
int sceNandSetWriteProtect(int protectFlag)
int sceNandGetPagesPerBlock(void)
int sceNandLock(int writeFlag)
int sceNandReadExtraOnly(u32 ppn, void *buf, int)
int sceNandReset(int flag)
int sceNandIsBadBlock(u32 ppn)
int sceNandReadId(void *buf, SceSize size)
int sceNandReadStatus(void)
int sceNandEraseBlock(u32 ppn)
int sceNandEraseBlockWithRetry(u32 ppn)
int sceNandWriteAccess(u32 ppn, void *buf, void *spare, int, unsigned int)
int sceNandReadBlockWithRetry(u32 ppn, void *buf, void *buf2)
int sceNandWriteBlockWithVerify(u32 ppn, void *buf, void *spare)
int sceNandReadPages(u32 ppn, void *buf, void *buf2, u32 count)
int sceNandReadPagesRawAll(u32 ppn, void *buf, void *spare, u32 count)
void sceNandUnlock(void)
int sceNandGetPageSize(void)
int sceNandGetTotalBlocks(void)
unsigned int SceSize
Definition psptypes.h:103
uint32_t u32
Definition psptypes.h:41