Source-Changes-HG archive

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

[src/trunk]: src/sys/dev No need to specify page alignment; this is automatic.



details:   https://anonhg.NetBSD.org/src/rev/b5359c4bdf50
branches:  trunk
changeset: 485986:b5359c4bdf50
user:      pk <pk%NetBSD.org@localhost>
date:      Wed May 10 14:25:43 2000 +0000

description:
No need to specify page alignment; this is automatic.

diffstat:

 sys/dev/sbus/be.c          |  5 ++---
 sys/dev/sbus/if_le.c       |  4 ++--
 sys/dev/sbus/if_le_ledma.c |  4 ++--
 sys/dev/sbus/isp_sbus.c    |  6 +++---
 sys/dev/sbus/qe.c          |  5 ++---
 sys/dev/vme/xd.c           |  4 ++--
 sys/dev/vme/xy.c           |  4 ++--
 7 files changed, 15 insertions(+), 17 deletions(-)

diffs (137 lines):

diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/sbus/be.c
--- a/sys/dev/sbus/be.c Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/sbus/be.c Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: be.c,v 1.19 2000/05/10 14:16:11 pk Exp $       */
+/*     $NetBSD: be.c,v 1.20 2000/05/10 14:25:43 pk Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -328,8 +328,7 @@
        }
 
        /* Allocate DMA buffer */
-       if ((error = bus_dmamem_alloc(sa->sa_dmatag, size,
-                                     NBPG, 0,
+       if ((error = bus_dmamem_alloc(sa->sa_dmatag, size, 0, 0,
                                      &seg, 1, &rseg, BUS_DMA_NOWAIT)) != 0) {
                printf("%s: DMA buffer alloc error %d\n",
                        self->dv_xname, error);
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/sbus/if_le.c
--- a/sys/dev/sbus/if_le.c      Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/sbus/if_le.c      Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le.c,v 1.12 2000/05/10 11:15:32 pk Exp $    */
+/*     $NetBSD: if_le.c,v 1.13 2000/05/10 14:25:43 pk Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -236,7 +236,7 @@
                }
 
                /* Allocate DMA buffer */
-               if ((error = bus_dmamem_alloc(dmatag, MEMSIZE, NBPG, 0,
+               if ((error = bus_dmamem_alloc(dmatag, MEMSIZE, 0, 0,
                                         &seg, 1, &rseg,
                                         BUS_DMA_NOWAIT|BUS_DMA_24BIT)) != 0){
                        printf("%s: DMA buffer allocation error %d\n",
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/sbus/if_le_ledma.c
--- a/sys/dev/sbus/if_le_ledma.c        Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/sbus/if_le_ledma.c        Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le_ledma.c,v 1.9 2000/05/10 11:15:32 pk Exp $       */
+/*     $NetBSD: if_le_ledma.c,v 1.10 2000/05/10 14:25:43 pk Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -383,7 +383,7 @@
        }
 
        /* Allocate DMA buffer */
-       if ((error = bus_dmamem_alloc(dmatag, MEMSIZE, NBPG, LEDMA_BOUNDARY,
+       if ((error = bus_dmamem_alloc(dmatag, MEMSIZE, 0, LEDMA_BOUNDARY,
                                 &seg, 1, &rseg, BUS_DMA_NOWAIT)) != 0) {
                printf("%s @ ledma: DMA buffer alloc error %d\n",
                        self->dv_xname, error);
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c   Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/sbus/isp_sbus.c   Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.25 2000/05/10 14:16:11 pk Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.26 2000/05/10 14:25:43 pk Exp $ */
 /*
  * SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
  *
@@ -302,7 +302,7 @@
        }
 
        /* Allocate DMA buffer */
-       if (bus_dmamem_alloc(dmatag, len, NBPG, 0,
+       if (bus_dmamem_alloc(dmatag, len, 0, 0,
                                &seg, 1, &rseg, BUS_DMA_NOWAIT)) {
                goto dmafail;
        }
@@ -335,7 +335,7 @@
        }
 
        /* Allocate DMA buffer */
-       if (bus_dmamem_alloc(dmatag, len, NBPG, 0,
+       if (bus_dmamem_alloc(dmatag, len, 0, 0,
                                &seg, 1, &rseg, BUS_DMA_NOWAIT)) {
                goto dmafail;
        }
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/sbus/qe.c
--- a/sys/dev/sbus/qe.c Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/sbus/qe.c Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: qe.c,v 1.9 2000/05/10 14:16:11 pk Exp $        */
+/*     $NetBSD: qe.c,v 1.10 2000/05/10 14:25:43 pk Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -275,8 +275,7 @@
        }
 
        /* Allocate DMA buffer */
-       if ((error = bus_dmamem_alloc(dmatag, size,
-                                     NBPG, 0,
+       if ((error = bus_dmamem_alloc(dmatag, size, 0, 0,
                                      &seg, 1, &rseg, BUS_DMA_NOWAIT)) != 0) {
                printf("%s: DMA buffer alloc error %d\n",
                        self->dv_xname, error);
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/vme/xd.c
--- a/sys/dev/vme/xd.c  Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/vme/xd.c  Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xd.c,v 1.21 2000/05/09 22:51:34 pk Exp $       */
+/*     $NetBSD: xd.c,v 1.22 2000/05/10 14:26:06 pk Exp $       */
 
 /*
  *
@@ -390,7 +390,7 @@
        int nseg;
        int error;
 
-       if ((error = bus_dmamem_alloc(tag, len, NBPG, 0,
+       if ((error = bus_dmamem_alloc(tag, len, 0, 0,
                                      seg, 1, &nseg, BUS_DMA_NOWAIT)) != 0) {
                return (error);
        }
diff -r 74ec8d9d9517 -r b5359c4bdf50 sys/dev/vme/xy.c
--- a/sys/dev/vme/xy.c  Wed May 10 14:16:11 2000 +0000
+++ b/sys/dev/vme/xy.c  Wed May 10 14:25:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xy.c,v 1.19 2000/05/09 22:51:34 pk Exp $       */
+/*     $NetBSD: xy.c,v 1.20 2000/05/10 14:26:06 pk Exp $       */
 
 /*
  *
@@ -304,7 +304,7 @@
        int nseg;
        int error;
 
-       if ((error = bus_dmamem_alloc(tag, len, NBPG, 0,
+       if ((error = bus_dmamem_alloc(tag, len, 0, 0,
                                      seg, 1, &nseg, BUS_DMA_NOWAIT)) != 0) {
                return (error);
        }



Home | Main Index | Thread Index | Old Index