core.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * linux/arch/arm/mach-versatile/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_VERSATILE_H
  22. #define __ASM_ARCH_VERSATILE_H
  23. #include <linux/amba/bus.h>
  24. extern void __init versatile_init(void);
  25. extern void __init versatile_init_irq(void);
  26. extern void __init versatile_map_io(void);
  27. extern struct sys_timer versatile_timer;
  28. extern unsigned int mmc_status(struct device *dev);
  29. #define AMBA_DEVICE(name,busid,base,plat) \
  30. static struct amba_device name##_device = { \
  31. .dev = { \
  32. .coherent_dma_mask = ~0, \
  33. .bus_id = busid, \
  34. .platform_data = plat, \
  35. }, \
  36. .res = { \
  37. .start = VERSATILE_##base##_BASE, \
  38. .end = (VERSATILE_##base##_BASE) + SZ_4K - 1,\
  39. .flags = IORESOURCE_MEM, \
  40. }, \
  41. .dma_mask = ~0, \
  42. .irq = base##_IRQ, \
  43. /* .dma = base##_DMA,*/ \
  44. }
  45. #endif