Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus (cardbus_attach_card): don't mask everything...



details:   https://anonhg.NetBSD.org/src/rev/cf3619b7a41c
branches:  trunk
changeset: 477677:cf3619b7a41c
user:      joda <joda%NetBSD.org@localhost>
date:      Wed Oct 27 14:01:04 1999 +0000

description:
(cardbus_attach_card): don't mask everything *but* the latency timer

diffstat:

 sys/dev/cardbus/cardbus.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a7af3ac97af3 -r cf3619b7a41c sys/dev/cardbus/cardbus.c
--- a/sys/dev/cardbus/cardbus.c Wed Oct 27 13:20:34 1999 +0000
+++ b/sys/dev/cardbus/cardbus.c Wed Oct 27 14:01:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cardbus.c,v 1.4 1999/10/27 09:29:18 haya Exp $ */
+/*     $NetBSD: cardbus.c,v 1.5 1999/10/27 14:01:04 joda Exp $ */
 
 /*
  * Copyright (c) 1997, 1998 and 1999
@@ -234,7 +234,7 @@
   
   bhlc = cardbus_conf_read(cc, cf, tag, CARDBUS_BHLC_REG);
   if (CARDBUS_LATTIMER(bhlc) < 0x10) {
-    bhlc &= (CARDBUS_LATTIMER_MASK << CARDBUS_LATTIMER_SHIFT);
+    bhlc &= ~(CARDBUS_LATTIMER_MASK << CARDBUS_LATTIMER_SHIFT);
     bhlc |= (0x10 << CARDBUS_LATTIMER_SHIFT);
     cardbus_conf_write(cc, cf, tag, CARDBUS_BHLC_REG, bhlc);
   }



Home | Main Index | Thread Index | Old Index