Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Read upd_pktstatus from DMA buffer after bus_dmam...



details:   https://anonhg.NetBSD.org/src/rev/8e9dff55aa97
branches:  trunk
changeset: 486061:8e9dff55aa97
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri May 12 15:22:33 2000 +0000

description:
Read upd_pktstatus from DMA buffer after bus_dmamap_sync() called.

diffstat:

 sys/dev/ic/elinkxl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 40e1668185b7 -r 8e9dff55aa97 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c      Fri May 12 15:00:33 2000 +0000
+++ b/sys/dev/ic/elinkxl.c      Fri May 12 15:22:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elinkxl.c,v 1.31 2000/03/30 12:45:30 augustss Exp $    */
+/*     $NetBSD: elinkxl.c,v 1.32 2000/05/12 15:22:33 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1191,7 +1191,6 @@
                        rxmap = rxd->rx_dmamap;
                        m = rxd->rx_mbhead;
                        upd = rxd->rx_upd;
-                       pktstat = le32toh(upd->upd_pktstatus);
 
                        bus_dmamap_sync(sc->sc_dmat, rxmap, 0,
                            rxmap->dm_mapsize,
@@ -1200,6 +1199,7 @@
                            ((caddr_t)upd - (caddr_t)sc->sc_upd), 
                            sizeof (struct ex_upd),
                            BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
+                       pktstat = le32toh(upd->upd_pktstatus);
 
                        if (pktstat & EX_UPD_COMPLETE) {
                                /*



Home | Main Index | Thread Index | Old Index