summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 12:50:30 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 12:50:30 +0000
commit971d2f812518e2b1eedbc85a6ea76ce8be01d9fc (patch)
tree3c3ce5bd73e20279c762ef6329fa598b69c6fbc1 /sys
parentd2647d715f4901160a3d8d710228afba2702ae15 (diff)
when populating the rxf fifo, actually sync the rxf fifo at the start and
end of it, not txf. still doesnt fix my bug
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_tht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 6774597a701..3d74322d6c5 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.74 2007/04/25 11:01:09 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.75 2007/04/25 12:50:29 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1166,7 +1166,7 @@ tht_rxf_fill(struct tht_softc *sc, int wait)
if (tht_fifo_writable(sc, &sc->sc_rxf) <= THT_FIFO_DESC_LEN)
return;
- tht_fifo_pre(sc, &sc->sc_txf);
+ tht_fifo_pre(sc, &sc->sc_rxf);
for (;;) {
if ((pkt = tht_pkt_get(&sc->sc_rx_list)) == NULL)
@@ -1210,7 +1210,7 @@ free_m:
put_pkt:
tht_pkt_put(&sc->sc_rx_list, pkt);
done:
- tht_fifo_post(sc, &sc->sc_txf);
+ tht_fifo_post(sc, &sc->sc_rxf);
}
void