Correct maxsize/maxsegsz parameters to bus_dma_tag_create().
This commit is contained in:
parent
16c2c3c668
commit
ff8a6b8bb5
@ -1479,8 +1479,7 @@ xl_attach(dev)
|
||||
*/
|
||||
error = bus_dma_tag_create(NULL, 8, 0,
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
|
||||
XL_RX_LIST_SZ, 1, BUS_SPACE_MAXSIZE_32BIT, 0,
|
||||
&sc->xl_ldata.xl_rx_tag);
|
||||
XL_RX_LIST_SZ, 1, XL_RX_LIST_SZ, 0, &sc->xl_ldata.xl_rx_tag);
|
||||
if (error) {
|
||||
printf("xl%d: failed to allocate rx dma tag\n", unit);
|
||||
goto fail;
|
||||
@ -1511,8 +1510,7 @@ xl_attach(dev)
|
||||
|
||||
error = bus_dma_tag_create(NULL, 8, 0,
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
|
||||
XL_TX_LIST_SZ, 1, BUS_SPACE_MAXSIZE_32BIT, 0,
|
||||
&sc->xl_ldata.xl_tx_tag);
|
||||
XL_TX_LIST_SZ, 1, XL_TX_LIST_SZ, 0, &sc->xl_ldata.xl_tx_tag);
|
||||
if (error) {
|
||||
printf("xl%d: failed to allocate tx dma tag\n", unit);
|
||||
goto fail;
|
||||
@ -1545,8 +1543,8 @@ xl_attach(dev)
|
||||
* Allocate a DMA tag for the mapping of mbufs.
|
||||
*/
|
||||
error = bus_dma_tag_create(NULL, 1, 0,
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES,
|
||||
XL_MAXFRAGS, BUS_SPACE_MAXSIZE_32BIT, 0, &sc->xl_mtag);
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
|
||||
MCLBYTES * XL_MAXFRAGS, XL_MAXFRAGS, MCLBYTES, 0, &sc->xl_mtag);
|
||||
if (error) {
|
||||
printf("xl%d: failed to allocate mbuf dma tag\n", unit);
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user