TwlIPL/include/sysmenu/hotsw/common/hotsw.h
(no author) f1befafee6 (更新:Akabane Jumpei)
・挿抜処理を行うスレッド内の処理を変更。(検証途中)
・HOTSW_LoadCardData関数/HOTSW_LoadStaticModule関数を非公開関数に変更。
・カード状態を示すenum型を新規作成。カード読み関数の返り値に利用。
・

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@697 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-02-19 07:06:32 +00:00

43 lines
1.0 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlSDK
File: Card.h
*---------------------------------------------------------------------------*/
#ifndef __MY_CARD_H__
#define __MY_CARD_H__
#include <twl.h>
#ifdef __cplusplus
extern "C" {
#endif
#define SYSM_HOTSW_ENABLE_ROMEMU
// Function prototype -------------------------------------------------------
// 活栓挿抜処理の初期化
void HOTSW_Init(void);
// カードの存在判定
BOOL HOTSW_IsCardExist(void);
// Boot Segment バッファの指定
void HOTSW_SetBootSegmentBuffer(void* buf, u32 size);
// Secure Segment バッファの指定
void HOTSW_SetSecureSegmentBuffer(void* buf, u32 size);
// Romエミュレーション情報を格納しているバッファのポインタを返す
#ifdef SDK_ARM7
void* HOTSW_GetRomEmulationBuffer(void);
#else // SDK_ARM9
SDK_INLINE void* HOTSW_GetRomEmulationBuffer(void)
{
return (void*)HW_ISD_RESERVED;
}
#endif // SDK_ARM9
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif // __MY_CARD_H__