Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/pci pullup 1.28->1.29 (thorpej): Make sure bus ...



details:   https://anonhg.NetBSD.org/src/rev/d2a46f606445
branches:  netbsd-1-4
changeset: 468869:d2a46f606445
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 23:05:19 1999 +0000

description:
pullup 1.28->1.29 (thorpej): Make sure bus mastering is enabled

diffstat:

 sys/dev/pci/if_fpa.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r b273e6c9fbfb -r d2a46f606445 sys/dev/pci/if_fpa.c
--- a/sys/dev/pci/if_fpa.c      Mon Jun 21 23:03:07 1999 +0000
+++ b/sys/dev/pci/if_fpa.c      Mon Jun 21 23:05:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_fpa.c,v 1.28 1998/08/13 02:10:53 eeh Exp $  */
+/*     $NetBSD: if_fpa.c,v 1.28.6.1 1999/06/21 23:05:19 perry Exp $    */
 
 /*-
  * Copyright (c) 1995, 1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -467,6 +467,13 @@
     }
 
     sc->sc_dmatag = pa->pa_dmat;
+
+    /* Make sure bus mastering is enabled. */
+    pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+                  pci_conf_read(pa->pa_pc, pa->pa_tag,
+                                PCI_COMMAND_STATUS_REG) |
+                  PCI_COMMAND_MASTER_ENABLE);
+
     sc->sc_pdq = pdq_initialize(sc->sc_csrtag, sc->sc_membase,
                                sc->sc_if.if_xname, 0,
                                (void *) sc, PDQ_DEFPA);



Home | Main Index | Thread Index | Old Index