diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c index c147b6a3af69..1099160f0599 100644 --- a/sys/dev/sbus/be.c +++ b/sys/dev/sbus/be.c @@ -1,4 +1,4 @@ -/* $NetBSD: be.c,v 1.18 2000/05/09 22:51:34 pk Exp $ */ +/* $NetBSD: be.c,v 1.19 2000/05/10 14:16:11 pk Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -320,7 +320,8 @@ beattach(parent, self, aux) sc->sc_rb.rb_ntbuf * BE_PKT_BUF_SZ + sc->sc_rb.rb_nrbuf * BE_PKT_BUF_SZ; - if ((error = bus_dmamap_create(dmatag, size, 1, size, NBPG, + /* Get a DMA handle */ + if ((error = bus_dmamap_create(dmatag, size, 1, size, 0, BUS_DMA_NOWAIT, &sc->sc_dmamap)) != 0) { printf("%s: DMA map create error %d\n", self->dv_xname, error); return; diff --git a/sys/dev/sbus/isp_sbus.c b/sys/dev/sbus/isp_sbus.c index 121a0504c251..5dee28a015f3 100644 --- a/sys/dev/sbus/isp_sbus.c +++ b/sys/dev/sbus/isp_sbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: isp_sbus.c,v 1.24 2000/05/09 23:16:19 pk Exp $ */ +/* $NetBSD: isp_sbus.c,v 1.25 2000/05/10 14:16:11 pk Exp $ */ /* * SBus specific probe and attach routines for Qlogic ISP SCSI adapters. * @@ -296,7 +296,7 @@ isp_sbus_mbxdma(isp) */ len = ISP_QUEUE_SIZE(RQUEST_QUEUE_LEN); /* Allocate DMA map */ - if (bus_dmamap_create(dmatag, len, 1, len, NBPG, BUS_DMA_NOWAIT, + if (bus_dmamap_create(dmatag, len, 1, len, 0, BUS_DMA_NOWAIT, &sbc->sbus_request_dmamap) != 0) { goto dmafail; } @@ -329,7 +329,7 @@ isp_sbus_mbxdma(isp) */ len = ISP_QUEUE_SIZE(RESULT_QUEUE_LEN); /* Allocate DMA map */ - if (bus_dmamap_create(dmatag, len, 1, len, NBPG, BUS_DMA_NOWAIT, + if (bus_dmamap_create(dmatag, len, 1, len, 0, BUS_DMA_NOWAIT, &sbc->sbus_result_dmamap) != 0) { goto dmafail; } diff --git a/sys/dev/sbus/qe.c b/sys/dev/sbus/qe.c index 968f8bd00e53..7b51c920c72d 100644 --- a/sys/dev/sbus/qe.c +++ b/sys/dev/sbus/qe.c @@ -1,4 +1,4 @@ -/* $NetBSD: qe.c,v 1.8 2000/05/09 22:51:34 pk Exp $ */ +/* $NetBSD: qe.c,v 1.9 2000/05/10 14:16:11 pk Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -267,7 +267,8 @@ qeattach(parent, self, aux) sc->sc_rb.rb_ntbuf * QE_PKT_BUF_SZ + sc->sc_rb.rb_nrbuf * QE_PKT_BUF_SZ; - if ((error = bus_dmamap_create(dmatag, size, 1, size, NBPG, + /* Get a DMA handle */ + if ((error = bus_dmamap_create(dmatag, size, 1, size, 0, BUS_DMA_NOWAIT, &sc->sc_dmamap)) != 0) { printf("%s: DMA map create error %d\n", self->dv_xname, error); return;