Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips/dev KNF
details: https://anonhg.NetBSD.org/src/rev/2592a1cc8d92
branches: trunk
changeset: 559895:2592a1cc8d92
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Mar 25 15:16:11 2004 +0000
description:
KNF
diffstat:
sys/arch/sgimips/dev/int.c | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diffs (87 lines):
diff -r b57d214fad10 -r 2592a1cc8d92 sys/arch/sgimips/dev/int.c
--- a/sys/arch/sgimips/dev/int.c Thu Mar 25 15:12:42 2004 +0000
+++ b/sys/arch/sgimips/dev/int.c Thu Mar 25 15:16:11 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int.c,v 1.5 2004/03/25 15:08:57 pooka Exp $ */
+/* $NetBSD: int.c,v 1.6 2004/03/25 15:16:11 pooka Exp $ */
/*
* Copyright (c) 2004 Christopher SEKIYA
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: int.c,v 1.5 2004/03/25 15:08:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: int.c,v 1.6 2004/03/25 15:16:11 pooka Exp $");
#include "opt_cputype.h"
@@ -77,8 +77,9 @@
static int
int_match(struct device *parent, struct cfdata *match, void *aux)
{
- if ( (mach_type == MACH_SGI_IP12) || (mach_type == MACH_SGI_IP20) ||
- (mach_type == MACH_SGI_IP22) )
+
+ if ((mach_type == MACH_SGI_IP12) || (mach_type == MACH_SGI_IP20) ||
+ (mach_type == MACH_SGI_IP22) )
return 1;
return 0;
@@ -137,7 +138,8 @@
int_cal_timer();
cps = 0;
- for (i = 0; i < sizeof(ctrdiff) / sizeof(ctrdiff[0]); i++) {
+ for (i = 0;
+ i < sizeof(ctrdiff) / sizeof(ctrdiff[0]); i++) {
do {
ctrdiff[i] = int_cal_timer();
} while (ctrdiff[i] == 0);
@@ -147,7 +149,8 @@
cps = cps / (sizeof(ctrdiff) / sizeof(ctrdiff[0]));
- printf(": bus %luMHz, CPU %luMHz", cps / 10000, cps / 5000);
+ printf(": bus %luMHz, CPU %luMHz",
+ cps / 10000, cps / 5000);
/* R4k/R4400/R4600/R5k count at half CPU frequency */
curcpu()->ci_cpu_freq = 2 * cps * hz;
@@ -210,7 +213,8 @@
}
void
-int_local0_intr(u_int32_t status, u_int32_t cause, u_int32_t pc, u_int32_t ipending)
+int_local0_intr(u_int32_t status, u_int32_t cause, u_int32_t pc,
+ u_int32_t ipending)
{
int i;
int ret;
@@ -228,13 +232,15 @@
if (intrtab[i].ih_fun != NULL)
ret |= (intrtab[i].ih_fun)(intrtab[i].ih_arg);
else
- printf("int0: unexpected local0 interrupt %d\n", i);
+ printf("int0: unexpected local0 interrupt %d\n",
+ i);
}
}
}
void
-int_local1_intr(u_int32_t status, u_int32_t cause, u_int32_t pc, u_int32_t ipending)
+int_local1_intr(u_int32_t status, u_int32_t cause, u_int32_t pc,
+ u_int32_t ipending)
{
int i;
int ret;
@@ -254,7 +260,7 @@
(intrtab[8 + i].ih_arg);
else
printf("int0: unexpected local1 interrupt %x\n",
- 8 + i );
+ 8 + i);
}
}
}
Home |
Main Index |
Thread Index |
Old Index