Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Misc cosmetics and cleanup.
details: https://anonhg.NetBSD.org/src/rev/f138f6628bfa
branches: trunk
changeset: 1000009:f138f6628bfa
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 29 16:37:49 2019 +0000
description:
Misc cosmetics and cleanup.
diffstat:
sys/arch/atari/dev/clock.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (77 lines):
diff -r d0de003bd2d8 -r f138f6628bfa sys/arch/atari/dev/clock.c
--- a/sys/arch/atari/dev/clock.c Sat Jun 29 16:29:24 2019 +0000
+++ b/sys/arch/atari/dev/clock.c Sat Jun 29 16:37:49 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.59 2014/07/25 08:10:32 dholland Exp $ */
+/* $NetBSD: clock.c,v 1.60 2019/06/29 16:37:49 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.59 2014/07/25 08:10:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.60 2019/06/29 16:37:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -157,7 +157,7 @@
static int clk2min; /* current, from above choices */
#endif
-int
+static int
clockmatch(device_t parent, cfdata_t cf, void *aux)
{
@@ -169,7 +169,8 @@
/*
* Start the real-time clock.
*/
-void clockattach(device_t parent, device_t self, void *aux)
+static void
+clockattach(device_t parent, device_t self, void *aux)
{
struct clock_softc *sc = device_private(self);
struct todr_chip_handle *tch;
@@ -221,7 +222,8 @@
#endif /* STATCLOCK */
}
-void cpu_initclocks(void)
+void
+cpu_initclocks(void)
{
MFP->mf_tacr = T_Q200; /* Start timer */
@@ -316,7 +318,7 @@
*/
MFP->mf_tbcr = 0; /* Stop timer */
MFP->mf_iera &= ~IA_TIMB; /* Disable timer interrupts */
- MFP->mf_tbdr = 0;
+ MFP->mf_tbdr = 0;
MFP->mf_tbcr = T_Q004; /* Start timer */
}
@@ -559,9 +561,9 @@
*/
length = uio->uio_resid;
if (uio->uio_offset || (length != sizeof(buffer)
- && length != sizeof(buffer) - 1))
+ && length != sizeof(buffer) - 1))
return EINVAL;
-
+
if ((error = uiomove((void *)buffer, sizeof(buffer), uio)))
return error;
@@ -580,7 +582,7 @@
clkregs[MC_DOM] = twodigits(buffer, 6);
clkregs[MC_MONTH] = twodigits(buffer, 4);
s = twodigits(buffer, 0) * 100 + twodigits(buffer, 2);
- clkregs[MC_YEAR] = s - GEMSTARTOFTIME;
+ clkregs[MC_YEAR] = s - GEMSTARTOFTIME;
s = splclock();
MC146818_PUTTOD(RTC, &clkregs);
Home |
Main Index |
Thread Index |
Old Index