mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-06-18 16:55:31 -04:00
(shirait)
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@287 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
592f917801
commit
4bd11995f1
@ -18,36 +18,7 @@
|
||||
#include <brom/nand/nand.h>
|
||||
#include <firm/fatfs/rtfs.h>
|
||||
|
||||
//REG_NAND_COMMAND
|
||||
#define NAND_START (0x0100)
|
||||
#define NAND_BUSY NAND_START
|
||||
#define NAND_RESET 6
|
||||
#define NAND_READ_STATUS 5
|
||||
#define NAND_ERASE_BLOCK 4
|
||||
#define NAND_PROGRAM_PAGE 3
|
||||
#define NAND_READ_PAGE 1
|
||||
|
||||
//REG_NAND_ECC
|
||||
#define NAND_ENABLE_ECC 1
|
||||
|
||||
#define REG_NAND_ADR_LO (0x18019840)
|
||||
#define REG_NAND_ADR_HI (0x18019842)
|
||||
#define REG_NAND_COMMAND (0x1801984E)
|
||||
|
||||
#define REG_NAND_ECC (0x18019850)
|
||||
|
||||
#define REG_NAND_DATA (0x18019000)
|
||||
#define REG_NAND_SPARE (0x18019800)
|
||||
|
||||
void NandReset( void);
|
||||
void NandErase( u16 adr_hi, u16 adr_lo);
|
||||
void NandWrite( u16 adr_hi, u16 adr_lo, u32* buf);
|
||||
void NandRead( u16 adr_hi, u16 adr_lo);
|
||||
|
||||
u32 CalcECC( u32* buf);
|
||||
u32 CalcCP( u32* buf, u32 st, u32 cmp, u32 logic);
|
||||
u32 CalcLP( u32* buf, u32 st, u32 cmp, u32 logic);
|
||||
BOOL i_nandCheckECC( u32* data, u32* stored_ecc, u32 new_ecc);
|
||||
void nandSetFormatRequest( u16 partition_num, u32* partition_sectors);
|
||||
|
||||
NandPageCacheFormat NandPageCache[1];
|
||||
|
@ -20,39 +20,13 @@
|
||||
#include <revolution/wfstypes.h>
|
||||
#include <revolution/wfs.h>
|
||||
|
||||
//REG_NAND_COMMAND
|
||||
#define NAND_START (0x0100)
|
||||
#define NAND_BUSY NAND_START
|
||||
#define NAND_RESET 6
|
||||
#define NAND_READ_STATUS 5
|
||||
#define NAND_ERASE_BLOCK 4
|
||||
#define NAND_PROGRAM_PAGE 3
|
||||
#define NAND_READ_PAGE 1
|
||||
#define MY_STACK_SIZE (4*1024)
|
||||
|
||||
//REG_NAND_ECC
|
||||
#define NAND_ENABLE_ECC 1
|
||||
|
||||
#define REG_NAND_ADR_LO (0x18019840)
|
||||
#define REG_NAND_ADR_HI (0x18019842)
|
||||
#define REG_NAND_COMMAND (0x1801984E)
|
||||
|
||||
#define REG_NAND_ECC (0x18019850)
|
||||
|
||||
#define REG_NAND_DATA (0x18019000)
|
||||
#define REG_NAND_SPARE (0x18019800)
|
||||
|
||||
void NandReset( void);
|
||||
void NandErase( u16 adr_hi, u16 adr_lo);
|
||||
void NandWrite( u16 adr_hi, u16 adr_lo, u32* buf);
|
||||
void NandRead( u16 adr_hi, u16 adr_lo);
|
||||
|
||||
u32 CalcECC( u32* buf);
|
||||
u32 CalcCP( u32* buf, u32 st, u32 cmp, u32 logic);
|
||||
u32 CalcLP( u32* buf, u32 st, u32 cmp, u32 logic);
|
||||
BOOL i_nandCheckECC( u32* data, u32* stored_ecc, u32 new_ecc);
|
||||
void nandSetFormatRequest( u16 partition_num, u32* partition_sectors);
|
||||
|
||||
NandPageCacheFormat NandPageCache[1];
|
||||
|
||||
u32 BlockBuf[2*1024/4];
|
||||
u32 my_heap[0x40400/4];
|
||||
|
||||
@ -60,7 +34,6 @@ u16 WfsWorkBuf[(WFS_MIN_WORK_SPACE_SIZE/2)+512];
|
||||
u16* WfsAlignedWorkBuf;
|
||||
WFSResult WFSDebugSetTitleId(WFSTitleId titleId);
|
||||
|
||||
#define MY_STACK_SIZE (4*1024)
|
||||
OSThread my_tsk;
|
||||
u64 my_stack[MY_STACK_SIZE / sizeof(u64)];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user