TwlIPL/include/firm/os/common/boot.h
yutaka f210f9d31a 最新のTwlSDKに合わせた
重複していた定義の削除とfrom_brom.hでのsdmc.hの参照停止
FinalROM版でのmakerom.TWLのエラー防止


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@35 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2007-10-01 05:02:10 +00:00

87 lines
2.4 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlFirm - OS - include
File: boot.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:: 2007-09-06$
$Rev$
$Author$
*---------------------------------------------------------------------------*/
#ifndef FIRM_OS_BOOT_H_
#define FIRM_OS_BOOT_H_
#include <firm.h>
#include <firm/format/from_brom.h>
#include <nitro/hw/common/armArch.h>
#ifdef __cplusplus
extern "C" {
#endif
//---- entry point type
typedef void (*OSEntryPoint) (void);
/*---------------------------------------------------------------------------*
Name: OSi_Boot
Description: boot firm
Arguments: entry : entry point
w : wram settings
Returns: None
*---------------------------------------------------------------------------*/
void OSi_Boot( void* entry, MIHeader_WramRegs* w );
/*---------------------------------------------------------------------------*
Name: OSi_Finalize
Description: finalize
Arguments: None
Returns: None
*---------------------------------------------------------------------------*/
void OSi_Finalize(void);
/*---------------------------------------------------------------------------*
Name: OSi_ClearWorkArea
Description: clear work area
Arguments: None
Returns: None
*---------------------------------------------------------------------------*/
void OSi_ClearWorkArea( void );
/*---------------------------------------------------------------------------*
Name: OSi_GetFromBromAddr
Description: data address from bootrom to firm
Arguments: None
Returns: address
*---------------------------------------------------------------------------*/
static inline OSFromBromBuf* OSi_GetFromBromAddr( void )
{
return (OSFromBromBuf*)HW_FIRM_FROM_BROM_BUF;
}
#ifdef __cplusplus
} /* extern "C" */
#endif
/* FIRM_OS_BOOT_H_ */
#endif