summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-29 11:28:26 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-29 11:28:26 +0000
commit040a5435e573e7f9bdf12eac23ae6aa9c925e4b7 (patch)
tree00d6f8166bc0dad5bec3059f5cb7815ba848bcc0 /sys/dev
parent0088fa3977f63098f2264735c6a1ffb516195794 (diff)
when we post a fifo we're giving the dma mem back to the hardware, so we
need a presync, not a postsync. another good find by Nadav Shemer at Tehuti Networks
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 b6e4148678c..82af7eaf292 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.81 2007/04/29 08:44:13 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.82 2007/04/29 11:28:25 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1488,7 +1488,7 @@ tht_fifo_post(struct tht_softc *sc, struct tht_fifo *tf)
delay(100); /* XXX this is dumb */
bus_dmamap_sync(sc->sc_thtc->sc_dmat, THT_DMA_MAP(tf->tf_mem),
- 0, tf->tf_len, THT_FIFO_POST_SYNC(tf->tf_desc));
+ 0, tf->tf_len, THT_FIFO_PRE_SYNC(tf->tf_desc));
if (tf->tf_desc->tfd_write)
tht_write(sc, tf->tf_desc->tfd_wptr, tf->tf_wptr);
else