PSPSDK 2025-05-14
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
36/*
37// sceNandWritePages
38// sceNandReadAccess
39// sceNandWriteAccess
40// sceNandEraseBlock
41// sceNandReadExtraOnly
42// sceNandCalcEcc
43// sceNandVerifyEcc
44// sceNandCollectEcc
45*/
46
48
50
52
53/*
54// sceNandWriteBlock
55// sceNandWriteBlockWithVerify
56*/
57
58int sceNandReadBlockWithRetry(u32 ppn, void *buf, void *buf2);
59
60/*
61// sceNandVerifyBlockWithRetry
62// sceNandEraseBlockWithRetry
63*/
64
66
67/*
68// sceNandEraseAllBlock
69// sceNandTestBlock
70*/
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* PSPNAND_DRIVER_H */
int sceNandSetWriteProtect(int protectFlag)
int sceNandGetPagesPerBlock(void)
int sceNandLock(int writeFlag)
int sceNandReset(int flag)
int sceNandIsBadBlock(u32 ppn)
int sceNandReadId(void *buf, SceSize size)
int sceNandReadStatus(void)
int sceNandReadBlockWithRetry(u32 ppn, void *buf, void *buf2)
int sceNandReadPages(u32 ppn, void *buf, void *buf2, 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