patch-1.3.44 linux/include/asm-sparc/irq.h
Next file: linux/include/asm-sparc/kdebug.h
Previous file: linux/include/asm-sparc/ipsum.h
Back to the patch index
Back to the overall index
- Lines: 68
- Date:
Sat Nov 25 04:31:54 1995
- Orig file:
v1.3.43/linux/include/asm-sparc/irq.h
- Orig date:
Tue Jun 27 14:11:45 1995
diff -u --recursive --new-file v1.3.43/linux/include/asm-sparc/irq.h linux/include/asm-sparc/irq.h
@@ -1,19 +1,23 @@
-#ifndef _ALPHA_IRQ_H
-#define _ALPHA_IRQ_H
-
-/*
- * linux/include/asm-sparc/irq.h
+/* $Id: irq.h,v 1.8 1995/11/25 02:31:54 davem Exp $
+ * irq.h: IRQ registers on the Sparc.
*
- * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
+ * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
+#ifndef _SPARC_IRQ_H
+#define _SPARC_IRQ_H
+
#include <linux/linkage.h>
#include <asm/system.h> /* For NCPUS */
+#define NR_IRQS 15
+
extern void disable_irq(unsigned int);
extern void enable_irq(unsigned int);
+extern int request_fast_irq(unsigned int irq, void (*handler)(int, struct pt_regs *), unsigned long flags, const char *devname);
+
/* On the sun4m, just like the timers, we have both per-cpu and master
* interrupt registers.
*/
@@ -64,37 +68,5 @@
#define SUN4M_INT_ENABLE 0x80000000
#define SUN4M_INT_E14 0x00000080
#define SUN4M_INT_E10 0x00080000
-
-#if 0 /* These aren't used on the Sparc (yet), but kept for
- * future reference, they could come in handy.
- */
-#define __STR(x) #x
-#define STR(x) __STR(x)
-
-#define SAVE_ALL "xx"
-
-#define SAVE_MOST "yy"
-
-#define RESTORE_MOST "zz"
-
-#define ACK_FIRST(mask) "aa"
-
-#define ACK_SECOND(mask) "dummy"
-
-#define UNBLK_FIRST(mask) "dummy"
-
-#define UNBLK_SECOND(mask) "dummy"
-
-#define IRQ_NAME2(nr) nr##_interrupt(void)
-#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
-#define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr)
-#define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr)
-
-#define BUILD_IRQ(chip,nr,mask) \
-asmlinkage void IRQ_NAME(nr); \
-asmlinkage void FAST_IRQ_NAME(nr); \
-asmlinkage void BAD_IRQ_NAME(nr); \
-asm code comes here
-#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this