diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-04 23:27:50 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-04 23:27:50 +0000 |
commit | af7d7f9b184b4a61a2196320c42f447118d222a6 (patch) | |
tree | 418cfb42e2b580ba3c70d037740dbd12d48554cd /sys/dev/ic | |
parent | a8bfdf187d480013f5e12f12d5c1e2bd6b94b66b (diff) |
new bus_dma API, match it
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/adv.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/adw.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/adv.c b/sys/dev/ic/adv.c index bed5c8eee15..ad5a74f2960 100644 --- a/sys/dev/ic/adv.c +++ b/sys/dev/ic/adv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adv.c,v 1.4 1998/11/17 06:08:15 downsj Exp $ */ +/* $OpenBSD: adv.c,v 1.5 1999/08/04 23:27:48 niklas Exp $ */ /* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */ /* @@ -197,7 +197,7 @@ adv_alloc_ccbs(sc) } if ((error = bus_dmamem_map(sc->sc_dmat, &seg, rseg, sizeof(struct adv_control), (caddr_t *) & sc->sc_control, - BUS_DMA_NOWAIT | BUS_DMAMEM_NOSYNC)) != 0) { + BUS_DMA_NOWAIT | BUS_DMA_COHERENT)) != 0) { printf("%s: unable to map control structures, error = %d\n", sc->sc_dev.dv_xname, error); return (error); @@ -424,7 +424,7 @@ adv_alloc_overrunbuf(dvname, dmat) return (0); } if ((error = bus_dmamem_map(dmat, &seg, rseg, ASC_OVERRUN_BSIZE, - (caddr_t *) & overrunbuf, BUS_DMA_NOWAIT | BUS_DMAMEM_NOSYNC)) != 0) { + (caddr_t *) & overrunbuf, BUS_DMA_NOWAIT | BUS_DMA_COHERENT)) != 0) { printf("%s: unable to map overrun buffer, error = %d\n", dvname, error); diff --git a/sys/dev/ic/adw.c b/sys/dev/ic/adw.c index 46fc2b6570f..bd5c15860c3 100644 --- a/sys/dev/ic/adw.c +++ b/sys/dev/ic/adw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adw.c,v 1.1 1998/11/17 06:14:58 downsj Exp $ */ +/* $OpenBSD: adw.c,v 1.2 1999/08/04 23:27:48 niklas Exp $ */ /* $NetBSD: adw.c,v 1.3 1998/10/10 00:28:33 thorpej Exp $ */ /* @@ -193,7 +193,7 @@ adw_alloc_ccbs(sc) } if ((error = bus_dmamem_map(sc->sc_dmat, &seg, rseg, sizeof(struct adw_control), (caddr_t *) & sc->sc_control, - BUS_DMA_NOWAIT | BUS_DMAMEM_NOSYNC)) != 0) { + BUS_DMA_NOWAIT | BUS_DMA_COHERENT)) != 0) { printf("%s: unable to map control structures, error = %d\n", sc->sc_dev.dv_xname, error); return (error); |