TwlIPL/build/libraries/fatfs/ARM9/src/fatfs_firm.c
yutaka bbb6bc01a7 menu_launcher/sdmc_launcherの更新
・NANDコンテキストをファームで共有メモリにコピーするようにした
・FATFSの許可アーカイブリストの場所を指定するようにした
・FSのうち、sdmc_launcherでのみ使用するコードを分離した
・共有メモリのFS用バッファをいろいろ使うようにした(rollback)
・利用後の共有メモリのFS用バッファを消すようにした
・アドレスの変わらないポインタにconstを付けた(void *constのように)


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@931 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-03-24 11:47:19 +00:00

35 lines
1.2 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlIPL - libraries - fatfs
File: fatfs_firm.c
Copyright 2007 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:: $
$Rev$
$Author$
*---------------------------------------------------------------------------*/
#include <firm.h>
#include <twl/types.h>
void FATFS_InitFIRM( void )
{
MI_CpuClearFast( (void*)HW_FIRM_FATFS_COMMAND_BUFFER, HW_FIRM_FATFS_COMMAND_BUFFER_SIZE );
MI_CpuClearFast( (void*)HW_FIRM_FATFS_ARCHNAME_LIST, HW_FIRM_FATFS_ARCHNAME_LIST_SIZE );
FATFSiCommandBuffer = (void*)HW_FIRM_FATFS_COMMAND_BUFFER;
FATFSiArcnameList = (void*)HW_FIRM_FATFS_ARCHNAME_LIST;
FATFS_Init();
}
void FATFSi_GetUnicodeConversionTable(const u8 **u2s, const u16 **s2u)
{
*u2s = NULL;
*s2u = NULL;
}