diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index fdb4d0bc8fe6..344e75c7dc92 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -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;