Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/stand/boot Make local functions and variabl...
details: https://anonhg.NetBSD.org/src/rev/ac6de6d15063
branches: trunk
changeset: 336128:ac6de6d15063
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 14 06:31:31 2015 +0000
description:
Make local functions and variables static.
diffstat:
sys/arch/luna68k/stand/boot/bmd.c | 45 ++++++++++++++++++++------------------
1 files changed, 24 insertions(+), 21 deletions(-)
diffs (129 lines):
diff -r 555ef3c1879f -r ac6de6d15063 sys/arch/luna68k/stand/boot/bmd.c
--- a/sys/arch/luna68k/stand/boot/bmd.c Sat Feb 14 06:16:29 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/bmd.c Sat Feb 14 06:31:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bmd.c,v 1.6 2015/02/14 05:58:02 tsutsui Exp $ */
+/* $NetBSD: bmd.c,v 1.7 2015/02/14 06:31:31 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -117,12 +117,12 @@
#define SKIP_NEXT_LINE(addr) (addr += (PL_WIDTH - SL_WIDTH))
-void bmd_draw_char(uint8_t *, uint8_t *, int, int, int);
-void bmd_reverse_char(uint8_t *, uint8_t *, int, int);
-void bmd_erase_char(uint8_t *, uint8_t *, int, int);
-void bmd_erase_screen(volatile uint32_t *);
-void bmd_scroll_screen(volatile uint32_t *, volatile uint32_t *,
- int, int, int, int);
+static void bmd_draw_char(uint8_t *, uint8_t *, int, int, int);
+static void bmd_reverse_char(uint8_t *, uint8_t *, int, int);
+static void bmd_erase_char(uint8_t *, uint8_t *, int, int);
+static void bmd_erase_screen(volatile uint32_t *);
+static void bmd_scroll_screen(volatile uint32_t *, volatile uint32_t *,
+ int, int, int, int);
struct bmd_linec {
@@ -153,19 +153,21 @@
#define STAT_ESCAPE 0x0001
#define STAT_INSERT 0x0100
-struct bmd_softc bmd_softc;
-struct bmd_linec bmd_linec[52];
+static struct bmd_softc bmd_softc;
+static struct bmd_linec bmd_linec[52];
-void bmd_escape(int);
-void bmd_escape_0(int);
-void bmd_escape_1(int);
+static void bmd_escape(int);
+static void bmd_escape_0(int);
+#if 0
+static void bmd_escape_1(int);
+#endif
/*
* Escape-Sequence
*/
-void
+static void
bmd_escape(int c)
{
struct bmd_softc *bp = &bmd_softc;
@@ -184,7 +186,7 @@
}
}
-void
+static void
bmd_escape_0(int c)
{
struct bmd_softc *bp = &bmd_softc;
@@ -234,7 +236,8 @@
bp->bc_escape = bmd_escape;
}
-void
+#if 0
+static void
bmd_escape_1(int c)
{
struct bmd_softc *bp = &bmd_softc;
@@ -270,7 +273,7 @@
break;
}
}
-
+#endif
/*
* Entry Routine
@@ -468,7 +471,7 @@
* charactor operation routines
*/
-void
+static void
bmd_draw_char(uint8_t *raddr, uint8_t *waddr, int col, int row, int c)
{
volatile uint16_t *p, *q;
@@ -539,7 +542,7 @@
}
}
-void
+static void
bmd_reverse_char(uint8_t *raddr, uint8_t *waddr, int col, int row)
{
volatile uint16_t *p, *q;
@@ -601,7 +604,7 @@
}
}
-void
+static void
bmd_erase_char(uint8_t *raddr, uint8_t *waddr, int col, int row)
{
@@ -613,7 +616,7 @@
* screen operation routines
*/
-void
+static void
bmd_erase_screen(volatile uint32_t *lp)
{
int i, j;
@@ -625,7 +628,7 @@
}
}
-void
+static void
bmd_scroll_screen(volatile uint32_t *lp, volatile uint32_t *lq,
int xmin, int xmax, int ymin, int ymax)
{
Home |
Main Index |
Thread Index |
Old Index