summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/rtkload/hfload.h
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/rtkload/hfload.h
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/rtkload/hfload.h')
-rw-r--r--target/linux/realtek/files/rtkload/hfload.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/target/linux/realtek/files/rtkload/hfload.h b/target/linux/realtek/files/rtkload/hfload.h
new file mode 100644
index 000000000..a9da81e0f
--- /dev/null
+++ b/target/linux/realtek/files/rtkload/hfload.h
@@ -0,0 +1,63 @@
+/* hfload.h
+ *
+ * This file is subject to the terms and conditions of the GNU
+ * General Public License. See the file "COPYING" in the main
+ * directory of this archive for more details.
+ *
+ * Copyright (C) 2000, Jay Carlson
+ */
+
+#ifndef HELLOAD_H
+#define HELLOAD_H
+
+//sc_yang
+//#include <linux/config.h>
+#include <linux/autoconf.h>
+#ifdef EMBEDDED
+#include <linux/string.h>
+#define printf prom_printf
+#else
+#include <string.h>
+#endif
+
+
+#ifdef LANGUAGE_C
+extern int file_offset;
+#endif
+
+
+#ifdef COMPRESSED_KERNEL
+ #define UNCOMPRESS_OUT 0x80000000
+#if 0
+#ifndef boot32
+ #define FREEMEM_START 0x80680000
+ #define FREEMEM_END 0x80800000
+#else
+ #define FREEMEM_START 0x80a00000
+ #define FREEMEM_END 0x81000000
+#endif
+#endif //sc_yang
+//Brad comment, since rtl865x platform use 16M && define CONFIG_RTL_GW_8M
+//#if (defined(CONFIG_RTL8186_AP) || defined(CONFIG_RTL8186_GW_8M) || defined(CONFIG_RTL8186_KB))
+#if (defined(CONFIG_RTL8186_AP) || defined(CONFIG_RTL8186_KB) || defined(CONFIG_RTL865X_PANAHOST))
+ #define FREEMEM_END 0x80800000
+#else
+ #define FREEMEM_END 0x81000000
+#endif
+#endif
+
+#ifdef CONFIG_RTK_VOIP
+ #undef FREEMEM_END
+ #define FREEMEM_END 0x81000000
+#endif
+
+// david -----------------
+#ifdef BZ2_COMPRESS
+ #define prom_printf
+ #undef FREEMEM_START
+ #define FREEMEM_START 0x80500000
+#endif
+//-----------------------
+
+#endif
+