From c4134ff8866cb8044037a6ac0d94b42785819976 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 3 Nov 2004 17:07:11 +0000 Subject: Fix calls to bus_dmamap_create(). --- sys/dev/pci/if_ipw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci') 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"; -- cgit v1.2.3