Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha Moar static.



details:   https://anonhg.NetBSD.org/src/rev/bdd401f82103
branches:  trunk
changeset: 379025:bdd401f82103
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 05 02:15:18 2021 +0000

description:
Moar static.

diffstat:

 sys/arch/alpha/pci/apecs_dma.c                |   36 +++---
 sys/arch/alpha/pci/cia_dma.c                  |   52 +++++-----
 sys/arch/alpha/pci/dwlpx_dma.c                |   36 +++---
 sys/arch/alpha/pci/irongate_dma.c             |    8 +-
 sys/arch/alpha/pci/lca_dma.c                  |   36 +++---
 sys/arch/alpha/pci/mcpcia_dma.c               |   36 +++---
 sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c   |  122 +++++++++++++-------------
 sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c  |  122 +++++++++++++-------------
 sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c  |  122 +++++++++++++-------------
 sys/arch/alpha/pci/pci_swiz_bus_mem_chipdep.c |  122 +++++++++++++-------------
 sys/arch/alpha/pci/tsp_dma.c                  |   40 ++++----
 sys/arch/alpha/pci/ttwoga_dma.c               |   34 +++---
 sys/arch/alpha/tc/tc_bus_mem.c                |  122 +++++++++++++-------------
 13 files changed, 444 insertions(+), 444 deletions(-)

diffs (truncated from 2443 to 300 lines):

diff -r 797c29ab0619 -r bdd401f82103 sys/arch/alpha/pci/apecs_dma.c
--- a/sys/arch/alpha/pci/apecs_dma.c    Wed May 05 01:35:35 2021 +0000
+++ b/sys/arch/alpha/pci/apecs_dma.c    Wed May 05 02:15:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apecs_dma.c,v 1.23 2020/10/11 00:33:31 thorpej Exp $ */
+/* $NetBSD: apecs_dma.c,v 1.24 2021/05/05 02:15:18 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: apecs_dma.c,v 1.23 2020/10/11 00:33:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apecs_dma.c,v 1.24 2021/05/05 02:15:18 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -48,21 +48,21 @@
 #include <alpha/pci/apecsreg.h>
 #include <alpha/pci/apecsvar.h>
 
-bus_dma_tag_t apecs_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
+static bus_dma_tag_t apecs_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
 
-int    apecs_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
-           bus_size_t, struct proc *, int);
+static int     apecs_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
+                   bus_size_t, struct proc *, int);
 
-int    apecs_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct mbuf *, int);
+static int     apecs_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct mbuf *, int);
 
-int    apecs_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct uio *, int);
+static int     apecs_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct uio *, int);
 
-int    apecs_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           bus_dma_segment_t *, int, bus_size_t, int);
+static int     apecs_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   bus_dma_segment_t *, int, bus_size_t, int);
 
-void   apecs_bus_dmamap_unload_sgmap(bus_dma_tag_t, bus_dmamap_t);
+static void    apecs_bus_dmamap_unload_sgmap(bus_dma_tag_t, bus_dmamap_t);
 
 /*
  * Direct-mapped window: 1G at 1G
@@ -187,7 +187,7 @@ apecs_dma_init(struct apecs_config *acp)
  * Return the bus dma tag to be used for the specified bus type.
  * INTERNAL USE ONLY!
  */
