diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-12 13:25:02 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-12 13:25:02 +0000 |
commit | 12a8e7b617060eaa9b76e9d7ae689939e00523ea (patch) | |
tree | 6793b5625d8653b61be3f65880d6a46b32a2c439 /sys/dev/pci | |
parent | f094ae7624c614241038d02311b738d02c5e90c2 (diff) |
use BUS_DMA_READ flag when mapping RX buffers.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index d1ab113a1a8..9eebdbca5ad 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.31 2006/02/12 13:08:42 damien Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.32 2006/02/12 13:25:01 damien Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -701,14 +701,14 @@ nfe_rxeof(struct nfe_softc *sc) error = bus_dmamap_load(sc->sc_dmat, data->map, mtod(mnew, void *), MCLBYTES, NULL, - BUS_DMA_NOWAIT); + BUS_DMA_READ | BUS_DMA_NOWAIT); if (error != 0) { m_freem(mnew); /* try to reload the old mbuf */ error = bus_dmamap_load(sc->sc_dmat, data->map, mtod(data->m, void *), MCLBYTES, NULL, - BUS_DMA_NOWAIT); + BUS_DMA_READ | BUS_DMA_NOWAIT); if (error != 0) { /* very unlikely that it will fail.. */ panic("%s: could not load old rx mbuf", @@ -1243,7 +1243,7 @@ nfe_alloc_rx_ring(struct nfe_softc *sc, struct nfe_rx_ring *ring) error = bus_dmamap_load(sc->sc_dmat, data->map, mtod(data->m, void *), MCLBYTES, NULL, - BUS_DMA_NOWAIT); + BUS_DMA_READ | BUS_DMA_NOWAIT); if (error != 0) { printf("%s: could not load rx buf DMA map", sc->sc_dev.dv_xname); @@ -1412,7 +1412,7 @@ nfe_jpool_alloc(struct nfe_softc *sc) } error = bus_dmamap_load(sc->sc_dmat, ring->jmap, ring->jpool, - NFE_JPOOL_SIZE, NULL, BUS_DMA_NOWAIT); + NFE_JPOOL_SIZE, NULL, BUS_DMA_READ | BUS_DMA_NOWAIT); if (error != 0) { printf("%s: could not load jumbo DMA map\n", sc->sc_dev.dv_xname); |