/*---------------------------------------------------------------------------* Project: OS System information File: OSSystemInfo.h Copyright (C) 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. *---------------------------------------------------------------------------*/ #ifndef __OSSYSTEMINFO_H__ #define __OSSYSTEMINFO_H__ #include #ifdef __cplusplus extern "C" { #endif // Global information in the system. // Kernel sets OSSystemInfo. Application only reads it. typedef struct OSSystemInfo { u32 busClockSpeed; u32 coreClockSpeed; OSTime timeBase; // ticks from 2000-01-01 until system reset u32 L2Size[MAX_SYSTEM_CORES]; u32 cpuFreqRatio; } OSSystemInfo; // Static information per application. // Kernel/loader sets OSApplicationInfo. Application only reads it. typedef struct OSApplicationInfo { u32 gamename; u32 applicationType; u32 firmwareVersion; // firmware required by this application. } OSApplicationInfo; OSSystemInfo * OSGetSystemInfo(void); #ifdef __cplusplus } #endif #endif // __OSSYSTEMINFO_H__