core.h 562 B

12345678910111213141516171819202122
  1. #define AMBA_DEVICE(name,busid,base,plat) \
  2. struct amba_device name##_device = { \
  3. .dev = { \
  4. .coherent_dma_mask = ~0UL, \
  5. .init_name = busid, \
  6. .platform_data = plat, \
  7. }, \
  8. .res = { \
  9. .start = base, \
  10. .end = base + SZ_4K - 1, \
  11. .flags = IORESOURCE_MEM, \
  12. }, \
  13. .dma_mask = ~0UL, \
  14. .irq = IRQ_##base, \
  15. /* .dma = DMA_##base,*/ \
  16. }
  17. /* 2MB large area for motherboard's peripherals static mapping */
  18. #define V2M_PERIPH 0xf8000000
  19. /* Tile's peripherals static mappings should start here */
  20. #define V2T_PERIPH 0xf8200000