Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to

BUS_DMA_COHERENT.
This commit is contained in:
thorpej 1998-02-04 00:38:50 +00:00
parent c1e336fc0b
commit 296d96f42c
6 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_isapnp.c,v 1.7 1997/12/17 01:31:59 thorpej Exp $ */
/* $NetBSD: if_le_isapnp.c,v 1.8 1998/02/04 00:39:23 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -232,7 +232,7 @@ le_isapnp_attach(parent, self, aux)
return;
}
if (bus_dmamem_map(dmat, &seg, rseg, LE_ISAPNP_MEMSIZE,
(caddr_t *)&sc->sc_mem, BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC)) {
(caddr_t *)&sc->sc_mem, BUS_DMA_NOWAIT|BUS_DMA_COHERENT)) {
printf("%s: couldn't map memory for card\n",
sc->sc_dev.dv_xname);
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fxp.c,v 1.11 1998/01/28 18:31:37 thorpej Exp $ */
/* $NetBSD: if_fxp.c,v 1.12 1998/02/04 00:38:50 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -404,7 +404,7 @@ fxp_attach(parent, self, aux)
if ((error = bus_dmamem_map(sc->sc_dmat, &seg, rseg,
sizeof(struct fxp_control_data), (caddr_t *)&sc->control_data,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC)) != 0) {
BUS_DMA_NOWAIT|BUS_DMA_COHERENT)) != 0) {
printf("%s: can't map control data, error = %d\n",
sc->sc_dev.dv_xname, error);
goto fail;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_pci.c,v 1.19 1997/06/06 23:48:02 thorpej Exp $ */
/* $NetBSD: if_le_pci.c,v 1.20 1998/02/04 00:38:51 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -244,7 +244,7 @@ le_pci_attach(parent, self, aux)
}
if (bus_dmamem_map(dmat, &seg, rseg, LE_PCI_MEMSIZE,
(caddr_t *)&sc->sc_mem,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC)) {
BUS_DMA_NOWAIT|BUS_DMA_COHERENT)) {
printf("%s: couldn't map memory for card\n",
sc->sc_dev.dv_xname);
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: isp_pci.c,v 1.17 1997/09/10 02:16:13 mjacob Exp $ */
/* $NetBSD: isp_pci.c,v 1.18 1998/02/04 00:38:52 thorpej Exp $ */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
@ -401,7 +401,7 @@ isp_pci_mbxdma(isp)
if (bus_dmamem_alloc(pci->pci_dmat, len, NBPG, 0, &seg, 1, &rseg,
BUS_DMA_NOWAIT) ||
bus_dmamem_map(pci->pci_dmat, &seg, rseg, len,
(caddr_t *)&isp->isp_rquest, BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC))
(caddr_t *)&isp->isp_rquest, BUS_DMA_NOWAIT|BUS_DMA_COHERENT))
return (1);
if (bus_dmamap_create(pci->pci_dmat, len, 1, len, 0, BUS_DMA_NOWAIT,
&pci->pci_rquest_dmap) ||
@ -418,7 +418,7 @@ isp_pci_mbxdma(isp)
if (bus_dmamem_alloc(pci->pci_dmat, len, NBPG, 0, &seg, 1, &rseg,
BUS_DMA_NOWAIT) ||
bus_dmamem_map(pci->pci_dmat, &seg, rseg, len,
(caddr_t *)&isp->isp_result, BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC))
(caddr_t *)&isp->isp_result, BUS_DMA_NOWAIT|BUS_DMA_COHERENT))
return (1);
if (bus_dmamap_create(pci->pci_dmat, len, 1, len, 0, BUS_DMA_NOWAIT,
&pci->pci_result_dmap) ||
@ -436,7 +436,7 @@ isp_pci_mbxdma(isp)
if (bus_dmamem_alloc(pci->pci_dmat, len, NBPG, 0, &seg, 1, &rseg,
BUS_DMA_NOWAIT) ||
bus_dmamem_map(pci->pci_dmat, &seg, rseg, len,
(caddr_t *)&fcp->isp_scratch, BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC))
(caddr_t *)&fcp->isp_scratch, BUS_DMA_NOWAIT|BUS_DMA_COHERENT))
return (1);
if (bus_dmamap_create(pci->pci_dmat, len, 1, len, 0, BUS_DMA_NOWAIT,
&pci->pci_scratch_dmap) ||

View File

@ -1,4 +1,4 @@
/* $NetBSD: xd.c,v 1.5 1998/01/25 15:22:34 pk Exp $ */
/* $NetBSD: xd.c,v 1.6 1998/02/04 00:39:49 thorpej Exp $ */
/*
*
@ -36,7 +36,7 @@
* x d . c x y l o g i c s 7 5 3 / 7 0 5 3 v m e / s m d d r i v e r
*
* author: Chuck Cranor <chuck@ccrc.wustl.edu>
* id: $NetBSD: xd.c,v 1.5 1998/01/25 15:22:34 pk Exp $
* id: $NetBSD: xd.c,v 1.6 1998/02/04 00:39:49 thorpej Exp $
* started: 27-Feb-95
* references: [1] Xylogics Model 753 User's Manual
* part number: 166-753-001, Revision B, May 21, 1988.
@ -449,7 +449,7 @@ xdcattach(parent, self, aux)
error = bus_dmamem_map(xdc->dmatag, &seg, rseg,
XDC_MAXIOPB * sizeof(struct xd_iopb),
(caddr_t *)&xdc->iopbase,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC);
BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
if (error) {
bus_dmamem_free(xdc->dmatag, &seg, rseg);
printf("%s: DMA buffer map error %d\n",
@ -649,7 +649,7 @@ xdattach(parent, self, aux)
error = bus_dmamem_map(xdc->dmatag, &seg, rseg, XDFM_BPS,
&buf,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC);
BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
if (error) {
printf("%s: DMA buffer alloc error %d\n",
xd->sc_dev.dv_xname, error);
@ -2333,7 +2333,7 @@ xdc_ioctlcmd(xd, dev, xio)
error = bus_dmamem_map(xdcsc->dmatag, &seg, rseg, xio->dlen,
&buf,
BUS_DMA_WAITOK|BUS_DMAMEM_NOSYNC);
BUS_DMA_WAITOK|BUS_DMA_COHERENT);
if (error) {
bus_dmamem_free(xdcsc->dmatag, &seg, rseg);
return (error);

View File

@ -1,4 +1,4 @@
/* $NetBSD: xy.c,v 1.4 1998/01/25 15:22:36 pk Exp $ */
/* $NetBSD: xy.c,v 1.5 1998/02/04 00:39:50 thorpej Exp $ */
/*
*
@ -36,7 +36,7 @@
* x y . c x y l o g i c s 4 5 0 / 4 5 1 s m d d r i v e r
*
* author: Chuck Cranor <chuck@ccrc.wustl.edu>
* id: $NetBSD: xy.c,v 1.4 1998/01/25 15:22:36 pk Exp $
* id: $NetBSD: xy.c,v 1.5 1998/02/04 00:39:50 thorpej Exp $
* started: 14-Sep-95
* references: [1] Xylogics Model 753 User's Manual
* part number: 166-753-001, Revision B, May 21, 1988.
@ -373,7 +373,7 @@ xycattach(parent, self, aux)
rseg,
XYC_MAXIOPB * sizeof(struct xy_iopb),
(caddr_t *)&xyc->iopbase,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC);
BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
if (error) {
bus_dmamem_free(xyc->dmatag, &seg, rseg);
printf("%s: DMA buffer map error %d\n",
@ -572,7 +572,7 @@ xyattach(parent, self, aux)
error = bus_dmamem_map(xyc->dmatag, &seg, rseg, XYFM_BPS,
&buf,
BUS_DMA_NOWAIT|BUS_DMAMEM_NOSYNC);
BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
if (error) {
printf("%s: DMA buffer alloc error %d\n",
xy->sc_dev.dv_xname, error);
@ -2079,7 +2079,7 @@ xyc_ioctlcmd(xy, dev, xio)
error = bus_dmamem_map(xycsc->dmatag, &seg, rseg, xio->dlen,
&buf,
BUS_DMA_WAITOK|BUS_DMAMEM_NOSYNC);
BUS_DMA_WAITOK|BUS_DMA_COHERENT);
if (error) {
bus_dmamem_free(xycsc->dmatag, &seg, rseg);
return (error);