-bus_dma_tag_t
+static bus_dma_tag_t
 apecs_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
 {
        struct apecs_config *acp = t->_cookie;
@@ -218,7 +218,7 @@ apecs_dma_get_tag(bus_dma_tag_t t, alpha
 /*
  * Load an APECS SGMAP-mapped DMA map with a linear buffer.
  */
-int
+static int
 apecs_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
 {
        int error;
@@ -234,7 +234,7 @@ apecs_bus_dmamap_load_sgmap(bus_dma_tag_
 /*
  * Load an APECS SGMAP-mapped DMA map with an mbuf chain.
  */
-int
+static int
 apecs_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
 {
        int error;
@@ -249,7 +249,7 @@ apecs_bus_dmamap_load_mbuf_sgmap(bus_dma
 /*
  * Load an APECS SGMAP-mapped DMA map with a uio.
  */
-int
+static int
 apecs_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
 {
        int error;
@@ -264,7 +264,7 @@ apecs_bus_dmamap_load_uio_sgmap(bus_dma_
 /*
  * Load an APECS SGMAP-mapped DMA map with raw memory.
  */
-int
+static int
 apecs_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
 {
        int error;
@@ -280,7 +280,7 @@ apecs_bus_dmamap_load_raw_sgmap(bus_dma_
 /*
  * Unload an APECS DMA map.
  */
-void
+static void
 apecs_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
 {
 
diff -r 797c29ab0619 -r bdd401f82103 sys/arch/alpha/pci/cia_dma.c
--- a/sys/arch/alpha/pci/cia_dma.c      Wed May 05 01:35:35 2021 +0000
+++ b/sys/arch/alpha/pci/cia_dma.c      Wed May 05 02:15:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cia_dma.c,v 1.31 2020/10/11 00:33:31 thorpej Exp $ */
+/* $NetBSD: cia_dma.c,v 1.32 2021/05/05 02:15:18 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.31 2020/10/11 00:33:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.32 2021/05/05 02:15:18 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -48,24 +48,24 @@
 #include <alpha/pci/ciareg.h>
 #include <alpha/pci/ciavar.h>
 
-bus_dma_tag_t cia_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
+static bus_dma_tag_t cia_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
 
-int    cia_bus_dmamap_create_direct(bus_dma_tag_t, bus_size_t, int,
-           bus_size_t, bus_size_t, int, bus_dmamap_t *);
+static int     cia_bus_dmamap_create_direct(bus_dma_tag_t, bus_size_t, int,
+                   bus_size_t, bus_size_t, int, bus_dmamap_t *);
 
-int    cia_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
-           bus_size_t, struct proc *, int);
+static int     cia_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
+                   bus_size_t, struct proc *, int);
 
-int    cia_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct mbuf *, int);
+static int     cia_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct mbuf *, int);
 
-int    cia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct uio *, int);
+static int     cia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct uio *, int);
 
-int    cia_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           bus_dma_segment_t *, int, bus_size_t, int);
+static int     cia_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   bus_dma_segment_t *, int, bus_size_t, int);
 
-void   cia_bus_dmamap_unload_sgmap(bus_dma_tag_t, bus_dmamap_t);
+static void    cia_bus_dmamap_unload_sgmap(bus_dma_tag_t, bus_dmamap_t);
 
 /*
  * Direct-mapped window: 1G at 1G
@@ -82,10 +82,10 @@ void        cia_bus_dmamap_unload_sgmap(bus_dma
 /* ALCOR/ALGOR2/PYXIS have a 256-byte out-bound DMA prefetch threshold. */
 #define        CIA_SGMAP_PFTHRESH      256
 
-void   cia_tlb_invalidate(void);
-void   cia_broken_pyxis_tlb_invalidate(void);
+static void    cia_tlb_invalidate(void);
+static void    cia_broken_pyxis_tlb_invalidate(void);
 
-void   (*cia_tlb_invalidate_fn)(void);
+static void    (*cia_tlb_invalidate_fn)(void);
 
 #define        CIA_TLB_INVALIDATE()    (*cia_tlb_invalidate_fn)()
 
@@ -240,7 +240,7 @@ cia_dma_init(struct cia_config *ccp)
  * Return the bus dma tag to be used for the specified bus type.
  * INTERNAL USE ONLY!
  */
-bus_dma_tag_t
+static bus_dma_tag_t
 cia_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
 {
        struct cia_config *ccp = t->_cookie;
@@ -277,7 +277,7 @@ cia_dma_get_tag(bus_dma_tag_t t, alpha_b
 /*
  * Create a CIA direct-mapped DMA map.
  */
-int
+static int
 cia_bus_dmamap_create_direct(
        bus_dma_tag_t t,
        bus_size_t size,
@@ -320,7 +320,7 @@ cia_bus_dmamap_create_direct(
 /*
  * Load a CIA SGMAP-mapped DMA map with a linear buffer.
  */
-int
+static int
 cia_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
 {
        int error;
@@ -336,7 +336,7 @@ cia_bus_dmamap_load_sgmap(bus_dma_tag_t 
 /*
  * Load a CIA SGMAP-mapped DMA map with an mbuf chain.
  */
-int
+static int
 cia_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
 {
        int error;
@@ -351,7 +351,7 @@ cia_bus_dmamap_load_mbuf_sgmap(bus_dma_t
 /*
  * Load a CIA SGMAP-mapped DMA map with a uio.
  */
-int
+static int
 cia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
 {
        int error;
@@ -366,7 +366,7 @@ cia_bus_dmamap_load_uio_sgmap(bus_dma_ta
 /*
  * Load a CIA SGMAP-mapped DMA map with raw memory.
  */
-int
+static int
 cia_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
 {
        int error;
@@ -382,7 +382,7 @@ cia_bus_dmamap_load_raw_sgmap(bus_dma_ta
 /*
  * Unload a CIA DMA map.
  */
-void
+static void
 cia_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
 {
 
@@ -402,7 +402,7 @@ cia_bus_dmamap_unload_sgmap(bus_dma_tag_
 /*
  * Flush the CIA scatter/gather TLB.
  */
-void
+static void
 cia_tlb_invalidate(void)
 {
 
@@ -414,7 +414,7 @@ cia_tlb_invalidate(void)
 /*
  * Flush the scatter/gather TLB on broken Pyxis chips.
  */
-void
+static void
 cia_broken_pyxis_tlb_invalidate(void)
 {
        uint32_t ctrl;
diff -r 797c29ab0619 -r bdd401f82103 sys/arch/alpha/pci/dwlpx_dma.c
--- a/sys/arch/alpha/pci/dwlpx_dma.c    Wed May 05 01:35:35 2021 +0000
+++ b/sys/arch/alpha/pci/dwlpx_dma.c    Wed May 05 02:15:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwlpx_dma.c,v 1.28 2020/11/18 02:04:29 thorpej Exp $ */
+/* $NetBSD: dwlpx_dma.c,v 1.29 2021/05/05 02:15:18 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dwlpx_dma.c,v 1.28 2020/11/18 02:04:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwlpx_dma.c,v 1.29 2021/05/05 02:15:18 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -52,21 +52,21 @@
 #include <alpha/pci/dwlpxvar.h>
 #include <alpha/pci/pci_kn8ae.h>
 
-bus_dma_tag_t dwlpx_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
+static bus_dma_tag_t dwlpx_dma_get_tag(bus_dma_tag_t, alpha_bus_t);
 
-int    dwlpx_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
-           bus_size_t, struct proc *, int);
+static int     dwlpx_bus_dmamap_load_sgmap(bus_dma_tag_t, bus_dmamap_t, void *,
+                   bus_size_t, struct proc *, int);
 
-int    dwlpx_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct mbuf *, int);
+static int     dwlpx_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct mbuf *, int);
 
-int    dwlpx_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           struct uio *, int);
+static int     dwlpx_bus_dmamap_load_uio_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   struct uio *, int);
 
-int    dwlpx_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
-           bus_dma_segment_t *, int, bus_size_t, int);
+static int     dwlpx_bus_dmamap_load_raw_sgmap(bus_dma_tag_t, bus_dmamap_t,
+                   bus_dma_segment_t *, int, bus_size_t, int);
 
-void   dwlpx_bus_dmamap_unload_sgmap(bus_dma_tag_t, bus_dmamap_t);



Home | Main Index | Thread Index | Old Index