Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Duh, acctually use all 64-bits when giving the r...
details: https://anonhg.NetBSD.org/src/rev/35cba31bfe06
branches: trunk
changeset: 969815:35cba31bfe06
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Mar 02 15:13:23 2020 +0000
description:
Duh, acctually use all 64-bits when giving the rings to the chip.
diffstat:
sys/dev/pci/if_stge.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r baf3e7cfd2ef -r 35cba31bfe06 sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c Mon Mar 02 14:18:50 2020 +0000
+++ b/sys/dev/pci/if_stge.c Mon Mar 02 15:13:23 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_stge.c,v 1.82 2020/03/01 16:31:01 thorpej Exp $ */
+/* $NetBSD: if_stge.c,v 1.83 2020/03/02 15:13:23 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.82 2020/03/01 16:31:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.83 2020/03/02 15:13:23 thorpej Exp $");
#include <sys/param.h>
@@ -1593,11 +1593,13 @@
/*
* Give the transmit and receive ring to the chip.
*/
- CSR_WRITE_4(sc, STGE_TFDListPtrHi, 0); /* NOTE: 32-bit DMA */
+ CSR_WRITE_4(sc, STGE_TFDListPtrHi,
+ ((uint64_t)STGE_CDTXADDR(sc, sc->sc_txdirty)) >> 32);
CSR_WRITE_4(sc, STGE_TFDListPtrLo,
STGE_CDTXADDR(sc, sc->sc_txdirty));
- CSR_WRITE_4(sc, STGE_RFDListPtrHi, 0); /* NOTE: 32-bit DMA */
+ CSR_WRITE_4(sc, STGE_RFDListPtrHi,
+ ((uint64_t)STGE_CDRXADDR(sc, sc->sc_rxptr)) >> 32);
CSR_WRITE_4(sc, STGE_RFDListPtrLo,
STGE_CDRXADDR(sc, sc->sc_rxptr));
Home |
Main Index |
Thread Index |
Old Index