Clean up white spaces and tabs.

This commit is contained in:
isaki 2007-05-12 06:31:18 +00:00
parent 9b78dfb5bb
commit 23df019b96
23 changed files with 145 additions and 146 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: com.c,v 1.44 2007/03/11 08:09:23 isaki Exp $ */
/* $NetBSD: com.c,v 1.45 2007/05/12 06:31:18 isaki Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.44 2007/03/11 08:09:23 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.45 2007/05/12 06:31:18 isaki Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -282,7 +282,7 @@ comprobeHAYESP(int iobase, struct com_softc *sc)
printf(": ESP");
/* Check ESP Self Test bits. */
/* Check ESP Self Test bits. */
/* Check for ESP version 2.0: bits 4,5,6 == 010 */
outb(iobase + HAYESP_CMD1, HAYESP_GETTEST);
val = inb(iobase + HAYESP_STATUS1); /* Clear reg 1 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.73 2007/03/11 08:09:24 isaki Exp $ */
/* $NetBSD: fd.c,v 1.74 2007/05/12 06:31:18 isaki Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.73 2007/03/11 08:09:24 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.74 2007/05/12 06:31:18 isaki Exp $");
#include "rnd.h"
#include "opt_ddb.h"
@ -224,7 +224,7 @@ struct fd_softc {
daddr_t sc_blkno; /* starting block number */
int sc_bcount; /* byte count left */
int sc_opts; /* user-set options */
int sc_opts; /* user-set options */
int sc_skip; /* bytes already transferred */
int sc_nblks; /* number of blocks currently transferring */
int sc_nbytes; /* number of bytes currently transferring */
@ -629,7 +629,7 @@ fdstrategy(struct buf *bp)
struct fd_softc *fd;
int unit = FDUNIT(bp->b_dev);
int sz;
int s;
int s;
if (unit >= fd_cd.cd_ndevs ||
(fd = fd_cd.cd_devs[unit]) == 0 ||
@ -667,7 +667,7 @@ fdstrategy(struct buf *bp)
}
bp->b_rawblkno = bp->b_blkno;
bp->b_cylinder = bp->b_blkno / (FDC_BSIZE / DEV_BSIZE)
bp->b_cylinder = bp->b_blkno / (FDC_BSIZE / DEV_BSIZE)
/ (fd->sc_type->seccyl * (1 << (fd->sc_type->secsize - 2)));
DPRINTF(("fdstrategy: %s b_blkno %" PRId64 " b_bcount %ld cylin %ld\n",
@ -856,7 +856,7 @@ out_fdc(bus_space_tag_t iot, bus_space_handle_t ioh, u_char x)
int
fdopen(dev_t dev, int flags, int mode, struct lwp *l)
{
int unit;
int unit;
struct fd_softc *fd;
struct fd_type *type;
struct fdc_softc *fdc;
@ -903,7 +903,7 @@ fdopen(dev_t dev, int flags, int mode, struct lwp *l)
int
fdclose(dev_t dev, int flags, int mode, struct lwp *l)
{
int unit = FDUNIT(dev);
int unit = FDUNIT(dev);
struct fd_softc *fd = fd_cd.cd_devs[unit];
struct fdc_softc *fdc = (void *)device_parent(&fd->sc_dev);
@ -1044,7 +1044,7 @@ loop:
}
/* no drives waiting; end */
fdc->sc_state = DEVIDLE;
return 1;
return 1;
}
/* Is there a transfer to this drive? If not, deactivate drive. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ne_neptune.c,v 1.11 2005/12/11 12:19:37 christos Exp $ */
/* $NetBSD: if_ne_neptune.c,v 1.12 2007/05/12 06:31:18 isaki Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ne_neptune.c,v 1.11 2005/12/11 12:19:37 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ne_neptune.c,v 1.12 2007/05/12 06:31:18 isaki Exp $");
#include "opt_inet.h"
#include "opt_ns.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: intio.c,v 1.31 2007/03/11 08:09:24 isaki Exp $ */
/* $NetBSD: intio.c,v 1.32 2007/05/12 06:31:18 isaki Exp $ */
/*-
* Copyright (c) 1998 NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: intio.c,v 1.31 2007/03/11 08:09:24 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: intio.c,v 1.32 2007/05/12 06:31:18 isaki Exp $");
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: intio_dmac.c,v 1.25 2007/03/11 08:09:24 isaki Exp $ */
/* $NetBSD: intio_dmac.c,v 1.26 2007/05/12 06:31:18 isaki Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: intio_dmac.c,v 1.25 2007/03/11 08:09:24 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: intio_dmac.c,v 1.26 2007/05/12 06:31:18 isaki Exp $");
#include "opt_m680x0.h"
@ -124,7 +124,7 @@ dmac_attach(struct device *parent, struct device *self, void *aux)
r = intio_map_allocate_region(parent, ia, INTIO_MAP_ALLOCATE);
#ifdef DIAGNOSTIC
if (r)
panic ("IO map for DMAC corruption??");
panic("IO map for DMAC corruption??");
#endif
((struct intio_softc*) parent)->sc_dmac = self;

View File

@ -1,4 +1,4 @@
/* $NetBSD: intiovar.h,v 1.7 2005/12/11 12:19:37 christos Exp $ */
/* $NetBSD: intiovar.h,v 1.8 2007/05/12 06:31:19 isaki Exp $ */
/*
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: ite.c,v 1.49 2007/03/11 08:09:24 isaki Exp $ */
/* $NetBSD: ite.c,v 1.50 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.49 2007/03/11 08:09:24 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.50 2007/05/12 06:31:19 isaki Exp $");
#include "ite.h"
#if NITE > 0
@ -877,7 +877,7 @@ ite_filter(u_char c)
splx(s);
return;
}
/* if not string, apply META and CTRL modifiers */
/* if not string, apply META and CTRL modifiers */
if (! (key.mode & KBD_MODE_STRING)
&& (!(key.mode & KBD_MODE_KPAD) ||
(kbd_ite && !kbd_ite->keypad_appmode))) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: itevar.h,v 1.11 2005/12/11 12:19:37 christos Exp $ */
/* $NetBSD: itevar.h,v 1.12 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbd.c,v 1.30 2007/04/29 20:23:35 msaitoh Exp $ */
/* $NetBSD: kbd.c,v 1.31 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.30 2007/04/29 20:23:35 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.31 2007/05/12 06:31:19 isaki Exp $");
#include "ite.h"
#include "bell.h"
@ -389,7 +389,7 @@ unsigned char kbdled;
void
kbd_setLED(void)
{
mfp_send_usart(~kbdled | 0x80);
mfp_send_usart(~kbdled | 0x80);
}
int

View File

@ -1,10 +1,10 @@
/* $NetBSD: kbdmap.c,v 1.5 2005/12/11 12:19:37 christos Exp $ */
/* $NetBSD: kbdmap.c,v 1.6 2007/05/12 06:31:19 isaki Exp $ */
/* from: arch/amiga/dev/kbdmap.c */
/* modified for X680x0 by Masaru Oki and Makoto MINOURA */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kbdmap.c,v 1.5 2005/12/11 12:19:37 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kbdmap.c,v 1.6 2007/05/12 06:31:19 isaki Exp $");
#include "kbdmap.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbdmap.c.ascii,v 1.2 1998/01/05 20:52:15 perry Exp $ */
/* $NetBSD: kbdmap.c.ascii,v 1.3 2007/05/12 06:31:19 isaki Exp $ */
/* from: arch/amiga/dev/kbdmap.c */
/* modified for X680x0 by Masaru Oki */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mha.c,v 1.44 2007/03/11 08:09:24 isaki Exp $ */
/* $NetBSD: mha.c,v 1.45 2007/05/12 06:31:19 isaki Exp $ */
/*-
* Copyright (c) 1996-1999 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mha.c,v 1.44 2007/03/11 08:09:24 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: mha.c,v 1.45 2007/05/12 06:31:19 isaki Exp $");
#include "opt_ddb.h"
@ -381,7 +381,7 @@ mhaattach(struct device *parent, struct device *self, void *aux)
WAR = WA_MCSBUFWIN;
/* drop off */
while(SSR & SS_IREQUEST) {
while (SSR & SS_IREQUEST) {
(void) ISCSR;
}
@ -389,7 +389,7 @@ mhaattach(struct device *parent, struct device *self, void *aux)
SPC_TRACE(("waiting for intr..."));
while (!(SSR & SS_IREQUEST))
delay(10);
delay(10);
mhaintr(sc);
tmpsc = NULL;
@ -570,14 +570,13 @@ mhaselect(struct mha_softc *sc, u_char target, u_char lun, u_char *cmd,
WAIT;
#if 1
SPC_MISC(("[cmd:"));
for (i = 0; i < clen; i++)
{
unsigned c = cmd[i];
if (i == 1)
c |= lun << 5;
SPC_MISC((" %02x", c));
sc->sc_pcx[i] = c;
}
for (i = 0; i < clen; i++) {
unsigned c = cmd[i];
if (i == 1)
c |= lun << 5;
SPC_MISC((" %02x", c));
sc->sc_pcx[i] = c;
}
SPC_MISC(("], target=%d\n", target));
#else
memcpy(sc->sc_pcx, cmd, clen);

View File

@ -1,4 +1,4 @@
/* $NetBSD: opmbell.c,v 1.18 2007/03/11 08:22:33 isaki Exp $ */
/* $NetBSD: opmbell.c,v 1.19 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1995 MINOURA Makoto, Takuya Harakawa.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: opmbell.c,v 1.18 2007/03/11 08:22:33 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: opmbell.c,v 1.19 2007/05/12 06:31:19 isaki Exp $");
#include "bell.h"
#if NBELL > 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: par.c,v 1.30 2007/03/11 08:22:33 isaki Exp $ */
/* $NetBSD: par.c,v 1.31 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: par.c,v 1.30 2007/03/11 08:22:33 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: par.c,v 1.31 2007/05/12 06:31:19 isaki Exp $");
#include <sys/param.h>
#include <sys/errno.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.31 2007/03/11 08:09:26 isaki Exp $ */
/* $NetBSD: zs.c,v 1.32 2007/05/12 06:31:19 isaki Exp $ */
/*-
* Copyright (c) 1998 Minoura Makoto
@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.31 2007/03/11 08:09:26 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.32 2007/05/12 06:31:19 isaki Exp $");
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.50 2007/03/04 02:08:09 tsutsui Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.50 2007/03/04 02:08:09 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.51 2007/05/12 06:31:19 isaki Exp $");
#include "opt_compat_netbsd.h"
#include "scsibus.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.25 2007/03/04 06:01:08 christos Exp $ */
/* $NetBSD: clock.c,v 1.26 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.25 2007/03/04 06:01:08 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.26 2007/05/12 06:31:19 isaki Exp $");
#include "clock.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.28 2007/03/05 12:37:53 tsutsui Exp $ */
/* $NetBSD: disksubr.c,v 1.29 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.28 2007/03/05 12:37:53 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.29 2007/05/12 06:31:19 isaki Exp $");
#include "opt_compat_netbsd.h"
@ -297,8 +297,8 @@ setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask,
npp->p_cpg = opp->p_cpg;
}
}
nlp->d_checksum = 0;
nlp->d_checksum = dkcksum(nlp);
nlp->d_checksum = 0;
nlp->d_checksum = dkcksum(nlp);
*olp = *nlp;
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: iodevice.h,v 1.9 2005/12/11 12:19:45 christos Exp $ */
/* $NetBSD: iodevice.h,v 1.10 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1993, 1994, 1995 Masaru Oki
@ -59,7 +59,7 @@ struct dmac {
unsigned char csr;
unsigned char cer;
char pad0[2]; unsigned char dcr;
unsigned char ocr;
unsigned char ocr;
unsigned char scr;
unsigned char ccr;
char pad1[2]; unsigned short mtc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kgdb_glue.c,v 1.8 2005/12/24 22:45:40 perry Exp $ */
/* $NetBSD: kgdb_glue.c,v 1.9 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1991, 1993
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kgdb_glue.c,v 1.8 2005/12/24 22:45:40 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: kgdb_glue.c,v 1.9 2007/05/12 06:31:19 isaki Exp $");
#include "opt_kgdb.h"
@ -57,7 +57,7 @@ __KERNEL_RCSID(0, "$NetBSD: kgdb_glue.c,v 1.8 2005/12/24 22:45:40 perry Exp $");
#include <machine/reg.h>
#ifndef lint
static char rcsid[] = "$NetBSD: kgdb_glue.c,v 1.8 2005/12/24 22:45:40 perry Exp $";
static char rcsid[] = "$NetBSD: kgdb_glue.c,v 1.9 2007/05/12 06:31:19 isaki Exp $";
#endif
#define KGDB_STACKSIZE 0x800
@ -145,7 +145,7 @@ int kgdb_testval;
int
kgdb_test(int i)
{
++kgdb_testval;
return (i + 1);
++kgdb_testval;
return (i + 1);
}
#endif /* KGDB */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kgdb_stub.c,v 1.14 2007/03/04 06:01:08 christos Exp $ */
/* $NetBSD: kgdb_stub.c,v 1.15 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1990, 1993
@ -45,13 +45,13 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kgdb_stub.c,v 1.14 2007/03/04 06:01:08 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kgdb_stub.c,v 1.15 2007/05/12 06:31:19 isaki Exp $");
#include "opt_kgdb.h"
#ifdef KGDB
#ifndef lint
static char rcsid[] = "$NetBSD: kgdb_stub.c,v 1.14 2007/03/04 06:01:08 christos Exp $";
static char rcsid[] = "$NetBSD: kgdb_stub.c,v 1.15 2007/05/12 06:31:19 isaki Exp $";
#endif
#include <sys/param.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.140 2007/04/29 05:31:00 isaki Exp $ */
/* $NetBSD: machdep.c,v 1.141 2007/05/12 06:31:19 isaki Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.140 2007/04/29 05:31:00 isaki Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.141 2007/05/12 06:31:19 isaki Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -380,7 +380,7 @@ static const char *fpu_descr[] = {
void
identifycpu(void)
{
/* there's alot of XXX in here... */
/* there's alot of XXX in here... */
const char *cpu_type, *mach, *mmu, *fpu;
char clock[16];
@ -516,10 +516,10 @@ cpu_reboot(int howto, char *bootstr)
* a2: the power switch is off
* Remove the power; the simplest way is go back to ROM eg. reboot
* b) RB_HALT
* call cngetc
* c) otherwise
* call cngetc
* c) otherwise
* Reboot
*/
*/
if (((howto & RB_POWERDOWN) == RB_POWERDOWN) && power_switch_is_off)
doboot();
else if (/*((howto & RB_POWERDOWN) == RB_POWERDOWN) ||*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_bootstrap.c,v 1.33 2007/03/05 20:55:45 he Exp $ */
/* $NetBSD: pmap_bootstrap.c,v 1.34 2007/05/12 06:31:20 isaki Exp $ */
/*
* Copyright (c) 1991, 1993
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.33 2007/03/05 20:55:45 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.34 2007/05/12 06:31:20 isaki Exp $");
#include "opt_m680x0.h"
@ -262,9 +262,9 @@ pmap_bootstrap(paddr_t nextpa, paddr_t firstpa)
*ste++ = SG_NV;
*pte++ = PG_NV;
}
/*
/*
* Initialize the last one to point to Sysptmap.
*/
*/
*ste = kptmpa | SG_RW | SG_V;
*pte = kptmpa | PG_RW | PG_CI | PG_V;
}