TwlIPL_commit-99/include/sysmenu/mb_loader/common/mb_loader.h
2023-12-16 15:41:34 -05:00

87 lines
2.4 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlIPL
File: mb_loader.h
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$
*---------------------------------------------------------------------------*/
#if !defined(_LOADER_H_)
#define _LOADER_H_
#include <twl.h>
#include <nitro/mb.h> // twl/mb.hがない。
#ifdef __cplusplus
extern "C" {
#endif
#define PXI_FIFO_TAG_MB PXI_FIFO_TAG_USER_0
/*
実装の際、他のFIFO_TAGとかちあわないTAG番号に指定してください。
*/
/*---------------------------------------------------------------------------*
Type definition
*---------------------------------------------------------------------------*/
typedef void (*MB_LoaderCallback)(void);
/*---------------------------------------------------------------------------*
functions
*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*
Name: LOADER_Init
Description: ローダーの初期化
Arguments: callback - ブートの準備が出来たときに返すコールバック
Returns: None.
*---------------------------------------------------------------------------*/
void LOADER_Init(MB_LoaderCallback callback);
/*---------------------------------------------------------------------------*
Name: LOADER_Start
Description: ローダーのスタート
Arguments: None.
Returns: None.
*---------------------------------------------------------------------------*/
void LOADER_Start( void );
/*---------------------------------------------------------------------------*
Name: MIm_CpuCopy32
Description: ローダー用のCpuCopy32関数
Arguments:
Returns: TRUE - success FALSE - failed
*---------------------------------------------------------------------------*/
void MIm_CpuCopy32( register const void *srcp, register void *destp, register u32 size );
#ifdef __cplusplus
}
#endif
#endif /* _LOADER_H_ */