summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2015-05-28 08:00:11 +0000
committerscottl <scottl@FreeBSD.org>2015-05-28 08:00:11 +0000
commit3ec4a0eee648e9bc2714ce93a0aba56c963fd79b (patch)
tree480e2a8c7db142efbfc18bd86454e9c33d8037c1
parente78dd9d8ebd584a44a515ae0711bca71f63243a6 (diff)
downloadFreeBSD-src-3ec4a0eee648e9bc2714ce93a0aba56c963fd79b.zip
FreeBSD-src-3ec4a0eee648e9bc2714ce93a0aba56c963fd79b.tar.gz
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.
-rw-r--r--sys/dev/bwi/if_bwi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c
index 53fb58f..ad41bc6 100644
--- a/sys/dev/bwi/if_bwi.c
+++ b/sys/dev/bwi/if_bwi.c
@@ -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 *sc, uint32_t ctrl_base,
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 *sc, uint32_t ctrl_base,
NULL, NULL,
dma_size,
1,
- BUS_SPACE_MAXSIZE_32BIT,
+ dma_size,
0,
NULL, NULL,
&st->stats_dtag);
OpenPOWER on IntegriCloud