mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
This commit is contained in:
parent
19342eee9d
commit
2ae078a31d
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue