patch-2.2.8 linux/include/asm-ppc/irq.h
Next file: linux/include/asm-ppc/keyboard.h
Previous file: linux/include/asm-ppc/io.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Apr 29 12:39:01 1999
- Orig file:
v2.2.7/linux/include/asm-ppc/irq.h
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.7/linux/include/asm-ppc/irq.h linux/include/asm-ppc/irq.h
@@ -3,7 +3,7 @@
#ifndef _ASM_IRQ_H
#define _ASM_IRQ_H
-#include <asm/processor.h> /* for is_prep() */
+#include <asm/machdep.h> /* ppc_md */
extern void disable_irq(unsigned int);
extern void enable_irq(unsigned int);
@@ -42,7 +42,14 @@
*/
static __inline__ int irq_cannonicalize(int irq)
{
- return (((is_prep || is_chrp) && irq == 2) ? 9 : irq);
+ if (ppc_md.irq_cannonicalize)
+ {
+ return ppc_md.irq_cannonicalize(irq);
+ }
+ else
+ {
+ return irq;
+ }
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)