Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/dev Remove register prefixes.
details: https://anonhg.NetBSD.org/src/rev/ea83c34182bb
branches: trunk
changeset: 514556:ea83c34182bb
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Sep 05 13:27:53 2001 +0000
description:
Remove register prefixes.
diffstat:
sys/arch/sun3/dev/bt_subr.c | 14 +++++++-------
sys/arch/sun3/dev/cg2.c | 10 +++++-----
sys/arch/sun3/dev/cg4.c | 4 ++--
sys/arch/sun3/dev/fd.c | 10 +++++-----
sys/arch/sun3/dev/if_ie.c | 14 +++++++-------
sys/arch/sun3/dev/kd.c | 6 +++---
sys/arch/sun3/dev/zs.c | 24 ++++++++++++------------
sys/arch/sun3/dev/zs_kgdb.c | 12 ++++++------
8 files changed, 47 insertions(+), 47 deletions(-)
diffs (truncated from 334 to 300 lines):
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/bt_subr.c
--- a/sys/arch/sun3/dev/bt_subr.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/bt_subr.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bt_subr.c,v 1.2 1995/04/10 22:12:48 gwr Exp $ */
+/* $NetBSD: bt_subr.c,v 1.3 2001/09/05 13:27:53 tsutsui Exp $ */
/*
* Copyright (c) 1993
@@ -64,12 +64,12 @@
*/
int
bt_getcmap(p, cm, cmsize)
- register struct fbcmap *p;
+ struct fbcmap *p;
union bt_cmap *cm;
int cmsize;
{
- register u_int i, start, count;
- register u_char *cp;
+ u_int i, start, count;
+ u_char *cp;
start = p->index;
count = p->count;
@@ -92,12 +92,12 @@
*/
int
bt_putcmap(p, cm, cmsize)
- register struct fbcmap *p;
+ struct fbcmap *p;
union bt_cmap *cm;
int cmsize;
{
- register u_int i, start, count;
- register u_char *cp;
+ u_int i, start, count;
+ u_char *cp;
start = p->index;
count = p->count;
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/cg2.c
--- a/sys/arch/sun3/dev/cg2.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/cg2.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cg2.c,v 1.14 2001/08/05 18:07:53 jdolecek Exp $ */
+/* $NetBSD: cg2.c,v 1.15 2001/09/05 13:27:53 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -311,8 +311,8 @@
struct cg2_softc *sc = fb->fb_private;
u_char red[CMSIZE], green[CMSIZE], blue[CMSIZE];
int error, start, count, ecount;
- register u_int i;
- register u_short *p;
+ u_int i;
+ u_short *p;
start = cmap->index;
count = cmap->count;
@@ -354,8 +354,8 @@
u_char red[CMSIZE], green[CMSIZE], blue[CMSIZE];
int error;
u_int start, count, ecount;
- register u_int i;
- register u_short *p;
+ u_int i;
+ u_short *p;
start = cmap->index;
count = cmap->count;
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/cg4.c
--- a/sys/arch/sun3/dev/cg4.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/cg4.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cg4.c,v 1.21 2000/06/29 07:18:58 mrg Exp $ */
+/* $NetBSD: cg4.c,v 1.22 2001/09/05 13:27:53 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -378,7 +378,7 @@
int prot;
{
struct cg4_softc *sc = cgfour_cd.cd_devs[minor(dev)];
- register int physbase;
+ int physbase;
if (off & PGOFSET)
panic("cg4mmap");
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/fd.c
--- a/sys/arch/sun3/dev/fd.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/fd.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.23 2001/07/08 18:06:44 wiz Exp $ */
+/* $NetBSD: fd.c,v 1.24 2001/09/05 13:27:53 tsutsui Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum.
@@ -324,7 +324,7 @@
void *aux;
const char *fdc;
{
- register struct fdc_attach_args *fa = aux;
+ struct fdc_attach_args *fa = aux;
if (!fdc)
printf(" drive %d", fa->fa_drive);
@@ -360,7 +360,7 @@
struct device *parent, *self;
void *aux;
{
- register struct confargs *ca = aux;
+ struct confargs *ca = aux;
struct fdc_softc *fdc = (void *)self;
struct fdc_attach_args fa;
int pri, vec;
@@ -586,7 +586,7 @@
void
fdstrategy(bp)
- register struct buf *bp; /* IO operation to perform */
+ struct buf *bp; /* IO operation to perform */
{
struct fd_softc *fd;
int unit = FDUNIT(bp->b_dev);
@@ -1045,7 +1045,7 @@
}
for (;;) {
- register int msr;
+ int msr;
msr = *fdc->sc_reg_msr;
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/if_ie.c
--- a/sys/arch/sun3/dev/if_ie.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/if_ie.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie.c,v 1.35 2000/11/15 01:02:14 thorpej Exp $ */
+/* $NetBSD: if_ie.c,v 1.36 2001/09/05 13:27:53 tsutsui Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum.
@@ -464,7 +464,7 @@
void *arg;
{
struct ie_softc *sc = arg;
- register u_short status;
+ u_short status;
int loopcnt;
/*
@@ -671,9 +671,9 @@
ether_cmp(one, two)
u_char *one, *two;
{
- register u_short *a = (u_short *) one;
- register u_short *b = (u_short *) two;
- register u_short diff;
+ u_short *a = (u_short *) one;
+ u_short *b = (u_short *) two;
+ u_short diff;
diff = *a++ - *b++;
diff |= *a++ - *b++;
@@ -727,7 +727,7 @@
struct ie_softc *sc;
int head;
{
- register int len;
+ int len;
len = SWAP(sc->rbuffs[head]->ie_rbd_actual);
len &= (IE_RBUF_SIZE | (IE_RBUF_SIZE - 1));
@@ -1548,7 +1548,7 @@
static int
ieioctl(ifp, cmd, data)
- register struct ifnet *ifp;
+ struct ifnet *ifp;
u_long cmd;
caddr_t data;
{
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/kd.c
--- a/sys/arch/sun3/dev/kd.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/kd.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kd.c,v 1.35 2001/05/02 10:32:20 scw Exp $ */
+/* $NetBSD: kd.c,v 1.36 2001/09/05 13:27:53 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -311,7 +311,7 @@
struct tty *tp;
{
struct clist *cl;
- register int s;
+ int s;
s = spltty();
if (tp->t_state & (TS_BUSY|TS_TTSTOP|TS_TIMEOUT))
@@ -362,7 +362,7 @@
void *tpaddr;
{
struct tty *tp = tpaddr;
- register int s;
+ int s;
kd_putfb(tp);
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/zs.c
--- a/sys/arch/sun3/dev/zs.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/zs.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.62 2001/05/30 15:24:24 lukem Exp $ */
+/* $NetBSD: zs.c,v 1.63 2001/09/05 13:27:54 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -399,8 +399,8 @@
zshard(arg)
void *arg;
{
- register struct zsc_softc *zsc;
- register int unit, rval, softreq;
+ struct zsc_softc *zsc;
+ int unit, rval, softreq;
rval = softreq = 0;
for (unit = 0; unit < zsc_cd.cd_ndevs; unit++) {
@@ -427,8 +427,8 @@
zssoft(arg)
void *arg;
{
- register struct zsc_softc *zsc;
- register int s, unit;
+ struct zsc_softc *zsc;
+ int s, unit;
/* This is not the only ISR on this IPL. */
if (zssoftpending == 0)
@@ -580,7 +580,7 @@
u_char zs_read_csr(cs)
struct zs_chanstate *cs;
{
- register u_char val;
+ u_char val;
val = *cs->cs_reg_csr;
ZS_DELAY();
@@ -598,7 +598,7 @@
u_char zs_read_data(cs)
struct zs_chanstate *cs;
{
- register u_char val;
+ u_char val;
val = *cs->cs_reg_data;
ZS_DELAY();
@@ -629,7 +629,7 @@
zs_abort(cs)
struct zs_chanstate *cs;
{
- register volatile struct zschan *zc = zs_conschan;
+ volatile struct zschan *zc = zs_conschan;
int rr0;
/* Wait for end of break to avoid PROM abort. */
@@ -650,8 +650,8 @@
zs_getc(arg)
void *arg;
{
- register volatile struct zschan *zc = arg;
- register int s, c, rr0;
+ volatile struct zschan *zc = arg;
+ int s, c, rr0;
s = splhigh();
/* Wait for a character to arrive. */
@@ -679,8 +679,8 @@
void *arg;
int c;
{
- register volatile struct zschan *zc = arg;
- register int s, rr0;
+ volatile struct zschan *zc = arg;
+ int s, rr0;
s = splhigh();
/* Wait for transmitter to become ready. */
diff -r c11eab84a225 -r ea83c34182bb sys/arch/sun3/dev/zs_kgdb.c
--- a/sys/arch/sun3/dev/zs_kgdb.c Wed Sep 05 13:21:09 2001 +0000
+++ b/sys/arch/sun3/dev/zs_kgdb.c Wed Sep 05 13:27:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs_kgdb.c,v 1.13 1999/02/03 20:25:07 mycroft Exp $ */
+/* $NetBSD: zs_kgdb.c,v 1.14 2001/09/05 13:27:54 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
Home |
Main Index |
Thread Index |
Old Index