/*---------------------------------------------------------------------------* 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 #include #include #ifdef __cplusplus extern "C" { #endif //---- entry point type typedef void (*OSEntryPoint) (void); /*---------------------------------------------------------------------------* Name: OSi_Boot Description: boot firm Arguments: rom_header : ROM header Returns: None *---------------------------------------------------------------------------*/ void OSi_Boot( ROM_Header* rom_header ); /*---------------------------------------------------------------------------* 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_FromBromToMenu Description: convert OSFromBromBuf to OSFromFirmBuf Arguments: None Returns: FALSE if FromBrom is broken *---------------------------------------------------------------------------*/ BOOL OSi_FromBromToMenu( 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; } /*---------------------------------------------------------------------------* Name: OSi_GetFromFirmAddr Description: data address from firm to menu Arguments: None Returns: address *---------------------------------------------------------------------------*/ static inline OSFromFirmBuf* OSi_GetFromFirmAddr( void ) { return (OSFromFirmBuf*)HW_FIRM_FROM_FIRM_BUF; } #ifdef __cplusplus } /* extern "C" */ #endif /* FIRM_OS_BOOT_H_ */ #endif