8#include "common_header.h"
34 USER_ECC_IN_SPARE = 0x01,
35 NO_AUTO_USER_ECC = 0x10,
36 NO_AUTO_SPARE_ECC = 0x20
39s32 sceNandIsBadBlock(u32 ppn);
40s32 sceNandWriteAccess(u32 ppn,
void *user,
void *spare, u32 len, SceNandEccMode_t mode);
41s32 sceNandSetScramble(u32 scramble);
42s32 sceNandVerifyEcc(u8 *buf, u16 ecc);
43s32 sceNandEraseAllBlock(
void);
44s32 sceNandDetectChipMakersBBM(u32 ppn);
45s32 sceNandDumpWearBBMSize(
void);
46s32 sceNandUnlock(
void);
47s32 sceNandReadExtraOnly(u32,
void*, u32);
48s32 sceNandVerifyBlockWithRetry(u32 ppn,
void *user,
void *spare);
49s32 sceNandWriteBlock(u32 ppn,
void *user,
void *spare);
53s32 sceNandCorrectEcc(u8 *buf, u16 ecc);
54s32 sceNandWritePagesRawExtra(u32 ppn,
void *user,
void *spare, u32 len);
55s32 sceNandEraseBlockWithRetry(u32 ppn);
56s32 sceNandReadPages(u32 ppn,
void *user,
void *spare, u32 len);
57s32 sceNandWritePages(u32 ppn,
void *user,
void *spare, u32 len);
58s32 sceNandTestBlock(u32 ppn);
60s32 sceNandGetPagesPerBlock(
void);
61s32 sceNandWriteBlockWithVerify(u32 ppn,
void *user,
void *spare);
63s32 sceNandWritePagesRawAll(u32 ppn,
void *user,
void *spare, u32 len);
64s32 sceNandGetTotalBlocks(
void);
65s32 sceNandDoMarkAsBadBlock(u32 ppn);
66s32 sceNandReadBlockWithRetry(u32 ppn,
void *user,
void *spare);
67s32 sceNandReadPagesRawAll(u32 ppn,
void *user,
void *spare, u32 len);
68s32 sceNandGetPageSize(
void);
69s32 sceNandDetectChip(
void);
70s32 sceNandReadPagesRawExtra(u32 ppn,
void *user,
void *spare, u32 len);
72s32 sceNandEraseBlock(u32);
73s32 sceNandCountChipMakersBBM(
void);
74s32 sceNandCalcEcc(u8 *buf);