Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus Do a CARDBUS_BM_ENABLE just to be sure.



details:   https://anonhg.NetBSD.org/src/rev/2b68789d5aa3
branches:  trunk
changeset: 481277:2b68789d5aa3
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Jan 25 15:29:43 2000 +0000

description:
Do a CARDBUS_BM_ENABLE just to be sure.

diffstat:

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

diffs (24 lines):

diff -r 1a465653a166 -r 2b68789d5aa3 sys/dev/cardbus/if_tlp_cardbus.c
--- a/sys/dev/cardbus/if_tlp_cardbus.c  Tue Jan 25 14:43:49 2000 +0000
+++ b/sys/dev/cardbus/if_tlp_cardbus.c  Tue Jan 25 15:29:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlp_cardbus.c,v 1.7 2000/01/25 03:44:27 thorpej Exp $       */
+/*     $NetBSD: if_tlp_cardbus.c,v 1.8 2000/01/25 15:29:43 mycroft Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -297,11 +297,12 @@
 
        /* Make sure the right access type is on the CardBus bridge. */
        (*ct->ct_cf->cardbus_ctrl)(cc, csc->sc_cbenable);
+       (*ct->ct_cf->cardbus_ctrl)(cc, CARDBUS_BM_ENABLE);
 
        /* Enable the appropriate bits in the PCI CSR. */
        reg = cardbus_conf_read(cc, cf, ca->ca_tag, PCI_COMMAND_STATUS_REG);
-       reg = (reg & ~(PCI_COMMAND_IO_ENABLE|PCI_COMMAND_MEM_ENABLE)) |
-           csc->sc_csr;
+       reg &= ~(PCI_COMMAND_IO_ENABLE|PCI_COMMAND_MEM_ENABLE);
+       reg |= csc->sc_csr;
        cardbus_conf_write(cc, cf, ca->ca_tag, PCI_COMMAND_STATUS_REG, reg);
 
        /*



Home | Main Index | Thread Index | Old Index