TwlIPL/build/libraries_sysmenu/sysmenu/common/include/internal_api.h
yosiokat 3d124962ed AES鍵情報の引渡し関数として、SYSMi_SetAESKeysForAccessControl関数を用意。
ドキュメント更新。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1211 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-04-22 04:53:09 +00:00

119 lines
3.1 KiB
C
Raw 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: TwlIPL
File: internal_api.h
Copyright 2007-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:: $
$Rev$
$Author$
*---------------------------------------------------------------------------*/
#ifndef SYSM_INTERNAL_API_H_
#define SYSM_INTERNAL_API_H_
#include <twl.h>
#include <sysmenu/sysmenu_lib/common/pxi.h>
#ifdef __cplusplus
extern "C" {
#endif
//#define SYSM_LIB_NO_MESSAGE // Printf抑制スイッチ
#ifdef SYSM_LIB_NO_MESSAGE
#define OS_Printf( ... ) ((void)0)
#define OS_TPrintf( ... ) ((void)0)
#define OS_PutString( ... ) ((void)0)
#endif
//-------------------------------------------------------
// マウント情報セット
//-------------------------------------------------------
#ifdef SDK_ARM9
// BootSRLPath受け渡し用
void SYSMi_SetBootSRLPathToWork2( TitleProperty *pBootTitle );
#else // !SDK_ARM9
// ランチャー用
void SYSMi_SetLauncherMountInfo( void );
// 起動アプリ用
void SYSMi_SetBootAppMountInfo( TitleProperty *pBootTitle );
#endif // SDK_ARM9
#ifdef SDK_ARM9
//-------------------------------------------------------
// デバイス
//-------------------------------------------------------
// ワイヤレスLED制御
void SYSMi_SetWirelessLED( BOOL enable );
// RTC補正
void SYSMi_WriteAdjustRTC( void );
// RTCチェック
void SYSMi_CheckRTC( void );
//-------------------------------------------------------
// バナー
//-------------------------------------------------------
// カードバナーリード※NTR-IPL2仕様
BOOL SYSMi_ReadCardBannerFile( u32 bannerOffset, TWLBannerFile *pBanner );
// NANDアプリバナーリード
BOOL SYSMi_ReadBanner_NAND( NAMTitleId titleID, TWLBannerFile *pDst );
//-------------------------------------------------------
// 活線挿抜
//-------------------------------------------------------
void SYSMi_EnableHotSW( BOOL enable );
#endif // SDK_ARM9
#ifdef SDK_ARM7
//-------------------------------------------------------
// AES鍵設定
//-------------------------------------------------------
// アプリブート用
void SYSMi_SetAESKeysForAccessControl( BOOL isNtrMode, ROM_Header *pROMH );
// ランチャー自身用
void SYSMi_SetAESKeysForAccessControlCore( ROM_Header *pROMH, u8 *pDst, BOOL *pIsClearSlotB, BOOL *pIsClearSlotC );
#endif // SDK_ARM7
//=======================================================
//
// ARM9/ARM7共通API
//
//=======================================================
BOOL SYSMi_IsDebuggerBannerViewMode( void );
BOOL SYSMi_CheckEntryAddress( void );
BOOL SYSMi_CopyCardRomHeader( void );
BOOL SYSMi_CopyCardBanner( void );
#ifdef __cplusplus
}
#endif
#endif // SYSM_INTERNAL_API_H_