PSPSDK 2024-12-24
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
17#ifdef __cplusplus
18extern "C" {
19#endif
20
22
24
25void sceNandUnlock(void);
26
28
30
31int sceNandReadId(void *buf, SceSize size);
32
33int sceNandReadPages(u32 ppn, void *buf, void *buf2, u32 count);
34
35/*
36// sceNandWritePages
37// sceNandReadAccess
38// sceNandWriteAccess
39// sceNandEraseBlock
40// sceNandReadExtraOnly
41// sceNandCalcEcc
42// sceNandVerifyEcc
43// sceNandCollectEcc
44*/
45
47
49
51
52/*
53// sceNandWriteBlock
54// sceNandWriteBlockWithVerify
55*/
56
57int sceNandReadBlockWithRetry(u32 ppn, void *buf, void *buf2);
58
59/*
60// sceNandVerifyBlockWithRetry
61// sceNandEraseBlockWithRetry
62*/
63
65
66/*
67// sceNandEraseAllBlock
68// sceNandTestBlock
69*/
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* PSPNAND_DRIVER_H */
unsigned int SceSize
Definition pspkerneltypes.h:27
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 char size
Definition pspsysmem_kernel.h:6
float x
Definition psptypes.h:0
uint32_t u32
Definition psptypes.h:41