Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Make sure bus mastering is enabled.
details: https://anonhg.NetBSD.org/src/rev/a9d6c4dbddab
branches: trunk
changeset: 467381:a9d6c4dbddab
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Mar 23 23:18:50 1999 +0000
description:
Make sure bus mastering is enabled.
diffstat:
sys/dev/pci/if_fxp.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r c3d46260e983 -r a9d6c4dbddab sys/dev/pci/if_fxp.c
--- a/sys/dev/pci/if_fxp.c Tue Mar 23 23:02:14 1999 +0000
+++ b/sys/dev/pci/if_fxp.c Tue Mar 23 23:18:50 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_fxp.c,v 1.32 1999/02/28 17:08:52 explorer Exp $ */
+/* $NetBSD: if_fxp.c,v 1.33 1999/03/23 23:18:50 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -326,6 +326,11 @@
printf(": Intel EtherExpress Pro 10+/100B Ethernet\n");
+ /* Make sure bus-mastering is enabled. */
+ pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+ pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) |
+ PCI_COMMAND_MASTER_ENABLE);
+
/*
* Allocate our interrupt.
*/
Home |
Main Index |
Thread Index |
Old Index