Date: Thu, 28 May 2015 08:00:12 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283643 - head/sys/dev/bwi Message-ID: <201505280800.t4S80C9G059966@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: scottl Date: Thu May 28 08:00:11 2015 New Revision: 283643 URL: https://svnweb.freebsd.org/changeset/base/283643 Log: Follow-up r283636 with a fix to the other abuses of BUS_SPACE_MAXSIZE_32BIT. It makes no sense to specify a segment size that's larger than the total amount that you want to allocate. Modified: head/sys/dev/bwi/if_bwi.c Modified: head/sys/dev/bwi/if_bwi.c ============================================================================== --- head/sys/dev/bwi/if_bwi.c Thu May 28 06:45:13 2015 (r283642) +++ head/sys/dev/bwi/if_bwi.c Thu May 28 08:00:11 2015 (r283643) @@ -1945,7 +1945,7 @@ bwi_dma_alloc(struct bwi_softc *sc) NULL, NULL, tx_ring_sz, 1, - BUS_SPACE_MAXSIZE_32BIT, + tx_ring_sz, 0, NULL, NULL, &sc->sc_txring_dtag); @@ -1975,7 +1975,7 @@ bwi_dma_alloc(struct bwi_softc *sc) NULL, NULL, rx_ring_sz, 1, - BUS_SPACE_MAXSIZE_32BIT, + rx_ring_sz, 0, NULL, NULL, &sc->sc_rxring_dtag); @@ -2100,7 +2100,7 @@ bwi_dma_txstats_alloc(struct bwi_softc * NULL, NULL, dma_size, 1, - BUS_SPACE_MAXSIZE_32BIT, + dma_size, 0, NULL, NULL, &st->stats_ring_dtag); @@ -2148,7 +2148,7 @@ bwi_dma_txstats_alloc(struct bwi_softc * NULL, NULL, dma_size, 1, - BUS_SPACE_MAXSIZE_32BIT, + dma_size, 0, NULL, NULL, &st->stats_dtag);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505280800.t4S80C9G059966>