TAB/space cleanup.
This commit is contained in:
parent
6c1f753c7c
commit
9dae7193b1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: console.c,v 1.4 2003/07/15 01:29:22 lukem Exp $ */
|
||||
/* $NetBSD: console.c,v 1.5 2003/09/12 14:59:11 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -26,11 +26,11 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.4 2003/07/15 01:29:22 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.5 2003/09/12 14:59:11 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: disksubr.c,v 1.12 2003/08/07 16:27:16 agc Exp $ */
|
||||
/* $NetBSD: disksubr.c,v 1.13 2003/09/12 14:59:12 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.12 2003/08/07 16:27:16 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.13 2003/09/12 14:59:12 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -44,7 +44,7 @@ __KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.12 2003/08/07 16:27:16 agc Exp $");
|
||||
static struct mbr_partition *
|
||||
mbr_findslice(struct mbr_partition* dp, struct buf *bp);
|
||||
|
||||
/*
|
||||
/*
|
||||
* Scan MBR for NetBSD partittion. Return NO_MBR_SIGNATURE if no MBR found
|
||||
* Otherwise, copy valid MBR partition-table into dp, and if a NetBSD
|
||||
* partition is found, return a pointer to it; else return NULL.
|
||||
@ -182,7 +182,7 @@ readdisklabel(dev, strat, lp, osdep)
|
||||
/* update disklabel with details */
|
||||
lp->d_partitions[2].p_size =
|
||||
dp->mbrp_size;
|
||||
lp->d_partitions[2].p_offset =
|
||||
lp->d_partitions[2].p_offset =
|
||||
dp->mbrp_start;
|
||||
}
|
||||
}
|
||||
@ -314,8 +314,8 @@ setdisklabel(olp, nlp, openmask, osdep)
|
||||
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);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.44 2003/07/15 01:29:22 lukem Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.45 2003/09/12 14:59:12 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2003/07/15 01:29:22 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2003/09/12 14:59:12 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -85,7 +85,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2003/07/15 01:29:22 lukem Exp $");
|
||||
/* For sysctl. */
|
||||
extern char cpu_model[];
|
||||
|
||||
/* Our exported CPU info; we can have only one. */
|
||||
/* Our exported CPU info; we can have only one. */
|
||||
struct cpu_info cpu_info_store;
|
||||
|
||||
/* Maps for VM objects. */
|
||||
@ -131,7 +131,7 @@ mach_init(memsize)
|
||||
unsigned int memsize;
|
||||
{
|
||||
caddr_t kernend, v;
|
||||
u_long first, last;
|
||||
u_long first, last;
|
||||
vsize_t size;
|
||||
extern char edata[], end[];
|
||||
|
||||
@ -187,9 +187,9 @@ mach_init(memsize)
|
||||
Debugger();
|
||||
#endif
|
||||
#ifdef KGDB
|
||||
if (boothowto & RB_KDB)
|
||||
kgdb_connect(0);
|
||||
#endif
|
||||
if (boothowto & RB_KDB)
|
||||
kgdb_connect(0);
|
||||
#endif
|
||||
|
||||
strcpy(cpu_model, "Cobalt Microserver");
|
||||
|
||||
@ -217,7 +217,7 @@ mach_init(memsize)
|
||||
/*
|
||||
* Allocate space for proc0's USPACE.
|
||||
*/
|
||||
v = (caddr_t)uvm_pageboot_alloc(USPACE);
|
||||
v = (caddr_t)uvm_pageboot_alloc(USPACE);
|
||||
lwp0.l_addr = proc0paddr = (struct user *)v;
|
||||
lwp0.l_md.md_regs = (struct frame *)(v + USPACE) - 1;
|
||||
curpcb = &lwp0.l_addr->u_pcb;
|
||||
@ -229,7 +229,7 @@ mach_init(memsize)
|
||||
* memory is directly addressable. We don't have to map these into
|
||||
* virtual address space.
|
||||
*/
|
||||
v = (caddr_t)uvm_pageboot_alloc(size);
|
||||
v = (caddr_t)uvm_pageboot_alloc(size);
|
||||
if ((allocsys(v, NULL) - v) != size)
|
||||
panic("mach_init: table size inconsistency");
|
||||
}
|
||||
@ -451,7 +451,7 @@ cpu_intr_disestablish(cookie)
|
||||
{
|
||||
struct cobalt_intr *p = cookie;
|
||||
|
||||
if (p->cookie_type == COBALT_COOKIE_TYPE_CPU) {
|
||||
if (p->cookie_type == COBALT_COOKIE_TYPE_CPU) {
|
||||
p->func = NULL;
|
||||
p->arg = NULL;
|
||||
}
|
||||
@ -550,7 +550,7 @@ decode_bootstring(void)
|
||||
} else
|
||||
if(0 == memcmp("root=", work, 5)) {
|
||||
root_bstr = (equ +1);
|
||||
}
|
||||
}
|
||||
} else
|
||||
|
||||
/* else it a single value, switch and process */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mainbus.c,v 1.7 2003/07/15 01:29:22 lukem Exp $ */
|
||||
/* $NetBSD: mainbus.c,v 1.8 2003/09/12 14:59:13 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.7 2003/07/15 01:29:22 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.8 2003/09/12 14:59:13 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -71,16 +71,16 @@ mainbus_attach(parent, self, aux)
|
||||
*/
|
||||
|
||||
printf("\n");
|
||||
|
||||
|
||||
config_search(mainbus_search, self, ma);
|
||||
}
|
||||
|
||||
static int
|
||||
mainbus_search(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
{
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
do {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: panel.c,v 1.2 2003/07/15 01:29:23 lukem Exp $ */
|
||||
/* $NetBSD: panel.c,v 1.3 2003/09/12 14:59:14 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Dennis I. Chernoivanov
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: panel.c,v 1.2 2003/07/15 01:29:23 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: panel.c,v 1.3 2003/09/12 14:59:14 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -193,7 +193,7 @@ panelread(dev, uio, flag)
|
||||
int error;
|
||||
u_int8_t b;
|
||||
struct panel_softc *sc = device_lookup(&panel_cd, minor(dev));
|
||||
|
||||
|
||||
if (uio->uio_resid < sizeof(b))
|
||||
return EIO;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: disklabel.h,v 1.5 2000/06/28 09:40:59 soren Exp $ */
|
||||
/* $NetBSD: disklabel.h,v 1.6 2003/09/12 14:59:14 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
@ -40,12 +40,12 @@
|
||||
|
||||
/* Pull in MBR partition definitions. */
|
||||
#include <sys/disklabel_mbr.h>
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <sys/dkbad.h>
|
||||
struct cpu_disklabel {
|
||||
struct mbr_partition dosparts[NMBRPART];
|
||||
struct dkbad bad;
|
||||
struct mbr_partition dosparts[NMBRPART];
|
||||
struct dkbad bad;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.12 2003/06/16 20:00:59 thorpej Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.13 2003/09/12 14:59:15 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -42,9 +42,9 @@
|
||||
#define IST_LEVEL 3 /* level-triggered */
|
||||
|
||||
/* Soft interrupt masks. */
|
||||
#define SIR_CLOCK 31
|
||||
#define SIR_NET 30
|
||||
#define SIR_CLOCKMASK ((1 << SIR_CLOCK))
|
||||
#define SIR_CLOCK 31
|
||||
#define SIR_NET 30
|
||||
#define SIR_CLOCKMASK ((1 << SIR_CLOCK))
|
||||
#define SIR_NETMASK ((1 << SIR_NET) | SIR_CLOCKMASK)
|
||||
#define SIR_ALLMASK (SIR_CLOCKMASK | SIR_NETMASK)
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
#include <mips/cpuregs.h>
|
||||
|
||||
extern int _splraise(int);
|
||||
extern int _spllower(int);
|
||||
extern int _spllower(int);
|
||||
extern int _splset(int);
|
||||
extern int _splget(void);
|
||||
extern void _splnone(void);
|
||||
@ -89,7 +89,7 @@ extern void _clrsoftintr(int);
|
||||
|
||||
extern unsigned int intrcnt[];
|
||||
#define SOFTCLOCK_INTR 0
|
||||
#define SOFTNET_INTR 1
|
||||
#define SOFTNET_INTR 1
|
||||
|
||||
#endif /* !_LOCORE */
|
||||
#endif /* _LOCORE */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nvram.h,v 1.1 2000/03/19 23:07:47 soren Exp $ */
|
||||
/* $NetBSD: nvram.h,v 1.2 2003/09/12 14:59:15 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -36,7 +36,7 @@
|
||||
/*
|
||||
* Board revision
|
||||
*/
|
||||
|
||||
|
||||
#define VIA_BOARD 0x94
|
||||
|
||||
#define BOARD_MASK 0xf0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci_machdep.c,v 1.13 2003/07/15 01:29:23 lukem Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.14 2003/09/12 14:59:15 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.13 2003/07/15 01:29:23 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.14 2003/09/12 14:59:15 tsutsui Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -49,7 +49,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.13 2003/07/15 01:29:23 lukem Exp $
|
||||
* the generic versions of these functions.
|
||||
*/
|
||||
struct cobalt_bus_dma_tag pci_bus_dma_tag = {
|
||||
_bus_dmamap_create,
|
||||
_bus_dmamap_create,
|
||||
_bus_dmamap_destroy,
|
||||
_bus_dmamap_load,
|
||||
_bus_dmamap_load_mbuf,
|
||||
@ -115,7 +115,7 @@ pci_conf_read(pc, tag, reg)
|
||||
{
|
||||
pcireg_t data;
|
||||
int bus, dev, func;
|
||||
|
||||
|
||||
pci_decompose_tag(pc, tag, &bus, &dev, &func);
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pcib.c,v 1.7 2003/07/15 01:29:23 lukem Exp $ */
|
||||
/* $NetBSD: pcib.c,v 1.8 2003/09/12 14:59:15 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.7 2003/07/15 01:29:23 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.8 2003/09/12 14:59:15 tsutsui Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -36,7 +36,7 @@ __KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.7 2003/07/15 01:29:23 lukem Exp $");
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/autoconf.h>
|
||||
#include <machine/autoconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intr_machdep.h>
|
||||
|
||||
@ -96,13 +96,13 @@ pcib_attach(parent, self, aux)
|
||||
cpu_intr_establish(4, IPL_NONE, icu_intr, NULL);
|
||||
}
|
||||
|
||||
void *
|
||||
void *
|
||||
icu_intr_establish(irq, type, level, func, arg)
|
||||
int irq;
|
||||
int type;
|
||||
int level;
|
||||
int (*func)(void *);
|
||||
void *arg;
|
||||
int irq;
|
||||
int type;
|
||||
int level;
|
||||
int (*func)(void *);
|
||||
void *arg;
|
||||
{
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user