/*---------------------------------------------------------------------------* 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 #include #include #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