setup.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Setup for Titan
  3. */
  4. #include <linux/init.h>
  5. #include <asm/irq.h>
  6. #include <asm/titan.h>
  7. #include <asm/io.h>
  8. extern void __init pcibios_init_platform(void);
  9. static void __init init_titan_irq(void)
  10. {
  11. /* enable individual interrupt mode for externals */
  12. ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
  13. make_ipr_irq( TITAN_IRQ_WAN, IRL0_IPR_ADDR, IRL0_IPR_POS, IRL0_PRIORITY); /* PCIRQ0 */
  14. make_ipr_irq( TITAN_IRQ_LAN, IRL1_IPR_ADDR, IRL1_IPR_POS, IRL1_PRIORITY); /* PCIRQ1 */
  15. make_ipr_irq( TITAN_IRQ_MPCIA, IRL2_IPR_ADDR, IRL2_IPR_POS, IRL2_PRIORITY); /* PCIRQ2 */
  16. make_ipr_irq( TITAN_IRQ_USB, IRL3_IPR_ADDR, IRL3_IPR_POS, IRL3_PRIORITY); /* PCIRQ3 */
  17. }
  18. struct sh_machine_vector mv_titan __initmv = {
  19. .mv_name = "Titan",
  20. .mv_inb = titan_inb,
  21. .mv_inw = titan_inw,
  22. .mv_inl = titan_inl,
  23. .mv_outb = titan_outb,
  24. .mv_outw = titan_outw,
  25. .mv_outl = titan_outl,
  26. .mv_inb_p = titan_inb_p,
  27. .mv_inw_p = titan_inw,
  28. .mv_inl_p = titan_inl,
  29. .mv_outb_p = titan_outb_p,
  30. .mv_outw_p = titan_outw,
  31. .mv_outl_p = titan_outl,
  32. .mv_insl = titan_insl,
  33. .mv_outsl = titan_outsl,
  34. .mv_ioport_map = titan_ioport_map,
  35. .mv_init_irq = init_titan_irq,
  36. .mv_init_pci = pcibios_init_platform,
  37. };
  38. ALIAS_MV(titan)