Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dev - make local functions/variables static



details:   https://anonhg.NetBSD.org/src/rev/d542e17c41f3
branches:  trunk
changeset: 758173:d542e17c41f3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Oct 24 13:34:27 2010 +0000

description:
- make local functions/variables static
- export more cons(9) functions in pvrvar.h

diffstat:

 sys/arch/dreamcast/dev/pvr.c    |  41 +++++++++++++++++++----------------------
 sys/arch/dreamcast/dev/pvrvar.h |   4 +++-
 2 files changed, 22 insertions(+), 23 deletions(-)

diffs (113 lines):

diff -r e7b99ecb616c -r d542e17c41f3 sys/arch/dreamcast/dev/pvr.c
--- a/sys/arch/dreamcast/dev/pvr.c      Sun Oct 24 13:16:12 2010 +0000
+++ b/sys/arch/dreamcast/dev/pvr.c      Sun Oct 24 13:34:27 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pvr.c,v 1.29 2010/10/20 13:00:06 tsutsui Exp $ */
+/*     $NetBSD: pvr.c,v 1.30 2010/10/24 13:34:27 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.29 2010/10/20 13:00:06 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.30 2010/10/24 13:34:27 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -155,43 +155,43 @@
        int nscreens;
 };
 
-int    pvr_match(device_t, cfdata_t, void *);
-void   pvr_attach(device_t, device_t, void *);
+static int     pvr_match(device_t, cfdata_t, void *);
+static void    pvr_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(pvr, sizeof(struct pvr_softc),
     pvr_match, pvr_attach, NULL, NULL);
 
-void   pvr_getdevconfig(struct fb_devconfig *);
+static void    pvr_getdevconfig(struct fb_devconfig *);
 
-struct fb_devconfig pvr_console_dc;
+static struct fb_devconfig pvr_console_dc;
 
-char pvr_stdscreen_textgeom[32] = { "std" };   /* XXX yuck */
+static char pvr_stdscreen_textgeom[32] = { "std" };    /* XXX yuck */
 
-struct wsscreen_descr pvr_stdscreen = {
+static struct wsscreen_descr pvr_stdscreen = {
        pvr_stdscreen_textgeom, 0, 0,
        0, /* textops */
        0, 0,
        WSSCREEN_WSCOLORS,
 };
 
-const struct wsscreen_descr *_pvr_scrlist[] = {
+static const struct wsscreen_descr *_pvr_scrlist[] = {
        &pvr_stdscreen,
 };
 
-const struct wsscreen_list pvr_screenlist = {
+static const struct wsscreen_list pvr_screenlist = {
        sizeof(_pvr_scrlist) / sizeof(struct wsscreen_descr *), _pvr_scrlist
 };
 
-int    pvrioctl(void *, void *, u_long, void *, int, struct lwp *);
-paddr_t        pvrmmap(void *, void *, off_t, int);
+static int     pvrioctl(void *, void *, u_long, void *, int, struct lwp *);
+static paddr_t pvrmmap(void *, void *, off_t, int);
 
-int    pvr_alloc_screen(void *, const struct wsscreen_descr *,
-           void **, int *, int *, long *);
-void   pvr_free_screen(void *, void *);
-int    pvr_show_screen(void *, void *, int,
-           void (*)(void *, int, int), void *);
+static int     pvr_alloc_screen(void *, const struct wsscreen_descr *,
+                   void **, int *, int *, long *);
+static void    pvr_free_screen(void *, void *);
+static int     pvr_show_screen(void *, void *, int,
+                   void (*)(void *, int, int), void *);
 
-const struct wsdisplay_accessops pvr_accessops = {
+static const struct wsdisplay_accessops pvr_accessops = {
        pvrioctl,
        pvrmmap,
        pvr_alloc_screen,
@@ -200,7 +200,7 @@
        NULL, /* load_font */
 };
 
-void   pvrinit(struct fb_devconfig *);
+static void    pvrinit(struct fb_devconfig *);
 
 int    pvr_is_console;
 
@@ -580,9 +580,6 @@
 
 /* Console support. */
 
-void   pvrcnprobe(struct consdev *);
-void   pvrcninit(struct consdev *);
-
 void
 pvrcninit(struct consdev *cndev)
 {
diff -r e7b99ecb616c -r d542e17c41f3 sys/arch/dreamcast/dev/pvrvar.h
--- a/sys/arch/dreamcast/dev/pvrvar.h   Sun Oct 24 13:16:12 2010 +0000
+++ b/sys/arch/dreamcast/dev/pvrvar.h   Sun Oct 24 13:34:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pvrvar.h,v 1.3 2001/02/01 01:25:56 thorpej Exp $ */
+/* $NetBSD: pvrvar.h,v 1.4 2010/10/24 13:34:27 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -32,4 +32,6 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+void   pvrcnprobe(struct consdev *);
+void   pvrcninit(struct consdev *);
 int    pvr_cnattach(void);



Home | Main Index | Thread Index | Old Index