patch-2.3.16 linux/include/asm-sh/irq.h

Next file: linux/include/asm-sh/mman.h
Previous file: linux/include/asm-sh/ipc.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/include/asm-sh/irq.h linux/include/asm-sh/irq.h
@@ -0,0 +1,35 @@
+#ifndef __ASM_SH_IRQ_H
+#define __ASM_SH_IRQ_H
+
+/*
+ *
+ * linux/include/asm-sh/irq.h
+ *
+ * Copyright (C) 1999  Niibe Yutaka
+ *
+ */
+
+#define TIMER_IRQ		16	/* Hard-wired */
+#define TIMER_IRP_OFFSET	12
+#define TIMER_PRIORITY		 1
+
+/*
+ * 40 = 24+16
+ *
+ * 24 for on chip support modules.
+ * 16 for external interrupts.
+ *
+ */
+#define NR_IRQS	40
+
+extern void disable_irq(unsigned int);
+extern void disable_irq_nosync(unsigned int);
+extern void enable_irq(unsigned int);
+
+/*
+ * Function for "on chip support modules".
+ */
+extern void set_ipr_data(unsigned int irq, int offset, int priority);
+extern void make_onChip_irq(unsigned int irq);
+
+#endif /* __ASM_SH_IRQ_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)