ipw driver

Johannes Hofmann Johannes.Hofmann at gmx.de
Wed Mar 9 11:41:05 PST 2005


Joerg Sonnenberger <joerg at xxxxxxxxxxxxxxxxx> wrote:

Snip

> 
> I'll commit it anyway.
> 

Thanks Joerg. Here is the additional bus_dmamap_sync() operations as
suggested by Andrew.

 Johannes



Index: sys/dev/netif/ipw/if_ipw.c
===================================================================
RCS file: /home/dcvs/src/sys/dev/netif/ipw/if_ipw.c,v
retrieving revision 1.4
diff -u -r1.4 if_ipw.c
--- sys/dev/netif/ipw/if_ipw.c	8 Mar 2005 17:50:32 -0000	1.4
+++ sys/dev/netif/ipw/if_ipw.c	9 Mar 2005 19:14:34 -0000
@@ -630,6 +630,8 @@
 
 	if (sc->tbd_dmat != NULL) {
 		if (sc->stbd_list != NULL) {
+			bus_dmamap_sync(sc->tbd_dmat, sc->tbd_map,
+			    BUS_DMASYNC_POSTWRITE);
 			bus_dmamap_unload(sc->tbd_dmat, sc->tbd_map);
 			bus_dmamem_free(sc->tbd_dmat, sc->tbd_list,
 			    sc->tbd_map);
@@ -639,6 +641,8 @@
 
 	if (sc->rbd_dmat != NULL) {
 		if (sc->rbd_list != NULL) {
+			bus_dmamap_sync(sc->rbd_dmat, sc->rbd_map,
+			    BUS_DMASYNC_POSTWRITE);
 			bus_dmamap_unload(sc->rbd_dmat, sc->rbd_map);
 			bus_dmamem_free(sc->rbd_dmat, sc->rbd_list,
 			    sc->rbd_map);
@@ -648,6 +652,8 @@
 
 	if (sc->status_dmat != NULL) {
 		if (sc->status_list != NULL) {
+			bus_dmamap_sync(sc->status_dmat, sc->status_map,
+			    BUS_DMASYNC_POSTWRITE);
 			bus_dmamap_unload(sc->status_dmat, sc->status_map);
 			bus_dmamem_free(sc->status_dmat, sc->status_list,
 			    sc->status_map);





More information about the Submit mailing list