1 /*---------------------------------------------------------------------------* 2 Project: OS - Low Level L2 Cache Operations Library 3 File: OSL2.h 4 5 Copyright 1998, 1999 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: OSL2.h,v $ 14 Revision 1.2 2006/02/04 11:56:47 hashida 15 (none) 16 17 Revision 1.1.1.1 2005/12/29 06:53:28 hiratsu 18 Initial import. 19 20 Revision 1.1.1.1 2005/05/12 02:41:07 yasuh-to 21 Ported from dolphin source tree. 22 23 24 3 1999/05/11 4:43p Shiki 25 Refreshed include tree. 26 27 1 1999/04/30 12:49p Tianli01 28 29 1 1999/03/04 2:23p Tianli01 30 Initial check-in to new tree 31 $NoKeywords: $ 32 *---------------------------------------------------------------------------*/ 33 34 /* 35 This header file defines the low level L2 cache operations. 36 Most should be macros to the underlying assembly routines, but 37 others will manipulate hardware setup registers. 38 */ 39 40 #ifndef __OSL2_H__ 41 #define __OSL2_H__ 42 43 #include <revolution/types.h> 44 45 #ifdef __cplusplus 46 extern "C" { 47 #endif 48 49 void L2Enable ( void ); 50 void L2Disable ( void ); 51 void L2GlobalInvalidate ( void ); 52 void L2SetDataOnly ( BOOL dataOnly ); 53 void L2SetWriteThrough ( BOOL writeThrough ); 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif // __OSL2_H__ 60