From 0483a4582d8f8df15a40763606b56e53c3d0e914 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sun, 24 Dec 2006 12:54:14 +0000 Subject: 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@ --- sys/dev/pci/if_bnx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3