diff options
| author | tls <tls@NetBSD.org> | 2003-04-23 00:55:17 +0000 |
|---|---|---|
| committer | tls <tls@NetBSD.org> | 2003-04-23 00:55:17 +0000 |
| commit | 85c8cfb5330642bbfa98181f4ff2e70349fbb013 (patch) | |
| tree | 6c9a7dd0f70802f8c91c1e755938416b80702ff6 /sys/dev/ic | |
| parent | 7064ed78f95608287901856489484bb84e771744 (diff) | |
Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessary
first step towards per-device MAXPHYS, and has the beneficial side effect
of allowing clustering to MAXPHYS even on systems that need to run with
a reduced MAXBSIZE to get more metadata buffers.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/aic7xxx.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/mpt_netbsd.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index aa4f405f4cb..20341d61b28 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic7xxx.c,v 1.102 2003/04/21 22:00:42 fvdl Exp $ */ +/* $NetBSD: aic7xxx.c,v 1.103 2003/04/23 00:55:17 tls Exp $ */ /* * Core routines and tables shareable across OS platforms. @@ -39,7 +39,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * - * $Id: aic7xxx.c,v 1.102 2003/04/21 22:00:42 fvdl Exp $ + * $Id: aic7xxx.c,v 1.103 2003/04/23 00:55:17 tls Exp $ * * //depot/aic7xxx/aic7xxx/aic7xxx.c#112 $ * @@ -4359,7 +4359,7 @@ ahc_alloc_scbs(struct ahc_softc *ahc) next_scb->flags = SCB_FREE; error = bus_dmamap_create(ahc->parent_dmat, - AHC_MAXTRANSFER_SIZE, AHC_NSEG, MAXBSIZE, 0, + AHC_MAXTRANSFER_SIZE, AHC_NSEG, MAXPHYS, 0, BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, &next_scb->dmamap); if (error != 0) diff --git a/sys/dev/ic/mpt_netbsd.c b/sys/dev/ic/mpt_netbsd.c index 5cc0bd9e2e3..d50c84c7978 100644 --- a/sys/dev/ic/mpt_netbsd.c +++ b/sys/dev/ic/mpt_netbsd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mpt_netbsd.c,v 1.4 2003/04/16 23:17:30 thorpej Exp $ */ +/* $NetBSD: mpt_netbsd.c,v 1.5 2003/04/23 00:55:19 tls Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -246,8 +246,8 @@ mpt_dma_mem_alloc(mpt_softc_t *mpt) req->sense_pbuf = (pptr - MPT_SENSE_SIZE); req->sense_vbuf = (vptr - MPT_SENSE_SIZE); - error = bus_dmamap_create(mpt->sc_dmat, MAXBSIZE, - MPT_SGL_MAX, MAXBSIZE, 0, 0, &req->dmap); + error = bus_dmamap_create(mpt->sc_dmat, MAXPHYS, + MPT_SGL_MAX, MAXPHYS, 0, 0, &req->dmap); if (error) { aprint_error("%s: unable to create req %d DMA map, " "error = %d\n", mpt->sc_dev.dv_xname, i, error); |
