summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-01-09 19:57:55 +0000
committersam <sam@FreeBSD.org>2005-01-09 19:57:55 +0000
commit8ae50c58538bc6382b15d98b97aa368bedb6c38d (patch)
treee6f88aa5300dd3393692b0d41a9d085854b6cd49 /sys/pci/if_sis.c
parent1cd8ce95ba56b3d65eece4dd58024f698ed2ba3c (diff)
downloadFreeBSD-src-8ae50c58538bc6382b15d98b97aa368bedb6c38d.zip
FreeBSD-src-8ae50c58538bc6382b15d98b97aa368bedb6c38d.tar.gz
correct direction for bus_dma sync of rx buffer
Submitted by: Tai-hwa Liang
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 3deff3c..071db9e 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1385,7 +1385,7 @@ sis_newbuf(struct sis_softc *sc, struct sis_desc *c, struct mbuf *m)
bus_dmamap_load(sc->sis_tag, c->sis_map,
mtod(m, void *), MCLBYTES,
sis_dma_map_desc_ptr, c, 0);
- bus_dmamap_sync(sc->sis_tag, c->sis_map, BUS_DMASYNC_PREWRITE);
+ bus_dmamap_sync(sc->sis_tag, c->sis_map, BUS_DMASYNC_PREREAD);
return(0);
}
OpenPOWER on IntegriCloud