summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-22 04:24:41 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-22 04:24:41 +0000
commitfce08857b18418b36043dfc07e3858acb9467319 (patch)
tree66301cbd2e7fcc76555d7d94403508bee985429c /sys/dev
parent2a87b9e3eacaf08aed23087ebf69c989d3a3ff77 (diff)
i seem to be having lots of trouble with writing bus_dmamap_sync calls
properly these days. when draining the rxf fifo we want to POSTREAD the mbuf, not PREREAD it.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index a13a51ac851..04f5a590766 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.46 2007/04/22 04:21:25 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.47 2007/04/22 04:24:40 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -917,7 +917,7 @@ tht_rxf_drain(struct tht_softc *sc)
dmap = pkt->tp_dmap;
bus_dmamap_sync(dmat, dmap, 0, dmap->dm_mapsize,
- BUS_DMASYNC_PREREAD);
+ BUS_DMASYNC_POSTREAD);
bus_dmamap_unload(dmat, dmap);
m_freem(pkt->tp_m);