Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3 Use "#define<tab>", white space nits.
details: https://anonhg.NetBSD.org/src/rev/e9e166874552
branches: trunk
changeset: 526224:e9e166874552
user: uch <uch%NetBSD.org@localhost>
date: Sun Apr 28 17:10:32 2002 +0000
description:
Use "#define<tab>", white space nits.
diffstat:
sys/arch/sh3/dev/sci.c | 24 ++--
sys/arch/sh3/dev/scif.c | 22 ++--
sys/arch/sh3/dev/shb.c | 4 +-
sys/arch/sh3/include/aout_machdep.h | 6 +-
sys/arch/sh3/include/asm.h | 22 ++--
sys/arch/sh3/include/bscreg.h | 50 ++++----
sys/arch/sh3/include/bswap.h | 4 +-
sys/arch/sh3/include/bus.h | 34 +++---
sys/arch/sh3/include/cache.h | 22 ++--
sys/arch/sh3/include/cache_sh3.h | 112 +++++++++++-----------
sys/arch/sh3/include/cache_sh4.h | 82 ++++++++--------
sys/arch/sh3/include/cdefs.h | 6 +-
sys/arch/sh3/include/clock.h | 16 +-
sys/arch/sh3/include/coff_machdep.h | 36 +++---
sys/arch/sh3/include/cpgreg.h | 16 +-
sys/arch/sh3/include/cpu.h | 48 ++++----
sys/arch/sh3/include/cputypes.h | 34 +++---
sys/arch/sh3/include/db_disasm.h | 46 ++++----
sys/arch/sh3/include/db_machdep.h | 30 ++--
sys/arch/sh3/include/devreg.h | 10 +-
sys/arch/sh3/include/disklabel.h | 4 +-
sys/arch/sh3/include/elf_machdep.h | 4 +-
sys/arch/sh3/include/exception.h | 16 +-
sys/arch/sh3/include/float.h | 62 ++++++------
sys/arch/sh3/include/frame.h | 4 +-
sys/arch/sh3/include/ieeefp.h | 16 +-
sys/arch/sh3/include/int_const.h | 4 +-
sys/arch/sh3/include/int_fmtio.h | 4 +-
sys/arch/sh3/include/int_limits.h | 6 +-
sys/arch/sh3/include/int_mwgwtypes.h | 4 +-
sys/arch/sh3/include/intcreg.h | 84 ++++++++--------
sys/arch/sh3/include/intr.h | 8 +-
sys/arch/sh3/include/limits.h | 22 ++--
sys/arch/sh3/include/locore.h | 36 +++---
sys/arch/sh3/include/mmu.h | 84 ++++++++--------
sys/arch/sh3/include/mmu_sh3.h | 76 +++++++-------
sys/arch/sh3/include/mmu_sh4.h | 178 +++++++++++++++++-----------------
sys/arch/sh3/include/param.h | 10 +-
sys/arch/sh3/include/pcb.h | 4 +-
sys/arch/sh3/include/pfcreg.h | 72 +++++++-------
sys/arch/sh3/include/pmap.h | 66 ++++++------
sys/arch/sh3/include/profile.h | 10 +-
sys/arch/sh3/include/psl.h | 14 +-
sys/arch/sh3/include/pte.h | 30 ++--
sys/arch/sh3/include/reg.h | 4 +-
sys/arch/sh3/include/rtcreg.h | 92 +++++++++---------
sys/arch/sh3/include/scifreg.h | 168 ++++++++++++++++----------------
sys/arch/sh3/include/scireg.h | 58 +++++-----
sys/arch/sh3/include/setjmp.h | 4 +-
sys/arch/sh3/include/sh_opcode.h | 32 +++---
sys/arch/sh3/include/signal.h | 4 +-
sys/arch/sh3/include/stdarg.h | 6 +-
sys/arch/sh3/include/tmureg.h | 98 +++++++++---------
sys/arch/sh3/include/trap.h | 94 +++++++++---------
sys/arch/sh3/include/types.h | 4 +-
sys/arch/sh3/include/ubcreg.h | 56 +++++-----
sys/arch/sh3/include/va-sh.h | 34 +++---
sys/arch/sh3/include/varargs.h | 6 +-
sys/arch/sh3/include/vmparam.h | 24 ++--
sys/arch/sh3/include/wdogvar.h | 18 +-
sys/arch/sh3/include/wdtreg.h | 42 ++++----
sys/arch/sh3/sh3/Locore.c | 3 +-
sys/arch/sh3/sh3/cache.c | 14 +-
sys/arch/sh3/sh3/cache_sh3.c | 20 +-
sys/arch/sh3/sh3/cache_sh4.c | 6 +-
sys/arch/sh3/sh3/clock.c | 34 +++---
sys/arch/sh3/sh3/coff_exec.c | 17 +-
sys/arch/sh3/sh3/cpu.c | 4 +-
sys/arch/sh3/sh3/db_interface.c | 38 +++---
sys/arch/sh3/sh3/db_trace.c | 4 +-
sys/arch/sh3/sh3/devreg.c | 10 +-
sys/arch/sh3/sh3/disksubr.c | 10 +-
sys/arch/sh3/sh3/exception_vector.S | 76 +++++++-------
sys/arch/sh3/sh3/interrupt.c | 32 +++---
sys/arch/sh3/sh3/kgdb_machdep.c | 6 +-
sys/arch/sh3/sh3/locore_subr.S | 66 ++++++------
sys/arch/sh3/sh3/mmu.c | 6 +-
sys/arch/sh3/sh3/mmu_sh3.c | 8 +-
sys/arch/sh3/sh3/mmu_sh4.c | 28 ++--
sys/arch/sh3/sh3/pmap.c | 38 +++---
sys/arch/sh3/sh3/sh3_machdep.c | 12 +-
sys/arch/sh3/sh3/trap.c | 4 +-
sys/arch/sh3/sh3/vm_machdep.c | 12 +-
83 files changed, 1315 insertions(+), 1319 deletions(-)
diffs (truncated from 5476 to 300 lines):
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/dev/sci.c
--- a/sys/arch/sh3/dev/sci.c Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/dev/sci.c Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sci.c,v 1.24 2002/04/28 11:38:48 msaitoh Exp $ */
+/* $NetBSD: sci.c,v 1.25 2002/04/28 17:10:32 uch Exp $ */
/*-
* Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu. All rights reserved.
@@ -217,9 +217,9 @@
#define SCIDIALOUT(x) (minor(x) & SCIDIALOUT_MASK)
/* Macros to clear/set/test flags. */
-#define SET(t, f) (t) |= (f)
-#define CLR(t, f) (t) &= ~(f)
-#define ISSET(t, f) ((t) & (f))
+#define SET(t, f) (t) |= (f)
+#define CLR(t, f) (t) &= ~(f)
+#define ISSET(t, f) ((t) & (f))
/* Hardware flag masks */
#define SCI_HW_NOIEN 0x01
@@ -236,7 +236,7 @@
u_int sci_rbuf_hiwat = (SCI_RING_SIZE * 1) / 4;
u_int sci_rbuf_lowat = (SCI_RING_SIZE * 3) / 4;
-#define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
+#define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
int sciconscflag = CONMODE;
int sciisconsole = 0;
@@ -270,9 +270,9 @@
/*
* following functions are debugging prupose only
*/
-#define CR 0x0D
-#define I2C_ADRS (*(volatile unsigned int *)0xa8000000)
-#define USART_ON (unsigned int)~0x08
+#define CR 0x0D
+#define I2C_ADRS (*(volatile unsigned int *)0xa8000000)
+#define USART_ON (unsigned int)~0x08
void sci_putc(unsigned char);
unsigned char sci_getc(void);
@@ -374,9 +374,9 @@
}
#if 0
-#define SCI_MAX_UNITS 2
+#define SCI_MAX_UNITS 2
#else
-#define SCI_MAX_UNITS 1
+#define SCI_MAX_UNITS 1
#endif
@@ -794,7 +794,7 @@
{
struct sci_softc *sc = sci_cd.cd_devs[SCIUNIT(dev)];
struct tty *tp = sc->sc_tty;
-
+
return ((*tp->t_linesw->l_poll)(tp, events, p));
}
@@ -1235,7 +1235,7 @@
SHREG_SCSCR &= ~(SCSCR_TIE | SCSCR_RIE);
}
}
-
+
#if 0
msr = bus_space_read_1(iot, ioh, sci_msr);
delta = msr ^ sc->sc_msr;
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/dev/scif.c
--- a/sys/arch/sh3/dev/scif.c Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/dev/scif.c Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scif.c,v 1.24 2002/03/24 18:04:42 uch Exp $ */
+/* $NetBSD: scif.c,v 1.25 2002/04/28 17:10:32 uch Exp $ */
/*-
* Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu. All rights reserved.
@@ -224,9 +224,9 @@
#define SCIFDIALOUT(x) (minor(x) & SCIFDIALOUT_MASK)
/* Macros to clear/set/test flags. */
-#define SET(t, f) (t) |= (f)
-#define CLR(t, f) (t) &= ~(f)
-#define ISSET(t, f) ((t) & (f))
+#define SET(t, f) (t) |= (f)
+#define CLR(t, f) (t) &= ~(f)
+#define ISSET(t, f) ((t) & (f))
/* Hardware flag masks */
#define SCIF_HW_NOIEN 0x01
@@ -243,7 +243,7 @@
u_int scif_rbuf_hiwat = (SCIF_RING_SIZE * 1) / 4;
u_int scif_rbuf_lowat = (SCIF_RING_SIZE * 3) / 4;
-#define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
+#define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
int scifconscflag = CONMODE;
int scifisconsole = 0;
@@ -277,8 +277,8 @@
/*
* following functions are debugging prupose only
*/
-#define CR 0x0D
-#define USART_ON (unsigned int)~0x08
+#define CR 0x0D
+#define USART_ON (unsigned int)~0x08
void scif_putc(unsigned char);
unsigned char scif_getc(void);
@@ -413,9 +413,9 @@
#endif
#if 0
-#define SCIF_MAX_UNITS 2
+#define SCIF_MAX_UNITS 2
#else
-#define SCIF_MAX_UNITS 1
+#define SCIF_MAX_UNITS 1
#endif
@@ -865,7 +865,7 @@
{
struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)];
struct tty *tp = sc->sc_tty;
-
+
return ((*tp->t_linesw->l_poll)(tp, events, p));
}
@@ -1513,7 +1513,7 @@
(void (*)(void *, int))scifcnputc, NULL);
kgdb_dev = 123; /* unneeded, only to satisfy some tests */
kgdb_attached = 1;
-
+
return (0);
}
#endif /* KGDB */
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/dev/shb.c
--- a/sys/arch/sh3/dev/shb.c Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/dev/shb.c Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shb.c,v 1.1 2002/03/24 18:00:42 uch Exp $ */
+/* $NetBSD: shb.c,v 1.2 2002/04/28 17:10:32 uch Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
{
printf("\n");
-
+
config_search(shb_search, self, NULL);
}
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/include/aout_machdep.h
--- a/sys/arch/sh3/include/aout_machdep.h Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/include/aout_machdep.h Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout_machdep.h,v 1.2 2002/03/17 17:55:24 uch Exp $ */
+/* $NetBSD: aout_machdep.h,v 1.3 2002/04/28 17:10:33 uch Exp $ */
/*
* Copyright (c) 1993 Christopher G. Demetriou
@@ -28,8 +28,8 @@
*/
#ifndef _SH3_AOUT_MACHDEP_H_
-#define _SH3_AOUT_MACHDEP_H_
+#define _SH3_AOUT_MACHDEP_H_
-#define __LDPGSZ 4096
+#define __LDPGSZ 4096
#endif /* SH3_AOUT_MACHDEP_H_ */
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/include/asm.h
--- a/sys/arch/sh3/include/asm.h Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/include/asm.h Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.9 2002/03/17 17:55:24 uch Exp $ */
+/* $NetBSD: asm.h,v 1.10 2002/04/28 17:10:33 uch Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,13 +39,13 @@
*/
#ifndef _SH3_ASM_H_
-#define _SH3_ASM_H_
+#define _SH3_ASM_H_
-#define PIC_PROLOGUE
-#define PIC_EPILOGUE
-#define PIC_PLT(x) x
-#define PIC_GOT(x) x
-#define PIC_GOTOFF(x) x
+#define PIC_PROLOGUE
+#define PIC_EPILOGUE
+#define PIC_PLT(x) x
+#define PIC_GOT(x) x
+#define PIC_GOTOFF(x) x
/*
* The old NetBSD/sh3 ELF toolchain used underscores. The new
@@ -70,21 +70,21 @@
#endif
#ifdef __ELF__
-#define _ENTRY(x) \
+#define _ENTRY(x) \
.text ;\
_ALIGN_TEXT ;\
.globl x ;\
.type x,@function ;\
x:
#else /* __ELF__ */
-#define _ENTRY(x) \
+#define _ENTRY(x) \
.text ;\
_ALIGN_TEXT ;\
.globl x ;\
x:
#endif /* __ELF__ */
-#define _PROF_PROLOGUE
+#define _PROF_PROLOGUE
#define ENTRY(y) _ENTRY(_C_LABEL(y)) ;\
_PROF_PROLOGUE
@@ -103,7 +103,7 @@
#define ASMSTR .asciz
-#define RCSID(x) .text; .asciz x
+#define RCSID(x) .text; .asciz x
#ifdef __ELF__
#define WEAK_ALIAS(alias,sym) \
diff -r ee82976515e2 -r e9e166874552 sys/arch/sh3/include/bscreg.h
--- a/sys/arch/sh3/include/bscreg.h Sun Apr 28 14:13:38 2002 +0000
+++ b/sys/arch/sh3/include/bscreg.h Sun Apr 28 17:10:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bscreg.h,v 1.3 2002/02/28 01:56:58 uch Exp $ */
+/* $NetBSD: bscreg.h,v 1.4 2002/04/28 17:10:33 uch Exp $ */
/*-
* Copyright (C) 1999 SAITOH Masanobu. All rights reserved.
@@ -27,36 +27,36 @@
*/
#ifndef _SH3_BSCREG_H_
-#define _SH3_BSCREG_H_
+#define _SH3_BSCREG_H_
#include <sh3/devreg.h>
/*
* Bus State Controller
*/
-#define SH3_BCR1 0xffffff60 /* 16bit */
-#define SH3_BCR2 0xffffff62 /* 16bit */
-#define SH3_WCR1 0xffffff64 /* 16bit */
-#define SH3_WCR2 0xffffff66 /* 16bit */
-#define SH3_MCR 0xffffff68 /* 16bit */
-#define SH3_DCR 0xffffff6a /* 16bit */
-#define SH3_PCR 0xffffff6c /* 16bit */
-#define SH3_RTCSR 0xffffff6e /* 16bit */
-#define SH3_RTCNT 0xffffff70 /* 16bit */
-#define SH3_RTCOR 0xffffff72 /* 16bit */
-#define SH3_RFCR 0xffffff74 /* 16bit */
-#define SH3_BCR3 0xffffff7e /* 16bit */
+#define SH3_BCR1 0xffffff60 /* 16bit */
+#define SH3_BCR2 0xffffff62 /* 16bit */
+#define SH3_WCR1 0xffffff64 /* 16bit */
+#define SH3_WCR2 0xffffff66 /* 16bit */
+#define SH3_MCR 0xffffff68 /* 16bit */
+#define SH3_DCR 0xffffff6a /* 16bit */
+#define SH3_PCR 0xffffff6c /* 16bit */
+#define SH3_RTCSR 0xffffff6e /* 16bit */
+#define SH3_RTCNT 0xffffff70 /* 16bit */
+#define SH3_RTCOR 0xffffff72 /* 16bit */
+#define SH3_RFCR 0xffffff74 /* 16bit */
+#define SH3_BCR3 0xffffff7e /* 16bit */
-#define SH4_BCR1 0xff800000 /* 32bit */
-#define SH4_BCR2 0xff800004 /* 16bit */
-#define SH4_WCR1 0xff800008 /* 32bit */
-#define SH4_WCR2 0xff80000c /* 32bit */
-#define SH4_WCR3 0xff800010 /* 32bit */
-#define SH4_MCR 0xff800014 /* 32bit */
-#define SH4_PCR 0xff800018 /* 16bit */
Home |
Main Index |
Thread Index |
Old Index