/*---------------------------------------------------------------------------* Project: Cafe OS Core File: OSCore.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 __OSCORE_H__ #define __OSCORE_H__ #define MAX_SYSTEM_CORES 3 #define MAX_CORES_ESPRESSO 3 #define MAX_CORES_BROADWAY 1 #define OS_COREID_0 0 #define OS_COREID_1 1 #define OS_COREID_2 2 #define CACHE_BLOCK_SIZE 32 #define L1_CACHE_LINE_SIZE 32 #define L2_CACHE_LINE_SIZE 64 #define LL_CACHE_FETCH_SIZE 64 // last-level cache fetch size. Can be 32 or 64 bytes. #define PPC_IO_BUFFER_SIZE_MIN LL_CACHE_FETCH_SIZE #define PPC_IO_BUFFER_ALIGN LL_CACHE_FETCH_SIZE #ifndef _ASSEMBLER #include #ifdef __cplusplus extern "C" { #endif u32 OSGetCoreCount(void); u32 OSGetCoreId(void); u32 OSGetMainCoreId(void); BOOL OSIsMainCore(void); #ifdef __cplusplus } #endif #endif // _ASSEMBLER #endif // __OSCORE_H__