Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/arm32/pci Pull up revision 1.3 (requested by t...



details:   https://anonhg.NetBSD.org/src/rev/d04a032cb769
branches:  netbsd-1-5
changeset: 490374:d04a032cb769
user:      he <he%NetBSD.org@localhost>
date:      Fri Dec 15 04:23:05 2000 +0000

description:
Pull up revision 1.3 (requested by tsutsui):
  Print which IRQ is used for compatibility interrupts.

diffstat:

 sys/arch/arm32/pci/pciide_machdep.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1d7e78c3ef8b -r d04a032cb769 sys/arch/arm32/pci/pciide_machdep.c
--- a/sys/arch/arm32/pci/pciide_machdep.c       Fri Dec 15 04:20:27 2000 +0000
+++ b/sys/arch/arm32/pci/pciide_machdep.c       Fri Dec 15 04:23:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide_machdep.c,v 1.2 1998/10/05 01:03:52 mark Exp $  */
+/*     $NetBSD: pciide_machdep.c,v 1.2.22.1 2000/12/15 04:23:05 he Exp $       */
 
 /*
  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
@@ -63,10 +63,15 @@
 {
 #if NISA > 0
        int irq;
+       void *cookie;
 
        irq = PCIIDE_COMPAT_IRQ(chan);
-       return (isa_intr_establish(NULL, irq, IST_EDGE, IPL_BIO, func, arg));
-
+       cookie = isa_intr_establish(NULL, irq, IST_EDGE, IPL_BIO, func, arg);
+       if (cookie == NULL)
+               return (NULL);
+       printf("%s: %s channel interrupting at irq %d\n", dev->dv_xname,
+           PCIIDE_CHANNEL_NAME(chan), irq);
+       return (cookie);
 #else
        panic("pciide_machdep_compat_intr_establish() called\n");
 #endif



Home | Main Index | Thread Index | Old Index