fix a kmap leak in virtio_console
[linux/fpc-iii.git] / arch / arm / mach-realview / core.h
blob602ca5ec52c53a855e3bb6fa8ec2013486d28ba8
1 /*
2 * linux/arch/arm/mach-realview/core.h
4 * Copyright (C) 2004 ARM Limited
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __ASM_ARCH_REALVIEW_H
23 #define __ASM_ARCH_REALVIEW_H
25 #include <linux/amba/bus.h>
26 #include <linux/io.h>
28 #include <asm/setup.h>
30 #define APB_DEVICE(name, busid, base, plat) \
31 static AMBA_APB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat)
33 #define AHB_DEVICE(name, busid, base, plat) \
34 static AMBA_AHB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat)
36 struct machine_desc;
38 extern struct platform_device realview_flash_device;
39 extern struct platform_device realview_cf_device;
40 extern struct platform_device realview_i2c_device;
41 extern struct mmci_platform_data realview_mmc0_plat_data;
42 extern struct mmci_platform_data realview_mmc1_plat_data;
43 extern struct clcd_board clcd_plat_data;
44 extern void __iomem *timer0_va_base;
45 extern void __iomem *timer1_va_base;
46 extern void __iomem *timer2_va_base;
47 extern void __iomem *timer3_va_base;
49 extern void realview_timer_init(unsigned int timer_irq);
50 extern int realview_flash_register(struct resource *res, u32 num);
51 extern int realview_eth_register(const char *name, struct resource *res);
52 extern int realview_usb_register(struct resource *res);
53 extern void realview_init_early(void);
54 extern void realview_fixup(struct tag *tags, char **from,
55 struct meminfo *meminfo);
57 extern struct smp_operations realview_smp_ops;
58 extern void realview_cpu_die(unsigned int cpu);
60 #endif