Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Do not mask/unmask interrupts on IPAC to clear th...



details:   https://anonhg.NetBSD.org/src/rev/9e0116d1c296
branches:  trunk
changeset: 526281:9e0116d1c296
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Apr 30 12:56:51 2002 +0000

description:
Do not mask/unmask interrupts on IPAC to clear the interrupt status.

It is unclear if this realy is needed and if, on which type of cards. I
haven't run accross a card that needs it yet.  This may have been just
a copy & pasto from the ISAC interrupt handler carried over to IPAC.

diffstat:

 sys/dev/ic/isic.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 301215a3e7ce -r 9e0116d1c296 sys/dev/ic/isic.c
--- a/sys/dev/ic/isic.c Tue Apr 30 12:33:32 2002 +0000
+++ b/sys/dev/ic/isic.c Tue Apr 30 12:56:51 2002 +0000
@@ -27,14 +27,14 @@
  *     i4b_isic.c - global isic stuff
  *     ==============================
  *
- *     $Id: isic.c,v 1.16 2002/04/29 13:42:42 martin Exp $ 
+ *     $Id: isic.c,v 1.17 2002/04/30 12:56:51 martin Exp $ 
  *
  *      last edit-date: [Fri Jan  5 11:36:10 2001]
  *
  *---------------------------------------------------------------------------*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isic.c,v 1.16 2002/04/29 13:42:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isic.c,v 1.17 2002/04/30 12:56:51 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/ioccom.h>
@@ -211,9 +211,16 @@
                                break;
                }
 
+#if 0
+               /*
+                * This seems not to be necessary on IPACs - no idea why
+                * it is here - but due to limit range of test cards, leave
+                * it in for now, in case we have to resurrect it.
+                */
                IPAC_WRITE(IPAC_MASK, 0xff);
                DELAY(50);
                IPAC_WRITE(IPAC_MASK, 0xc0);
+#endif
 
                return(was_ipac_irq);
        }               



Home | Main Index | Thread Index | Old Index