Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/pci On alternate Tuesdays, SRM uses a differe...



details:   https://anonhg.NetBSD.org/src/rev/ba90cc1553d8
branches:  trunk
changeset: 507621:ba90cc1553d8
user:      ross <ross%NetBSD.org@localhost>
date:      Tue Mar 27 01:39:51 2001 +0000

description:
On alternate Tuesdays, SRM uses a different method of identifying
PCI interrupts routed to the ISA ICU.

diffstat:

 sys/arch/alpha/pci/pci_550.c |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (47 lines):

diff -r 4d5c65194dd9 -r ba90cc1553d8 sys/arch/alpha/pci/pci_550.c
--- a/sys/arch/alpha/pci/pci_550.c      Tue Mar 27 00:53:43 2001 +0000
+++ b/sys/arch/alpha/pci/pci_550.c      Tue Mar 27 01:39:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_550.c,v 1.20 2001/03/25 06:38:50 ross Exp $ */
+/* $NetBSD: pci_550.c,v 1.21 2001/03/27 01:39:51 ross Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.20 2001/03/25 06:38:50 ross Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.21 2001/03/27 01:39:51 ross Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -120,11 +120,10 @@
 /*
  * Some Miata models, notably models with a Cypress PCI-ISA bridge, have
  * a PCI device (the OHCI USB controller) with interrupts tied to ISA IRQ
- * lines.  This IRQ is encoded as:
- *
- *     line = 0xe0 | isa_irq;
+ * lines.  This IRQ is encoded as: line = FLAG | isa_irq. Usually FLAG
+ * is 0xe0, however, it can be 0xf0.  We don't allow 0xf0 | irq15.
  */
-#define        DEC_550_LINE_IS_ISA(line)       ((line) >= 0xe0 && (line) <= 0xef)
+#define        DEC_550_LINE_IS_ISA(line)       ((line) >= 0xe0 && (line) <= 0xfe)
 #define        DEC_550_LINE_ISA_IRQ(line)      ((line) & 0x0f)
 
 struct alpha_shared_intr *dec_550_pci_intr;
@@ -252,9 +251,11 @@
        }
 #endif
 
-       if (DEC_550_LINE_IS_ISA(line) == 0 && line >= DEC_550_MAX_IRQ)
+       if (DEC_550_LINE_IS_ISA(line) == 0 && line >= DEC_550_MAX_IRQ) {
+               printf("dec_550_intr_map: irq %d out of range %d/%d/%d\n",
+                   line, bus, device, function);
                return (1);
-
+       }
        *ihp = line;
        return (0);
 }



Home | Main Index | Thread Index | Old Index