summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2003-07-27 13:56:03 +0000
committerMaxime Henrion <mux@FreeBSD.org>2003-07-27 13:56:03 +0000
commit42e85383ff91fa09ce47359a3dca883c65e2daef (patch)
treeebbc0e3dc2e2241fb6db56fa26d1224030ce350a /sys
parentd5afecd06846870c41e2850d88fa9a34d67382fa (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/if_xl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index 9a0f9835b215..a5922ab73307 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -1489,7 +1489,7 @@ xl_attach(dev)
}
error = bus_dmamem_alloc(sc->xl_ldata.xl_rx_tag,
- (void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT,
+ (void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
&sc->xl_ldata.xl_rx_dmamap);
if (error) {
printf("xl%d: no memory for rx list buffers!\n", unit);
@@ -1521,7 +1521,7 @@ xl_attach(dev)
}
error = bus_dmamem_alloc(sc->xl_ldata.xl_tx_tag,
- (void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT,
+ (void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
&sc->xl_ldata.xl_tx_dmamap);
if (error) {
printf("xl%d: no memory for list buffers!\n", unit);
@@ -1555,9 +1555,6 @@ xl_attach(dev)
goto fail;
}
- bzero(sc->xl_ldata.xl_tx_list, XL_TX_LIST_SZ);
- bzero(sc->xl_ldata.xl_rx_list, XL_RX_LIST_SZ);
-
/* We need a spare DMA map for the RX ring. */
error = bus_dmamap_create(sc->xl_mtag, 0, &sc->xl_tmpmap);
if (error)