Wu Zhangjin | 5e983ff | 2009-07-02 23:23:03 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology |
| 3 | * Author: Wu Zhangjin <wuzj@lemote.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the |
| 7 | * Free Software Foundation; either version 2 of the License, or (at your |
| 8 | * option) any later version. |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | #ifndef __ASM_MACH_LOONGSON_LOONGSON_H |
| 13 | #define __ASM_MACH_LOONGSON_LOONGSON_H |
| 14 | |
| 15 | #include <linux/io.h> |
| 16 | #include <linux/init.h> |
| 17 | |
| 18 | /* there is an internal bonito64-compatiable northbridge in loongson2e/2f */ |
| 19 | #include <asm/mips-boards/bonito64.h> |
| 20 | |
| 21 | /* loongson internal northbridge initialization */ |
| 22 | extern void bonito_irq_init(void); |
| 23 | |
| 24 | /* loongson-based machines specific reboot setup */ |
| 25 | extern void mips_reboot_setup(void); |
| 26 | |
| 27 | /* environment arguments from bootloader */ |
| 28 | extern unsigned long bus_clock, cpu_clock_freq; |
| 29 | extern unsigned long memsize, highmemsize; |
| 30 | |
| 31 | /* loongson-specific command line, env and memory initialization */ |
| 32 | extern void __init prom_init_memory(void); |
| 33 | extern void __init prom_init_cmdline(void); |
| 34 | extern void __init prom_init_env(void); |
| 35 | |
| 36 | #endif /* __ASM_MACH_LOONGSON_LOONGSON_H */ |