machvec.c (b42f5b0f0fd8c1c442c1b29a3fbcb338e8bd7732) | machvec.c (86e4dd5add77ab809f5427391dfabb8f78cbcb58) |
---|---|
1/* 2 * arch/sh/kernel/machvec.c 3 * 4 * The SuperH machine vector setup handlers, yanked from setup.c 5 * 6 * Copyright (C) 1999 Niibe Yutaka 7 * Copyright (C) 2002 - 2007 Paul Mundt 8 * --- 104 unchanged lines hidden (view full) --- 113 * Manually walk the vec, fill in anything that the board hasn't yet 114 * by hand, wrapping to the generic implementation. 115 */ 116#define mv_set(elem) do { \ 117 if (!sh_mv.mv_##elem) \ 118 sh_mv.mv_##elem = generic_##elem; \ 119} while (0) 120 | 1/* 2 * arch/sh/kernel/machvec.c 3 * 4 * The SuperH machine vector setup handlers, yanked from setup.c 5 * 6 * Copyright (C) 1999 Niibe Yutaka 7 * Copyright (C) 2002 - 2007 Paul Mundt 8 * --- 104 unchanged lines hidden (view full) --- 113 * Manually walk the vec, fill in anything that the board hasn't yet 114 * by hand, wrapping to the generic implementation. 115 */ 116#define mv_set(elem) do { \ 117 if (!sh_mv.mv_##elem) \ 118 sh_mv.mv_##elem = generic_##elem; \ 119} while (0) 120 |
121#ifdef CONFIG_HAS_IOPORT 122 123#ifdef P2SEG 124 __set_io_port_base(P2SEG); 125#else 126 __set_io_port_base(0); 127#endif 128 |
|
121 mv_set(inb); mv_set(inw); mv_set(inl); 122 mv_set(outb); mv_set(outw); mv_set(outl); 123 124 mv_set(inb_p); mv_set(inw_p); mv_set(inl_p); 125 mv_set(outb_p); mv_set(outw_p); mv_set(outl_p); 126 127 mv_set(insb); mv_set(insw); mv_set(insl); 128 mv_set(outsb); mv_set(outsw); mv_set(outsl); 129 130 mv_set(ioport_map); 131 mv_set(ioport_unmap); | 129 mv_set(inb); mv_set(inw); mv_set(inl); 130 mv_set(outb); mv_set(outw); mv_set(outl); 131 132 mv_set(inb_p); mv_set(inw_p); mv_set(inl_p); 133 mv_set(outb_p); mv_set(outw_p); mv_set(outl_p); 134 135 mv_set(insb); mv_set(insw); mv_set(insl); 136 mv_set(outsb); mv_set(outsw); mv_set(outsl); 137 138 mv_set(ioport_map); 139 mv_set(ioport_unmap); |
140 141#endif 142 |
|
132 mv_set(irq_demux); 133 mv_set(mode_pins); 134 mv_set(mem_init); 135 136 if (!sh_mv.mv_nr_irqs) 137 sh_mv.mv_nr_irqs = NR_IRQS; | 143 mv_set(irq_demux); 144 mv_set(mode_pins); 145 mv_set(mem_init); 146 147 if (!sh_mv.mv_nr_irqs) 148 sh_mv.mv_nr_irqs = NR_IRQS; |
138 139#ifdef P2SEG 140 __set_io_port_base(P2SEG); 141#else 142 __set_io_port_base(0); 143#endif | |
144} | 149} |