aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorWu Zhangjin <wuzj@lemote.com>2009-07-02 11:23:03 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 14:07:46 -0400
commit5e983ff654ca3df3007b5b558b5271bb4622afa4 (patch)
treef15edfeb1df8e0b1874adec3e09a4fc1c58d59f2 /arch/mips/include
parentbd92aa013e8fcd17328ec8e060477761cf3380d9 (diff)
MIPS: Loongson: clean up the coding style
With the help of script/checkpatch.pl, i have cleaned up the coding style. 1. remove un-needed header files and tune some comments. 2. remove some un-needed { } add a new header file loongson.h: 3. move some common header files to loongson.h 4. move some common extern declartions to loongson.h and this new header file is needed for future loongson2f support. Signed-off-by: Wu Zhangjin <wuzj@lemote.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/mach-lemote/loongson.h36
-rw-r--r--arch/mips/include/asm/mach-lemote/pci.h8
2 files changed, 41 insertions, 3 deletions
diff --git a/arch/mips/include/asm/mach-lemote/loongson.h b/arch/mips/include/asm/mach-lemote/loongson.h
new file mode 100644
index 000000000000..76cc2bddfa43
--- /dev/null
+++ b/arch/mips/include/asm/mach-lemote/loongson.h
@@ -0,0 +1,36 @@
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 */
22extern void bonito_irq_init(void);
23
24/* loongson-based machines specific reboot setup */
25extern void mips_reboot_setup(void);
26
27/* environment arguments from bootloader */
28extern unsigned long bus_clock, cpu_clock_freq;
29extern unsigned long memsize, highmemsize;
30
31/* loongson-specific command line, env and memory initialization */
32extern void __init prom_init_memory(void);
33extern void __init prom_init_cmdline(void);
34extern void __init prom_init_env(void);
35
36#endif /* __ASM_MACH_LOONGSON_LOONGSON_H */
diff --git a/arch/mips/include/asm/mach-lemote/pci.h b/arch/mips/include/asm/mach-lemote/pci.h
index 0307e4935267..92b2f59d890f 100644
--- a/arch/mips/include/asm/mach-lemote/pci.h
+++ b/arch/mips/include/asm/mach-lemote/pci.h
@@ -19,11 +19,13 @@
19 * 02139, USA. 19 * 02139, USA.
20 */ 20 */
21 21
22#ifndef _LEMOTE_PCI_H_ 22#ifndef __ASM_MACH_LEMOTE_PCI_H_
23#define _LEMOTE_PCI_H_ 23#define __ASM_MACH_LEMOTE_PCI_H_
24
25extern struct pci_ops bonito64_pci_ops;
24 26
25#define LOONGSON2E_PCI_MEM_START 0x14000000UL 27#define LOONGSON2E_PCI_MEM_START 0x14000000UL
26#define LOONGSON2E_PCI_MEM_END 0x1fffffffUL 28#define LOONGSON2E_PCI_MEM_END 0x1fffffffUL
27#define LOONGSON2E_PCI_IO_START 0x00004000UL 29#define LOONGSON2E_PCI_IO_START 0x00004000UL
28 30
29#endif /* !_LEMOTE_PCI_H_ */ 31#endif /* !__ASM_MACH_LEMOTE_PCI_H_ */