core.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * linux/arch/arm/mach-realview/core.h
  3. *
  4. * Copyright (C) 2004 ARM Limited
  5. * Copyright (C) 2000 Deep Blue Solutions Ltd
  6. *
  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.
  11. *
  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.
  16. *
  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
  20. */
  21. #ifndef __ASM_ARCH_REALVIEW_H
  22. #define __ASM_ARCH_REALVIEW_H
  23. #include <linux/amba/bus.h>
  24. #include <linux/io.h>
  25. #include <asm/setup.h>
  26. #include <asm/leds.h>
  27. #define AMBA_DEVICE(name,busid,base,plat) \
  28. static struct amba_device name##_device = { \
  29. .dev = { \
  30. .coherent_dma_mask = ~0, \
  31. .init_name = busid, \
  32. .platform_data = plat, \
  33. }, \
  34. .res = { \
  35. .start = REALVIEW_##base##_BASE, \
  36. .end = (REALVIEW_##base##_BASE) + SZ_4K - 1, \
  37. .flags = IORESOURCE_MEM, \
  38. }, \
  39. .dma_mask = ~0, \
  40. .irq = base##_IRQ, \
  41. }
  42. struct machine_desc;
  43. extern struct platform_device realview_flash_device;
  44. extern struct platform_device realview_cf_device;
  45. extern struct platform_device realview_i2c_device;
  46. extern struct mmci_platform_data realview_mmc0_plat_data;
  47. extern struct mmci_platform_data realview_mmc1_plat_data;
  48. extern struct clcd_board clcd_plat_data;
  49. extern void __iomem *timer0_va_base;
  50. extern void __iomem *timer1_va_base;
  51. extern void __iomem *timer2_va_base;
  52. extern void __iomem *timer3_va_base;
  53. extern void realview_leds_event(led_event_t ledevt);
  54. extern void realview_timer_init(unsigned int timer_irq);
  55. extern int realview_flash_register(struct resource *res, u32 num);
  56. extern int realview_eth_register(const char *name, struct resource *res);
  57. extern int realview_usb_register(struct resource *res);
  58. extern void realview_init_early(void);
  59. extern void realview_fixup(struct machine_desc *mdesc, struct tag *tags,
  60. char **from, struct meminfo *meminfo);
  61. extern void (*realview_reset)(char);
  62. #endif