diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-08-19 14:57:38 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-08-19 14:57:38 +0000 |
commit | cea5aa64c28458303952c034af314ceac2c12bd3 (patch) | |
tree | 3bc5ed18060c7a74ab9220f44a632a5cc42418e3 /sys/dev/pci/if_ipw.c | |
parent | a88bd849e5d287c8a5a8dacff9f1fe89df3d0f92 (diff) |
tweak dma sync ops
Diffstat (limited to 'sys/dev/pci/if_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 45873fd863d..b6116cc0dc7 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.61 2006/08/19 12:03:05 damien Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.62 2006/08/19 14:57:37 damien Exp $ */ /*- * Copyright (c) 2004-2006 @@ -1263,7 +1263,7 @@ ipw_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) sbd->bd->len = htole32(sizeof (struct ipw_hdr)); sbd->bd->nfrag = 1 + sbuf->map->dm_nsegs; sbd->bd->flags = IPW_BD_FLAG_TX_FRAME_802_3 | - IPW_BD_FLAG_TX_NOT_LAST_FRAGMENT; + IPW_BD_FLAG_TX_NOT_LAST_FRAGMENT; DPRINTFN(5, ("TX!HDR!%u!%u!%u!%u", shdr->hdr.type, shdr->hdr.subtype, shdr->hdr.encrypted, shdr->hdr.encrypt)); @@ -1306,10 +1306,9 @@ ipw_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) sc->txfree--; } - bus_dmamap_sync(sc->sc_dmat, shdr->map, 0, sizeof (struct ipw_hdr), + bus_dmamap_sync(sc->sc_dmat, sbuf->map, 0, sbuf->map->dm_mapsize, BUS_DMASYNC_PREWRITE); - - bus_dmamap_sync(sc->sc_dmat, sbuf->map, 0, MCLBYTES, + bus_dmamap_sync(sc->sc_dmat, shdr->map, 0, sizeof (struct ipw_hdr), BUS_DMASYNC_PREWRITE); /* inform firmware about this new packet */ |