5 #include <linux/init.h>
10 extern void __init pcibios_init_platform(void);
12 static struct ipr_data titan_ipr_map[] = {
13 { TITAN_IRQ_WAN, IRL0_IPR_ADDR, IRL0_IPR_POS, IRL0_PRIORITY },
14 { TITAN_IRQ_LAN, IRL1_IPR_ADDR, IRL1_IPR_POS, IRL1_PRIORITY },
15 { TITAN_IRQ_MPCIA, IRL2_IPR_ADDR, IRL2_IPR_POS, IRL2_PRIORITY },
16 { TITAN_IRQ_USB, IRL3_IPR_ADDR, IRL3_IPR_POS, IRL3_PRIORITY },
19 static void __init init_titan_irq(void)
21 /* enable individual interrupt mode for externals */
22 ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
24 make_ipr_irq(titan_ipr_map, ARRAY_SIZE(titan_ipr_map));
27 struct sh_machine_vector mv_titan __initmv = {
33 .mv_outb = titan_outb,
34 .mv_outw = titan_outw,
35 .mv_outl = titan_outl,
37 .mv_inb_p = titan_inb_p,
38 .mv_inw_p = titan_inw,
39 .mv_inl_p = titan_inl,
40 .mv_outb_p = titan_outb_p,
41 .mv_outw_p = titan_outw,
42 .mv_outl_p = titan_outl,
44 .mv_insl = titan_insl,
45 .mv_outsl = titan_outsl,
47 .mv_ioport_map = titan_ioport_map,
49 .mv_init_irq = init_titan_irq,
50 .mv_init_pci = pcibios_init_platform,