summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/clock.c
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-01-10 17:11:09 +0000
committerkato <kato@FreeBSD.org>1997-01-10 17:11:09 +0000
commit3dab297b1fa171d9e5b6e1138b8199dc1d7c539e (patch)
tree859136d59ac45d7566d26ec717c3d24277d97e3a /sys/pc98/cbus/clock.c
parent25919acc5bb50de681089b548902d09bec328817 (diff)
downloadFreeBSD-src-3dab297b1fa171d9e5b6e1138b8199dc1d7c539e.zip
FreeBSD-src-3dab297b1fa171d9e5b6e1138b8199dc1d7c539e.tar.gz
Staticize the functions rtc_inb, rtc_outb, rtc_serialcombit, and
rtc_serialcom. These functions are only used by PC98.
Diffstat (limited to 'sys/pc98/cbus/clock.c')
-rw-r--r--sys/pc98/cbus/clock.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index 2bddae2..7af0802 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.10 1996/10/30 22:39:48 asami Exp $
+ * $Id: clock.c,v 1.11 1997/01/04 06:38:46 kato Exp $
*/
/*
@@ -169,8 +169,10 @@ static u_char timer1_state;
static u_char timer2_state;
static void (*timer_func) __P((struct clockframe *frame)) = hardclock;
#ifdef PC98
-int rtc_inb __P((void));
-void rtc_outb __P((int));
+static void rtc_serialcombit __P((int));
+static void rtc_serialcom __P((int));
+static int rtc_inb __P((void));
+static void rtc_outb __P((int));
#endif
#if defined(I586_CPU) || defined(I686_CPU)
@@ -824,7 +826,7 @@ startrtclock()
}
#ifdef PC98
-void
+static void
rtc_serialcombit(int i)
{
outb(IO_RTC, ((i&0x01)<<5)|0x07);
@@ -835,7 +837,7 @@ rtc_serialcombit(int i)
DELAY(1);
}
-void
+static void
rtc_serialcom(int i)
{
rtc_serialcombit(i&0x01);
@@ -850,7 +852,7 @@ rtc_serialcom(int i)
DELAY(1);
}
-void
+static void
rtc_outb(int val)
{
int s;
@@ -866,7 +868,7 @@ rtc_outb(int val)
outb(IO_RTC, sa & 0xef); /* CLK 0 */
}
-int
+static int
rtc_inb(void)
{
int s;
OpenPOWER on IntegriCloud