summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-target.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-17 10:13:56 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-17 10:13:56 +0000
commit1f692e5f55a6493f48ae74b56935623f69daefc6 (patch)
tree78e8bc50b3d14a3b72fa75f64609e154ff3f9c8b /firmware/target/mips/ingenic_jz47xx/system-target.h
parentccf4ce98fd6f5fd76c392774181cad8b051a4f01 (diff)
downloadrockbox-1f692e5f55a6493f48ae74b56935623f69daefc6.tar.gz
rockbox-1f692e5f55a6493f48ae74b56935623f69daefc6.tar.bz2
rockbox-1f692e5f55a6493f48ae74b56935623f69daefc6.zip
1) Set svn:keywords where they should've been set
2) Onda VX747 specific changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18080 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-target.h')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-target.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-target.h b/firmware/target/mips/ingenic_jz47xx/system-target.h
index a84a99173a..c11ad4be1f 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/system-target.h
@@ -18,13 +18,14 @@
* KIND, either express or implied.
*
****************************************************************************/
-
+
+#ifndef __SYSTEM_TARGET_H_
+#define __SYSTEM_TARGET_H_
+
#include "config.h"
#include "jz4740.h"
#include "mipsregs.h"
-/* Core-level interrupt masking */
-
/* This one returns the old status */
#define HIGHEST_IRQ_LEVEL 0
@@ -99,7 +100,14 @@ static inline void restore_interrupt(int status)
#define swap16(x) (((x) & 0xff) << 8 | ((x) >> 8) & 0xff)
#define swap32(x) (((x) & 0xff) << 24 | ((x) & 0xff00) << 8 | ((x) & 0xff0000) >> 8 | ((x) >> 24) & 0xff)
+#define UNCACHED_ADDRESS(addr) ((unsigned int)(addr) | 0xA0000000)
+
+void __dcache_writeback_all(void);
+void __dcache_invalidate_all(void);
+void __icache_invalidate_all(void);
+void __flush_dcache_line(unsigned long addr);
void sti(void);
void cli(void);
-#define UNCACHED_ADDRESS(addr) ((unsigned int)(addr) | 0xA0000000)
+#endif /* __SYSTEM_TARGET_H_ */
+