Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Remove white-spaces.
details: https://anonhg.NetBSD.org/src/rev/53db331887fe
branches: trunk
changeset: 752900:53db331887fe
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Wed Mar 10 18:28:30 2010 +0000
description:
Remove white-spaces.
diffstat:
sys/arch/powerpc/oea/ofw_consinit.c | 32 ++++++++++++++++----------------
sys/arch/powerpc/oea/ofw_rascons.c | 34 +++++++++++++++++-----------------
sys/arch/powerpc/oea/ofwoea_machdep.c | 12 ++++++------
sys/arch/powerpc/pic/intr.c | 22 +++++++++++-----------
4 files changed, 50 insertions(+), 50 deletions(-)
diffs (truncated from 358 to 300 lines):
diff -r 3a99a73b6deb -r 53db331887fe sys/arch/powerpc/oea/ofw_consinit.c
--- a/sys/arch/powerpc/oea/ofw_consinit.c Wed Mar 10 18:18:47 2010 +0000
+++ b/sys/arch/powerpc/oea/ofw_consinit.c Wed Mar 10 18:28:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_consinit.c,v 1.8 2008/09/25 14:47:54 macallan Exp $ */
+/* $NetBSD: ofw_consinit.c,v 1.9 2010/03/10 18:36:05 kiyohara Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.8 2008/09/25 14:47:54 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.9 2010/03/10 18:36:05 kiyohara Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -135,7 +135,7 @@
ofwoea_bootstrap_console();
OFPRINTF("console node: %08x\n", console_node);
-
+
if (console_node == -1)
goto nocons;
@@ -254,15 +254,15 @@
* This is not enough, we have a few more problems:
*
* (1) The stupid Macintosh firmware uses a
- * `psuedo-hid' (no typo) or `pseudo-hid',
- * which apparently merges all keyboards
- * input into a single input stream.
- * Because of this, we can't actually
- * determine which controller or keyboard
+ * `psuedo-hid' (no typo) or `pseudo-hid',
+ * which apparently merges all keyboards
+ * input into a single input stream.
+ * Because of this, we can't actually
+ * determine which controller or keyboard
* is really the console keyboard!
*
* (2) Even if we could, the keyboard can be USB,
- * and this requires a lot of the kernel to
+ * and this requires a lot of the kernel to
* be running in order for it to work.
*
* (3) If the keyboard is behind isa, we don't have enough
@@ -271,9 +271,9 @@
* So, what we do is this:
*
* (1) First check for OpenFirmware implementation
- * that will not let us distinguish between
- * USB and ADB. In that situation, try attaching
- * anything as we can, and hope things get better
+ * that will not let us distinguish between
+ * USB and ADB. In that situation, try attaching
+ * anything as we can, and hope things get better
* at autoconfiguration time.
*
* (2) Assume the keyboard is USB.
@@ -288,7 +288,7 @@
*/
/*
- * stdin is /pseudo-hid/keyboard. There is no
+ * stdin is /pseudo-hid/keyboard. There is no
* `adb-kbd-ihandle or `usb-kbd-ihandles methods
* available. Try attaching as ADB.
* But only if ADB support is actually present.
@@ -309,7 +309,7 @@
#endif
} else {
/* must be USB */
- printf("No ADB support present, assuming USB "
+ printf("No ADB support present, assuming USB "
"keyboard\n");
#if NUKBD > 0
ukbd_cnattach();
@@ -413,7 +413,7 @@
* Bootstrap console support functions
*/
-static int
+static int
ofwbootcons_cngetc(dev_t dev)
{
unsigned char ch = '\0';
@@ -463,7 +463,7 @@
node = OF_instance_to_package(stdout);
console_node = node;
console_instance = stdout;
-
+
return;
nocons:
panic("No /chosen could be found!\n");
diff -r 3a99a73b6deb -r 53db331887fe sys/arch/powerpc/oea/ofw_rascons.c
--- a/sys/arch/powerpc/oea/ofw_rascons.c Wed Mar 10 18:18:47 2010 +0000
+++ b/sys/arch/powerpc/oea/ofw_rascons.c Wed Mar 10 18:28:30 2010 +0000
@@ -1,21 +1,21 @@
-/* $NetBSD: ofw_rascons.c,v 1.3 2009/03/18 10:22:34 cegger Exp $ */
+/* $NetBSD: ofw_rascons.c,v 1.4 2010/03/10 18:36:05 kiyohara Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
- *
+ *
* Permission to use, copy, modify and distribute this software and
* its documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution%CS.CMU.EDU@localhost
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_rascons.c,v 1.3 2009/03/18 10:22:34 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_rascons.c,v 1.4 2010/03/10 18:36:05 kiyohara Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -95,12 +95,12 @@
/* move (rom monitor) cursor to the lowest line - 1 */
OF_interpret("#lines 2 - to line#", 0, 0);
-
+
wsfont_init();
if (copy_rom_font() == 0) {
romfont_loaded = 1;
}
-
+
/* set up rasops */
rascons_init_rasops(console_node, ri);
@@ -117,7 +117,7 @@
crow = 0;
}
#endif
-
+
rascons_stdscreen.nrows = ri->ri_rows;
rascons_stdscreen.ncols = ri->ri_cols;
rascons_stdscreen.textops = &ri->ri_ops;
@@ -126,7 +126,7 @@
ri->ri_ops.allocattr(ri, 0, 0, 0, &defattr);
wsdisplay_preattach(&rascons_stdscreen, ri, 0, max(0,
min(crow, ri->ri_rows - 1)), defattr);
-
+
#if notyet
rascons_init_cmap(NULL);
#endif
@@ -154,7 +154,7 @@
* virtual address space.
*/
OF_call_method("translate", mmu, 1, 3, romfont, &romfont, &m, &e);
-
+
/* Get character size */
OF_interpret("char-width", 0, 1, &char_width);
OF_interpret("char-height", 0, 1, &char_height);
@@ -199,7 +199,7 @@
if (rascons_enable_cache) {
vaddr_t va;
/*
- * Let's try to find an empty BAT to use
+ * Let's try to find an empty BAT to use
*/
for (va = SEGMENT_LENGTH; va < (USER_SR << ADDR_SR_SHFT);
va += SEGMENT_LENGTH) {
@@ -229,9 +229,9 @@
if (romfont_loaded) {
int cols, rows;
- /*
- * XXX this assumes we're the console which may or may not
- * be the case
+ /*
+ * XXX this assumes we're the console which may or may not
+ * be the case
*/
OF_interpret("#lines", 0, 1, &rows);
OF_interpret("#columns", 0, 1, &cols);
@@ -240,7 +240,7 @@
rasops_init(ri, rows, cols);
ri->ri_xorigin = (width - cols * ri->ri_font->fontwidth) >> 1;
- ri->ri_yorigin = (height - rows * ri->ri_font->fontheight)
+ ri->ri_yorigin = (height - rows * ri->ri_font->fontheight)
>> 1;
ri->ri_bits = (char *)fbaddr + ri->ri_xorigin +
ri->ri_stride * ri->ri_yorigin;
diff -r 3a99a73b6deb -r 53db331887fe sys/arch/powerpc/oea/ofwoea_machdep.c
--- a/sys/arch/powerpc/oea/ofwoea_machdep.c Wed Mar 10 18:18:47 2010 +0000
+++ b/sys/arch/powerpc/oea/ofwoea_machdep.c Wed Mar 10 18:28:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwoea_machdep.c,v 1.18 2010/01/17 16:47:17 phx Exp $ */
+/* $NetBSD: ofwoea_machdep.c,v 1.19 2010/03/10 18:36:05 kiyohara Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,11 +30,11 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.18 2010/01/17 16:47:17 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.19 2010/03/10 18:36:05 kiyohara Exp $");
#include "opt_ppcarch.h"
#include "opt_compat_netbsd.h"
-#include "opt_ddb.h"
+#include "opt_ddb.h"
#include "opt_kgdb.h"
#include "opt_ipkdb.h"
#include "opt_modular.h"
@@ -344,7 +344,7 @@
}
}
pmap_update(&ofw_pmap);
-}
+}
@@ -403,7 +403,7 @@
node = OF_finddevice("/");
bitmap = ranges_bitmap(node, 0);
oea_batinit(0);
-
+
#ifdef macppc
/* XXX this is a macppc-specific hack */
bitmap = 0x8f00;
@@ -671,7 +671,7 @@
tag->pbs_offset = 0;
tag->pbs_base = region.addr;
tag->pbs_limit = region.size + region.addr;
- }
+ }
error = bus_space_init(tag, name, ex_storage[exmap],
sizeof(ex_storage[exmap]));
diff -r 3a99a73b6deb -r 53db331887fe sys/arch/powerpc/pic/intr.c
--- a/sys/arch/powerpc/pic/intr.c Wed Mar 10 18:18:47 2010 +0000
+++ b/sys/arch/powerpc/pic/intr.c Wed Mar 10 18:28:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.6 2008/04/29 06:53:02 martin Exp $ */
+/* $NetBSD: intr.c,v 1.7 2010/03/10 18:28:30 kiyohara Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.6 2008/04/29 06:53:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.7 2010/03/10 18:28:30 kiyohara Exp $");
#include "opt_multiprocessor.h"
@@ -94,7 +94,7 @@
pic->pic_intrbase = max_base;
max_base += pic->pic_numintrs;
num_pics++;
-
+
return pic->pic_intrbase;
}
@@ -399,7 +399,7 @@
/* IPL_SERIAL must block IPL_TTY */
imask[IPL_SERIAL] |= imask[IPL_TTY];
- /* IPL_HIGH must block all other priority levels */
+ /* IPL_HIGH must block all other priority levels */
for (i = IPL_NONE; i < IPL_HIGH; i++)
imask[IPL_HIGH] |= imask[i];
#else /* !SLOPPY_IPLS */
@@ -431,7 +431,7 @@
for (i = 0; i < current->pic_numintrs; i++)
current->pic_disable_irq(current, i);
Home |
Main Index |
Thread Index |
Old Index