diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2004-11-03 17:07:11 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2004-11-03 17:07:11 +0000 |
commit | c4134ff8866cb8044037a6ac0d94b42785819976 (patch) | |
tree | a09ff17f17dba831ea8459eae71053467a1c54ec /sys/dev/pci | |
parent | 242e6145d037af18828ce929aa29d1762b938778 (diff) |
Fix calls to bus_dmamap_create().
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 5599b3616be..bdef2eb8646 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.19 2004/11/02 06:06:21 marius Exp $ */ +/* $Id: if_ipw.c,v 1.20 2004/11/03 17:07:10 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1365,8 +1365,8 @@ ipw_tx_init(struct ipw_softc *sc) } TAILQ_INIT(&sc->sc_free_sbuf); for (i = 0, sbuf = sc->tx_sbuf_list; i < IPW_NDATA; i++, sbuf++) { - error = bus_dmamap_create(sc->sc_dmat, IPW_NDATA * MCLBYTES, - IPW_NDATA, MCLBYTES, 0, BUS_DMA_NOWAIT, &sbuf->map); + error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, IPW_NDATA, + MCLBYTES, 0, BUS_DMA_NOWAIT, &sbuf->map); if (error != 0) { errmsg = "could not create txbuf dma map"; goto fail; @@ -1511,8 +1511,8 @@ ipw_rx_init(struct ipw_softc *sc) goto fail; } - error = bus_dmamap_create(sc->sc_dmat, IPW_NRBD * MCLBYTES, - IPW_NRBD, MCLBYTES, 0, BUS_DMA_NOWAIT, &sbuf->map); + error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, 1, MCLBYTES, + 0, BUS_DMA_NOWAIT, &sbuf->map); if (error != 0) { m_freem(sbuf->m); errmsg = "could not create rxbuf dma map"; |