Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add DELAY(40) after turning on write DMA state m...
details: https://anonhg.NetBSD.org/src/rev/40f1c6f4ed7e
branches: trunk
changeset: 785293:40f1c6f4ed7e
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Mar 07 10:57:01 2013 +0000
description:
Add DELAY(40) after turning on write DMA state machine.
diffstat:
sys/dev/pci/if_bge.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 9bba917a6616 -r 40f1c6f4ed7e sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Thu Mar 07 09:24:24 2013 +0000
+++ b/sys/dev/pci/if_bge.c Thu Mar 07 10:57:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.212 2013/03/07 09:24:24 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.213 2013/03/07 10:57:01 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.212 2013/03/07 09:24:24 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.213 2013/03/07 10:57:01 msaitoh Exp $");
#include "vlan.h"
@@ -2345,7 +2345,8 @@
val |= BGE_WDMAMODE_BURST_ALL_DATA;
/* Turn on write DMA state machine */
- CSR_WRITE_4(sc, BGE_WDMA_MODE, val);
+ CSR_WRITE_4_FLUSH(sc, BGE_WDMA_MODE, val);
+ DELAY(40);
val = BGE_RDMAMODE_ENABLE | BGE_RDMAMODE_ALL_ATTNS;
if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5784 ||
Home |
Main Index |
Thread Index |
Old Index