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 Explicitly denote static functions.
details: https://anonhg.NetBSD.org/src/rev/ebf916521aa1
branches: trunk
changeset: 336145:ebf916521aa1
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 14 13:07:39 2015 +0000
description:
Explicitly denote static functions.
diffstat:
sys/arch/luna68k/stand/boot/disklabel.c | 4 ++--
sys/arch/luna68k/stand/boot/init_main.c | 6 +++---
sys/arch/luna68k/stand/boot/machdep.c | 4 ++--
sys/arch/luna68k/stand/boot/sc.c | 18 +++++++++---------
sys/arch/luna68k/stand/boot/sd.c | 8 ++++----
5 files changed, 20 insertions(+), 20 deletions(-)
diffs (175 lines):
diff -r 511c3fa6194f -r ebf916521aa1 sys/arch/luna68k/stand/boot/disklabel.c
--- a/sys/arch/luna68k/stand/boot/disklabel.c Sat Feb 14 13:06:28 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/disklabel.c Sat Feb 14 13:07:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.9 2015/02/14 06:16:29 tsutsui Exp $ */
+/* $NetBSD: disklabel.c,v 1.10 2015/02/14 13:07:39 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -329,7 +329,7 @@
return ST_NORMAL;
}
-void
+static void
display(struct disklabel *lp)
{
int i, j;
diff -r 511c3fa6194f -r ebf916521aa1 sys/arch/luna68k/stand/boot/init_main.c
--- a/sys/arch/luna68k/stand/boot/init_main.c Sat Feb 14 13:06:28 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/init_main.c Sat Feb 14 13:07:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.15 2014/04/21 11:06:55 tsutsui Exp $ */
+/* $NetBSD: init_main.c,v 1.16 2015/02/14 13:07:39 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -328,7 +328,7 @@
exit(0);
}
-int
+static int
get_plane_numbers(void)
{
int r = ROM_plane;
@@ -341,7 +341,7 @@
return n;
}
-int
+static int
reorder_dipsw(int dipsw)
{
int i, sw = 0;
diff -r 511c3fa6194f -r ebf916521aa1 sys/arch/luna68k/stand/boot/machdep.c
--- a/sys/arch/luna68k/stand/boot/machdep.c Sat Feb 14 13:06:28 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/machdep.c Sat Feb 14 13:07:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.4 2015/02/14 05:58:02 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.5 2015/02/14 13:07:39 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -157,7 +157,7 @@
/* #define KSADDR ((int *)&(((char *)&u)[(UPAGES-1)*NBPG])) */
-void
+static void
dumpmem(int *ptr, int sz, int ustack)
{
int i, val;
diff -r 511c3fa6194f -r ebf916521aa1 sys/arch/luna68k/stand/boot/sc.c
--- a/sys/arch/luna68k/stand/boot/sc.c Sat Feb 14 13:06:28 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/sc.c Sat Feb 14 13:07:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sc.c,v 1.13 2015/02/14 05:58:02 tsutsui Exp $ */
+/* $NetBSD: sc.c,v 1.14 2015/02/14 13:07:39 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -135,7 +135,7 @@
return 1;
}
-void
+static void
screset(struct scsi_softc *hs)
{
struct scsidevice *hd = hs->sc_spc;
@@ -270,7 +270,7 @@
* SPC Arbitration/Selection routine
*/
-int
+static int
issue_select(struct scsidevice *hd, uint8_t target)
{
@@ -299,7 +299,7 @@
* SPC Program Transfer routines
*/
-void
+static void
ixfer_start(struct scsidevice *hd, int len, uint8_t phase, int wait)
{
@@ -310,7 +310,7 @@
hd->scsi_scmd = SCMD_XFR | SCMD_PROG_XFR;
}
-void
+static void
ixfer_out(struct scsidevice *hd, int len, uint8_t *buf)
{
@@ -322,7 +322,7 @@
}
}
-void
+static void
ixfer_in(struct scsidevice *hd, int len, uint8_t *buf)
{
@@ -339,7 +339,7 @@
* SPC drive routines
*/
-int
+static int
scrun(int ctlr, int target, uint8_t *cdb, int cdblen, uint8_t *buf, int len,
volatile int *lock)
{
@@ -376,7 +376,7 @@
return 1;
}
-int
+static int
scfinish(int ctlr)
{
struct scsi_softc *hs = &scsi_softc[ctlr];
@@ -398,7 +398,7 @@
return status;
}
-void
+static void
scabort(struct scsi_softc *hs)
{
struct scsidevice *hd = hs->sc_spc;
diff -r 511c3fa6194f -r ebf916521aa1 sys/arch/luna68k/stand/boot/sd.c
--- a/sys/arch/luna68k/stand/boot/sd.c Sat Feb 14 13:06:28 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/sd.c Sat Feb 14 13:07:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.11 2014/04/16 12:01:53 tsutsui Exp $ */
+/* $NetBSD: sd.c,v 1.12 2015/02/14 13:07:39 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -96,10 +96,10 @@
struct disklabel sc_label;
};
+static int sdident(struct sd_softc *);
static struct sd_softc *sdinit(uint);
-static int sdident(struct sd_softc *);
-int
+static int
sdident(struct sd_softc *sc)
{
struct scsi_inquiry inqbuf;
@@ -123,7 +123,7 @@
return inqbuf.type;
}
-struct sd_softc *
+static struct sd_softc *
sdinit(uint unit)
{
struct sd_softc *sc;
Home |
Main Index |
Thread Index |
Old Index