Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/ic Pull up revision 1.103 via patch (requested ...



details:   https://anonhg.NetBSD.org/src/rev/2b4b6ee602fa
branches:  netbsd-1-6
changeset: 530612:2b4b6ee602fa
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Aug 26 06:46:43 2003 +0000

description:
Pull up revision 1.103 via patch (requested by tls in ticket #1434):
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:

 sys/dev/ic/aic7xxx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 47183d40187a -r 2b4b6ee602fa sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c      Tue Aug 26 06:46:25 2003 +0000
+++ b/sys/dev/ic/aic7xxx.c      Tue Aug 26 06:46:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx.c,v 1.88.4.1 2002/09/01 13:57:49 lukem Exp $   */
+/*     $NetBSD: aic7xxx.c,v 1.88.4.2 2003/08/26 06:46:43 tron Exp $    */
 
 /*
  * Generic driver for the aic7xxx based adaptec SCSI controllers
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.88.4.1 2002/09/01 13:57:49 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.88.4.2 2003/08/26 06:46:43 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ahc.h"
@@ -4300,7 +4300,7 @@
                next_scb->sg_list_phys = physaddr + sizeof(struct ahc_dma_seg);
                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|ahc->sc_dmaflags,
                            &next_scb->dmamap);
                if (error != 0)



Home | Main Index | Thread Index | Old Index