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 Report which compatibility IRQ the PCI ID...



details:   https://anonhg.NetBSD.org/src/rev/5ebd07f784c1
branches:  trunk
changeset: 487304:5ebd07f784c1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jun 06 00:50:15 2000 +0000

description:
Report which compatibility IRQ the PCI IDE gets.

diffstat:

 sys/arch/alpha/pci/pci_550.c    |  8 ++++++--
 sys/arch/alpha/pci/pci_6600.c   |  8 ++++++--
 sys/arch/alpha/pci/pci_eb164.c  |  8 ++++++--
 sys/arch/alpha/pci/pci_up1000.c |  8 ++++++--
 4 files changed, 24 insertions(+), 8 deletions(-)

diffs (116 lines):

diff -r 44f7aa57527c -r 5ebd07f784c1 sys/arch/alpha/pci/pci_550.c
--- a/sys/arch/alpha/pci/pci_550.c      Tue Jun 06 00:47:21 2000 +0000
+++ b/sys/arch/alpha/pci/pci_550.c      Tue Jun 06 00:50:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_550.c,v 1.16 2000/06/05 21:47:22 thorpej Exp $ */
+/* $NetBSD: pci_550.c,v 1.17 2000/06/06 00:50:15 thorpej 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.16 2000/06/05 21:47:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.17 2000/06/06 00:50:15 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -393,6 +393,10 @@
 #if NSIO
        cookie = sio_intr_establish(NULL /*XXX*/, irq, IST_EDGE, IPL_BIO,
            func, arg);
+       if (cookie == NULL)
+               return (NULL);
+       printf("%s: %s channel interrupting at %s\n", dev->dv_xname,
+           PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq));
 #endif
        return (cookie);
 }
diff -r 44f7aa57527c -r 5ebd07f784c1 sys/arch/alpha/pci/pci_6600.c
--- a/sys/arch/alpha/pci/pci_6600.c     Tue Jun 06 00:47:21 2000 +0000
+++ b/sys/arch/alpha/pci/pci_6600.c     Tue Jun 06 00:50:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_6600.c,v 1.4 2000/06/05 21:47:23 thorpej Exp $ */
+/* $NetBSD: pci_6600.c,v 1.5 2000/06/06 00:50:15 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999 by Ross Harvey.  All rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.4 2000/06/05 21:47:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.5 2000/06/06 00:50:15 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -355,6 +355,10 @@
 #if NSIO
        cookie = sio_intr_establish(NULL /*XXX*/, irq, IST_EDGE, IPL_BIO,
            func, arg);
+       if (cookie == NULL)
+               return (NULL);
+       printf("%s: %s channel interrupting at %s\n", dev->dv_xname,
+           PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq));
 #endif
        return (cookie);
 }
diff -r 44f7aa57527c -r 5ebd07f784c1 sys/arch/alpha/pci/pci_eb164.c
--- a/sys/arch/alpha/pci/pci_eb164.c    Tue Jun 06 00:47:21 2000 +0000
+++ b/sys/arch/alpha/pci/pci_eb164.c    Tue Jun 06 00:50:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_eb164.c,v 1.26 2000/06/05 21:47:24 thorpej Exp $ */
+/* $NetBSD: pci_eb164.c,v 1.27 2000/06/06 00:50:15 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.26 2000/06/05 21:47:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.27 2000/06/06 00:50:15 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -349,6 +349,10 @@
 #if NSIO
        cookie = sio_intr_establish(NULL /*XXX*/, irq, IST_EDGE, IPL_BIO,
            func, arg);
+       if (cookie == NULL)
+               return (NULL);
+       printf("%s: %s channel interrupting at %s\n", dev->dv_xname,
+           PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq));
 #endif
        return (cookie);
 }
diff -r 44f7aa57527c -r 5ebd07f784c1 sys/arch/alpha/pci/pci_up1000.c
--- a/sys/arch/alpha/pci/pci_up1000.c   Tue Jun 06 00:47:21 2000 +0000
+++ b/sys/arch/alpha/pci/pci_up1000.c   Tue Jun 06 00:50:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_up1000.c,v 1.3 2000/06/05 21:47:28 thorpej Exp $ */
+/* $NetBSD: pci_up1000.c,v 1.4 2000/06/06 00:50:15 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pci_up1000.c,v 1.3 2000/06/05 21:47:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_up1000.c,v 1.4 2000/06/06 00:50:15 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -208,6 +208,10 @@
 #if NSIO
        cookie = sio_intr_establish(NULL /*XXX*/, irq, IST_EDGE, IPL_BIO,
            func, arg);
+       if (cookie == NULL)
+               return (NULL);
+       printf("%s: %s channel interrupting at %s\n", dev->dv_xname,
+           PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq));
 #endif
        return (cookie);
 }



Home | Main Index | Thread Index | Old Index