diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-03 19:32:35 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-03 19:32:35 +0000 |
commit | 9c9b64649d6c69ddc7f6a6ae276fbfe69424a0e0 (patch) | |
tree | 6f93f1a9799ee0a0e0c7124050b7097d14e871a5 /sys | |
parent | d6064748efda9fa574e236e280d3afb43e41e655 (diff) |
use bus_dmamap_load_raw() instead of bus_dmamap_load() where appropriate; krw@ ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/osiop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c index 16af8481a1c..aa28c32b7ac 100644 --- a/sys/dev/ic/osiop.c +++ b/sys/dev/ic/osiop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osiop.c,v 1.14 2003/06/02 23:28:02 millert Exp $ */ +/* $OpenBSD: osiop.c,v 1.15 2003/08/03 19:32:34 mickey Exp $ */ /* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */ /* @@ -230,8 +230,8 @@ osiop_attach(sc) printf(": failed to create script map, err=%d\n", err); return; } - err = bus_dmamap_load(sc->sc_dmat, sc->sc_scrdma, - sc->sc_script, PAGE_SIZE, NULL, BUS_DMA_NOWAIT); + err = bus_dmamap_load_raw(sc->sc_dmat, sc->sc_scrdma, + &seg, nseg, PAGE_SIZE, BUS_DMA_NOWAIT); if (err) { printf(": failed to load script map, err=%d\n", err); return; @@ -270,8 +270,8 @@ osiop_attach(sc) printf(": failed to create ds map, err=%d\n", err); return; } - err = bus_dmamap_load(sc->sc_dmat, sc->sc_dsdma, sc->sc_ds, - sizeof(struct osiop_ds) * OSIOP_NACB, NULL, BUS_DMA_NOWAIT); + err = bus_dmamap_load_raw(sc->sc_dmat, sc->sc_dsdma, + &seg, nseg, sizeof(struct osiop_ds) * OSIOP_NACB, BUS_DMA_NOWAIT); if (err) { printf(": failed to load ds map, err=%d\n", err); return; |