TwlIPL/build/systemMenu_tools/NandFirmWriter/ARM9.TWL/include/kami_write_nandfirm.h
(no author) 5516483d5a nandファームをromアーカイブで持つように変更
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2881 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2009-07-21 11:51:38 +00:00

82 lines
2.3 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*---------------------------------------------------------------------------*
Project: TwlSDK - NandInitializer
File: kami_write_nandfirm.h
Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-04-22#$
$Rev: 1212 $
$Author: kamikawa $
*---------------------------------------------------------------------------*/
#ifndef KAMI_WRITE_NAND_FIRM
#define KAMI_WRITE_NAND_FIRM
#ifdef __cplusplus
extern "C" {
#endif
/*===========================================================================*/
#include <nitro.h>
/*---------------------------------------------------------------------------*
Œ^’è‹`
*---------------------------------------------------------------------------*/
typedef void* (*KAMIAlloc)(u32 size);
typedef void (*KAMIFree)(void* ptr);
// DS-IPL2ƒwƒbƒ_
typedef struct
{
u16 reserved_0h[4];
u32 ds_key;
u16 ds_arm9_romAdr;
u16 ds_arm9_ramAdr;
u16 ds_arm7_romAdr;
u16 ds_arm7_ramAdr;
u16 ds_arm9_romOffsetUnit:3;
u16 ds_arm9_ramOffsetUnit:3;
u16 ds_arm7_romOffsetUnit:3;
u16 ds_arm7_ramOffsetUnit:3;
u16 :2;
u16 ds_header_ver:2;
u16 ds_data_romAdr;
u64 card_key;
u16 ncd_romAdr;
u16 reserved_24h[2];
u16 ds_data_crc16;
}
NORHeaderDS;
/*---------------------------------------------------------------------------*
ŠÖ<C5A0>è`
*---------------------------------------------------------------------------*/
BOOL NandfirmProcess(void);
static inline void MakeFullPathForSD(char* file_name, char* full_path)
{
STD_CopyString( full_path, "rom:/data/" );
STD_ConcatenateString( full_path, file_name );
}
/*===========================================================================*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* KAMI_WRITE_NAND_FIRM */
/*---------------------------------------------------------------------------*
End of file
*---------------------------------------------------------------------------*/