diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-24 12:54:14 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-24 12:54:14 +0000 |
commit | 0483a4582d8f8df15a40763606b56e53c3d0e914 (patch) | |
tree | 8bb38035c6e21e7609657f97a6a612ebb8a834ab /sys | |
parent | 41780302a8a6805efdd31929320bfbc72bae1d51 (diff) |
use the right size when loading the rx/tx descriptor bus dma maps.
from the NetBSD port
tested by bion@ and others from tech@
ok marco@ brad@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bnx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index d00b42a881c..e639c53ed52 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.36 2006/11/26 15:12:24 brad Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.37 2006/12/24 12:54:13 reyk Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -2262,7 +2262,7 @@ bnx_dma_alloc(struct bnx_softc *sc) } if (bus_dmamap_load(sc->bnx_dmatag, sc->tx_bd_chain_map[i], - (caddr_t)sc->tx_bd_chain[i], BNX_STATS_BLK_SZ, NULL, + (caddr_t)sc->tx_bd_chain[i], BNX_TX_CHAIN_PAGE_SZ, NULL, BUS_DMA_NOWAIT)) { printf(": Could not load TX desc %d DMA memory!\n", i); rc = ENOMEM; @@ -2323,7 +2323,7 @@ bnx_dma_alloc(struct bnx_softc *sc) } if (bus_dmamap_load(sc->bnx_dmatag, sc->rx_bd_chain_map[i], - (caddr_t)sc->rx_bd_chain[i], BNX_STATS_BLK_SZ, NULL, + (caddr_t)sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ, NULL, BUS_DMA_NOWAIT)) { printf(": Could not load Rx desc %d DMA memory!\n", i); rc = ENOMEM; |