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.85->1.86 (thorpej): Make sure bus ...



details:   https://anonhg.NetBSD.org/src/rev/0177923d56eb
branches:  netbsd-1-4
changeset: 468870:0177923d56eb
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 23:14:28 1999 +0000

description:
pullup 1.85->1.86 (thorpej): Make sure bus mastering is enabled

diffstat:

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

diffs (22 lines):

diff -r d2a46f606445 -r 0177923d56eb sys/dev/pci/if_de.c
--- a/sys/dev/pci/if_de.c       Mon Jun 21 23:05:19 1999 +0000
+++ b/sys/dev/pci/if_de.c       Mon Jun 21 23:14:28 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_de.c,v 1.83.2.1 1999/04/28 19:08:02 perry Exp $     */
+/*     $NetBSD: if_de.c,v 1.83.2.2 1999/06/21 23:14:28 perry Exp $     */
 
 /*-
  * Copyright (c) 1994-1997 Matt Thomas (matt%3am-software.com@localhost)
@@ -5753,6 +5753,12 @@
            printf(": unable to map device registers\n");
            return;
        }
+
+       /* 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);
     }
 #endif /* __NetBSD__ */
 



Home | Main Index | Thread Index | Old Index