Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86 unexport following x86 bus_dma internal functions.



details:   https://anonhg.NetBSD.org/src/rev/11d00f0a9e9d
branches:  trunk
changeset: 567209:11d00f0a9e9d
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Jun 05 07:31:31 2004 +0000

description:
unexport following x86 bus_dma internal functions.
        _bus_dma_alloc_bouncebuf
        _bus_dma_free_bouncebuf
        _bus_dmamap_load_buffer

diffstat:

 sys/arch/x86/include/bus.h |   9 +--------
 sys/arch/x86/x86/bus_dma.c |  17 ++++++++++++-----
 2 files changed, 13 insertions(+), 13 deletions(-)

diffs (82 lines):

diff -r 756b0c28d369 -r 11d00f0a9e9d sys/arch/x86/include/bus.h
--- a/sys/arch/x86/include/bus.h        Sat Jun 05 07:15:57 2004 +0000
+++ b/sys/arch/x86/include/bus.h        Sat Jun 05 07:31:31 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.5 2004/01/14 11:31:55 yamt Exp $     */
+/*     $NetBSD: bus.h,v 1.6 2004/06/05 07:31:31 yamt Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -1206,13 +1206,6 @@
            bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags,
            paddr_t low, paddr_t high);
 
-int    _bus_dma_alloc_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map,
-           bus_size_t size, int flags);
-void   _bus_dma_free_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map);
-int    _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map,
-           void *buf, bus_size_t buflen, struct proc *p, int flags,
-           paddr_t *lastaddrp, int *segp, int first);
-
 
 
 /*
diff -r 756b0c28d369 -r 11d00f0a9e9d sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c        Sat Jun 05 07:15:57 2004 +0000
+++ b/sys/arch/x86/x86/bus_dma.c        Sat Jun 05 07:31:31 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.10 2004/05/11 11:31:34 yamt Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.11 2004/06/05 07:31:31 yamt Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.10 2004/05/11 11:31:34 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.11 2004/06/05 07:31:31 yamt Exp $");
 
 /*
  * The following is included because _bus_dma_uiomove is derived from
@@ -131,6 +131,13 @@
 #endif
 
 static int _bus_dma_uiomove(void *, struct uio *, size_t, int);
+static int _bus_dma_alloc_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map,
+           bus_size_t size, int flags);
+static void _bus_dma_free_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map);
+static int _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map,
+           void *buf, bus_size_t buflen, struct proc *p, int flags,
+           paddr_t *lastaddrp, int *segp, int first);
+
 
 /*
  * Create a DMA map.
@@ -741,7 +748,7 @@
            segs, nsegs, rsegs, flags, t->_bounce_alloc_lo, high));
 }
 
-int
+static int
 _bus_dma_alloc_bouncebuf(t, map, size, flags)
        bus_dma_tag_t t;
        bus_dmamap_t map;
@@ -780,7 +787,7 @@
        return (error);
 }
 
-void
+static void
 _bus_dma_free_bouncebuf(t, map)
        bus_dma_tag_t t;
        bus_dmamap_t map;
@@ -1049,7 +1056,7 @@
  * the starting segment on entrace, and the ending segment on exit.
  * first indicates if this is the first invocation of this function.
  */
-int
+static int
 _bus_dmamap_load_buffer(t, map, buf, buflen, p, flags, lastaddrp, segp, first)
        bus_dma_tag_t t;
        bus_dmamap_t map;



Home | Main Index | Thread Index | Old Index