diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-01-15 10:55:07 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-01-15 10:55:07 +0000 |
commit | bfd4de4f6ab4203ac536478fa71a572f0c8bd2f9 (patch) | |
tree | 90994f5811ae1acdc946dad829d325df0a69e88d | |
parent | 2ff294f1b2d08257fa18966165e6e2d28810136e (diff) |
fix dma mapping of tx ring.
-rw-r--r-- | sys/dev/pci/if_nfe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index eecc0a78035..09ff2615041 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.5 2006/01/14 04:33:35 jsg Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.6 2006/01/15 10:55:06 damien Exp $ */ /* * Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org> * @@ -768,8 +768,7 @@ nfe_alloc_tx_ring(struct nfe_softc *sc, struct nfe_tx_ring *ring) } error = bus_dmamem_map(sc->sc_dmat, &ring->seg, nsegs, - NFE_TX_RING_COUNT * sizeof(struct nfe_desc), (caddr_t *)desc, - BUS_DMA_NOWAIT); + NFE_TX_RING_COUNT * descsize, (caddr_t *)desc, BUS_DMA_NOWAIT); if (error != 0) { printf("%s: could not map desc DMA memory\n", sc->sc_dev.dv_xname); |