Use bus_dmamap_load instead of bus_dmamap_load_raw
This commit is contained in:
parent
a3d0d7425d
commit
482fe1ea87
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: arn5008.c,v 1.6 2014/02/23 15:29:11 christos Exp $ */
|
||||
/* $NetBSD: arn5008.c,v 1.7 2015/05/24 17:08:50 matt Exp $ */
|
||||
/* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.6 2014/02/23 15:29:11 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.7 2015/05/24 17:08:50 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sockio.h>
|
||||
|
@ -518,8 +518,8 @@ ar5008_tx_alloc(struct athn_softc *sc)
|
|||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
error = bus_dmamap_load_raw(sc->sc_dmat, sc->sc_map, &sc->sc_seg, 1, size,
|
||||
BUS_DMA_NOWAIT);
|
||||
error = bus_dmamap_load(sc->sc_dmat, sc->sc_map, sc->sc_descs,
|
||||
size, NULL, BUS_DMA_NOWAIT);
|
||||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
|
@ -606,8 +606,8 @@ ar5008_rx_alloc(struct athn_softc *sc)
|
|||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
error = bus_dmamap_load_raw(sc->sc_dmat, rxq->map, &rxq->seg, 1,
|
||||
size, BUS_DMA_NOWAIT);
|
||||
error = bus_dmamap_load(sc->sc_dmat, rxq->map, &rxq->descs,
|
||||
size, NULL, BUS_DMA_NOWAIT);
|
||||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: arn9003.c,v 1.6 2014/02/23 15:29:12 christos Exp $ */
|
||||
/* $NetBSD: arn9003.c,v 1.7 2015/05/24 17:08:50 matt Exp $ */
|
||||
/* $OpenBSD: ar9003.c,v 1.25 2012/10/20 09:53:32 stsp Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.6 2014/02/23 15:29:12 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.7 2015/05/24 17:08:50 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sockio.h>
|
||||
|
@ -655,8 +655,8 @@ ar9003_tx_alloc(struct athn_softc *sc)
|
|||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
error = bus_dmamap_load_raw(sc->sc_dmat, sc->sc_txsmap, &sc->sc_txsseg,
|
||||
1, size, BUS_DMA_NOWAIT | BUS_DMA_READ);
|
||||
error = bus_dmamap_load(sc->sc_dmat, sc->sc_txsmap, sc->sc_txsring,
|
||||
size, NULL, BUS_DMA_NOWAIT | BUS_DMA_READ);
|
||||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
|
@ -681,8 +681,8 @@ ar9003_tx_alloc(struct athn_softc *sc)
|
|||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
error = bus_dmamap_load_raw(sc->sc_dmat, sc->sc_map, &sc->sc_seg, 1, size,
|
||||
BUS_DMA_NOWAIT | BUS_DMA_WRITE);
|
||||
error = bus_dmamap_load(sc->sc_dmat, sc->sc_map, sc->sc_descs, size,
|
||||
NULL, BUS_DMA_NOWAIT | BUS_DMA_WRITE);
|
||||
if (error != 0)
|
||||
goto fail;
|
||||
|
||||
|
|
Loading…
Reference in New Issue