Theme Editor: Added Show Viewports option to device configuration panel, implemented...
[kugel-rb.git] / firmware / target / mips / mmu-mips.h
blobf3d35f606df929497319b76b9ccbd40f4348159a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2009 by Maurus Cuelenaere
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __MMU_MIPS_INCLUDE_H
23 #define __MMU_MIPS_INCLUDE_H
25 #include "system-target.h"
27 void map_address(unsigned long virtual, unsigned long physical,
28 unsigned long length, unsigned int cache_flags);
29 void mmu_init(void);
31 #define HAVE_CPUCACHE_INVALIDATE
32 //#define HAVE_CPUCACHE_FLUSH
34 void __dcache_writeback_all(void);
35 void __dcache_invalidate_all(void);
36 void __icache_invalidate_all(void);
37 void __flush_dcache_line(unsigned long addr);
38 void dma_cache_wback_inv(unsigned long addr, unsigned long size);
40 #endif /* __MMU_MIPS_INCLUDE_H */