patch-2.1.51 linux/include/asm-sparc64/irq.h
Next file: linux/include/asm-sparc64/mmu_context.h
Previous file: linux/include/asm-sparc64/iommu.h
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Sat Aug 16 09:51:10 1997
- Orig file:
v2.1.50/linux/include/asm-sparc64/irq.h
- Orig date:
Mon Apr 14 16:28:22 1997
diff -u --recursive --new-file v2.1.50/linux/include/asm-sparc64/irq.h linux/include/asm-sparc64/irq.h
@@ -1,4 +1,4 @@
-/* $Id: irq.h,v 1.4 1997/04/04 00:50:20 davem Exp $
+/* $Id: irq.h,v 1.6 1997/08/07 08:06:40 davem Exp $
* irq.h: IRQ registers on the 64-bit Sparc.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -9,7 +9,31 @@
#include <linux/linkage.h>
-#include <asm/system.h> /* For NCPUS */
+/* Sparc64 extensions to the interrupt registry flags. Mostly this is
+ * for passing along what bus type the device is on and also the true
+ * format of the dev_id cookie, see below.
+ */
+#define SA_BUSMASK 0x0f000
+#define SA_SBUS 0x01000
+#define SA_PCI 0x02000
+#define SA_FHC 0x03000
+#define SA_EBUS 0x04000
+#define SA_BUS(mask) ((mask) & SA_BUSMASK)
+
+struct devid_cookie {
+ /* Caller specifies these. */
+ void *real_dev_id; /* What dev_id would usually contain. */
+ unsigned int *imap; /* Anonymous IMAP register */
+ unsigned int *iclr; /* Anonymous ICLR register */
+ int pil; /* Anonymous PIL */
+ void *bus_cookie; /* SYSIO regs, PSYCHO regs, etc. */
+
+ /* Return values. */
+ unsigned int ret_ino;
+ unsigned int ret_pil;
+};
+
+#define SA_DCOOKIE 0x10000
#define NR_IRQS 15
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov