patch-2.4.23 linux-2.4.23/arch/sh/kernel/setup_shmse.c
Next file: linux-2.4.23/arch/sh/kernel/sh_ksyms.c
Previous file: linux-2.4.23/arch/sh/kernel/setup_microdev.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/sh/kernel/setup_shmse.c
- Orig date:
2003-08-25 04:44:40.000000000 -0700
diff -urN linux-2.4.22/arch/sh/kernel/setup_shmse.c linux-2.4.23/arch/sh/kernel/setup_shmse.c
@@ -15,6 +15,12 @@
void __init init_shmse_IRQ(void)
{
+ ctrl_outw(0x0028, 0xb0a00000); // mode set [active low].
+ ctrl_outw(0x000a, INTC_ICR1); // IRQ mode; IRQ0,1 enable.
+ /* PC_IRQ[0-3] -> IRQ0 (32) */
+ make_ipr_irq( IRQ0_IRQ, IRQ0_IPR_ADDR, IRQ0_IPR_POS, 0x0f-IRQ0_IRQ);
+ /* A_IRQ[0-3] -> IRQ1 (33) */
+ make_ipr_irq( IRQ1_IRQ, IRQ1_IPR_ADDR, IRQ1_IPR_POS, 0x0f-IRQ1_IRQ);
}
void __init setup_shmse(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)