diff options
Diffstat (limited to 'target/linux/realtek/files/rtkload/hfload.h')
-rw-r--r-- | target/linux/realtek/files/rtkload/hfload.h | 63 |
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 + |