00001 /*--------------------------------------------------------------------------------- 00002 $Id: cache.h,v 1.8 2008-02-12 00:45:58 wntrmute Exp $ 00003 00004 key input code -- provides slightly higher level input forming 00005 00006 Copyright (C) 2005 00007 Michael Noland (joat) 00008 Jason Rogers (dovoto) 00009 Dave Murphy (WinterMute) 00010 00011 This software is provided 'as-is', without any express or implied 00012 warranty. In no event will the authors be held liable for any 00013 damages arising from the use of this software. 00014 00015 Permission is granted to anyone to use this software for any 00016 purpose, including commercial applications, and to alter it and 00017 redistribute it freely, subject to the following restrictions: 00018 00019 1. The origin of this software must not be misrepresented; you 00020 must not claim that you wrote the original software. If you use 00021 this software in a product, an acknowledgment in the product 00022 documentation would be appreciated but is not required. 00023 2. Altered source versions must be plainly marked as such, and 00024 must not be misrepresented as being the original software. 00025 3. This notice may not be removed or altered from any source 00026 distribution. 00027 00028 ---------------------------------------------------------------------------------*/ 00033 #ifndef _cache_h_ 00034 #define _cache_h_ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 #include "nds/ndstypes.h" 00041 00042 00046 void IC_InvalidateAll(); 00047 00048 00054 void IC_InvalidateRange(const void *base, u32 size); 00055 00056 00060 void DC_FlushAll(); 00061 00062 00068 void DC_FlushRange(const void *base, u32 size); 00069 00070 00074 void DC_InvalidateAll(); 00075 00076 00082 void DC_InvalidateRange(const void *base, u32 size); 00083 00084 #ifdef __cplusplus 00085 } 00086 #endif 00087 00088 #endif