core.h 2.1 KB

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