EGCS fixes.
This commit is contained in:
parent
bee167375f
commit
fbed93d50d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_de.c,v 1.33 1998/07/05 06:49:09 jonathan Exp $ */
|
||||
/* $NetBSD: if_de.c,v 1.34 1998/11/05 19:48:46 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
|
||||
@ -679,7 +679,7 @@ dewait(ds, fn)
|
||||
char *fn;
|
||||
{
|
||||
volatile struct dedevice *addr = ds->ds_vaddr;
|
||||
register csr0;
|
||||
register int csr0;
|
||||
|
||||
while ((addr->pcsr0 & PCSR0_INTR) == 0)
|
||||
;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_qe.c,v 1.31 1998/07/05 06:49:09 jonathan Exp $ */
|
||||
/* $NetBSD: if_qe.c,v 1.32 1998/11/05 19:48:46 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
@ -548,7 +548,7 @@ qestart(ifp)
|
||||
register struct qe_softc *sc = ifp->if_softc;
|
||||
volatile struct qedevice *addr = sc->qe_vaddr;
|
||||
register struct qe_ring *rp;
|
||||
register index;
|
||||
register int index;
|
||||
struct mbuf *m;
|
||||
int buf_addr, len, s;
|
||||
|
||||
@ -923,7 +923,7 @@ void
|
||||
qesetup(sc)
|
||||
struct qe_softc *sc;
|
||||
{
|
||||
register i, j;
|
||||
register int i, j;
|
||||
|
||||
/*
|
||||
* Copy the target address to the rest of the entries in this row.
|
||||
@ -958,7 +958,7 @@ qesetup(sc)
|
||||
} else if (sc->qe_if.if_flags & IFF_ALLMULTI) {
|
||||
sc->setuplength = QE_ALLMULTI;
|
||||
} else {
|
||||
register k;
|
||||
register int k;
|
||||
struct ether_multi *enm;
|
||||
struct ether_multistep step;
|
||||
/*
|
||||
@ -1095,7 +1095,7 @@ qerestart(sc)
|
||||
register struct ifnet *ifp = (struct ifnet *)&sc->qe_if;
|
||||
register struct qedevice *addr = sc->addr;
|
||||
register struct qe_ring *rp;
|
||||
register i;
|
||||
register int i;
|
||||
|
||||
addr->qe_csr = QE_RESET;
|
||||
addr->qe_csr &= ~QE_RESET;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_uba.c,v 1.12 1996/08/20 14:07:46 ragge Exp $ */
|
||||
/* $NetBSD: if_uba.c,v 1.13 1998/11/05 19:48:46 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
|
||||
@ -289,7 +289,7 @@ rcv_xmtbuf(ifw)
|
||||
{
|
||||
register struct mbuf *m;
|
||||
struct mbuf **mprev;
|
||||
register i;
|
||||
register int i;
|
||||
char *cp;
|
||||
|
||||
while ((i = ffs((long)ifw->ifw_xswapd)) != 0) {
|
||||
@ -318,7 +318,7 @@ static void
|
||||
restor_xmtbuf(ifw)
|
||||
register struct ifxmt *ifw;
|
||||
{
|
||||
register i;
|
||||
register int i;
|
||||
|
||||
for (i = 0; i < ifw->ifw_nmr; i++)
|
||||
ifw->ifw_wmap[i] = ifw->ifw_mr[i];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dz.c,v 1.12 1998/08/10 14:41:16 ragge Exp $ */
|
||||
/* $NetBSD: dz.c,v 1.13 1998/11/05 19:48:05 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -212,7 +212,7 @@ dzxint(cntlr)
|
||||
register struct dz_softc *sc = dz_cd.cd_devs[cntlr];
|
||||
register struct tty *tp;
|
||||
register struct clist *cl;
|
||||
register line, ch, csr;
|
||||
register int line, ch, csr;
|
||||
u_char tcr;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: qd.c,v 1.8 1998/07/04 22:18:44 jonathan Exp $ */
|
||||
/* $NetBSD: qd.c,v 1.9 1998/11/05 19:48:04 ragge Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
@ -720,7 +720,7 @@ void qd_attach(parent, self, aux)
|
||||
{
|
||||
register struct uba_attach_args *ua = aux;
|
||||
|
||||
register unit; /* QDSS module # for this call */
|
||||
register int unit; /* QDSS module # for this call */
|
||||
|
||||
printf("\n");
|
||||
|
||||
@ -787,7 +787,6 @@ qdopen(dev, flag, mode, p)
|
||||
int flag, mode;
|
||||
struct proc *p;
|
||||
{
|
||||
/* register struct uba_device *ui; */ /* ptr to uba structures */
|
||||
volatile register struct dga *dga; /* ptr to gate array struct */
|
||||
register struct tty *tp;
|
||||
volatile struct duart *duart;
|
||||
@ -1071,7 +1070,7 @@ qdioctl(dev, cmd, datap, flags, p)
|
||||
register int mapix; /* QVmap[] page table index */
|
||||
register struct _vs_event *event;
|
||||
register struct tty *tp;
|
||||
register i;
|
||||
register int i;
|
||||
struct qdmap *qd; /* pointer to device map struct */
|
||||
volatile struct dga *dga; /* Gate Array reg structure pntr */
|
||||
volatile struct duart *duart; /* DUART reg structure pointer */
|
||||
@ -1492,8 +1491,8 @@ qdpoll(dev, events, p)
|
||||
int events;
|
||||
struct proc *p;
|
||||
{
|
||||
register s;
|
||||
register unit;
|
||||
register int s;
|
||||
register int unit;
|
||||
register struct tty *tp;
|
||||
u_int minor_dev = minor(dev);
|
||||
int revents = 0;
|
||||
@ -1575,8 +1574,8 @@ qdwrite(dev, uio, flag)
|
||||
struct uio *uio;
|
||||
{
|
||||
register struct tty *tp;
|
||||
register minor_dev;
|
||||
register unit;
|
||||
register int minor_dev;
|
||||
register int unit;
|
||||
|
||||
minor_dev = minor(dev);
|
||||
unit = (minor_dev >> 2) & 0x07;
|
||||
@ -1604,8 +1603,8 @@ qdread(dev, uio, flag)
|
||||
struct uio *uio;
|
||||
{
|
||||
register struct tty *tp;
|
||||
register minor_dev;
|
||||
register unit;
|
||||
register int minor_dev;
|
||||
register int unit;
|
||||
|
||||
minor_dev = minor(dev);
|
||||
unit = (minor_dev >> 2) & 0x07;
|
||||
@ -1640,7 +1639,7 @@ qd_strategy(bp)
|
||||
{
|
||||
volatile register struct dga *dga;
|
||||
volatile register struct adder *adder;
|
||||
register unit;
|
||||
register int unit;
|
||||
int QBAreg;
|
||||
int s;
|
||||
int cookie;
|
||||
@ -1705,7 +1704,7 @@ STRAT_ERR:
|
||||
void qdstart(tp)
|
||||
struct tty *tp;
|
||||
{
|
||||
register which_unit, unit, c;
|
||||
register int which_unit, unit, c;
|
||||
int s;
|
||||
|
||||
unit = minor(tp->t_dev);
|
||||
@ -1760,11 +1759,12 @@ qdstop(tp, flag)
|
||||
register int s;
|
||||
|
||||
s = spl5(); /* block intrpts during state modification */
|
||||
if (tp->t_state & TS_BUSY)
|
||||
if (tp->t_state & TS_BUSY) {
|
||||
if ((tp->t_state & TS_TTSTOP) == 0)
|
||||
tp->t_state |= TS_FLUSH;
|
||||
else
|
||||
tp->t_state &= ~TS_BUSY;
|
||||
}
|
||||
splx(s);
|
||||
}
|
||||
|
||||
@ -2942,7 +2942,7 @@ ldfont(unit)
|
||||
{
|
||||
volatile register struct adder *adder;
|
||||
|
||||
register i, j, k, max_chars_line;
|
||||
register int i, j, k, max_chars_line;
|
||||
register short packed;
|
||||
|
||||
adder = (struct adder *) qdmap[unit].adder;
|
||||
@ -3181,7 +3181,7 @@ void
|
||||
led_control(unit, cmd, led_mask)
|
||||
int unit, cmd, led_mask;
|
||||
{
|
||||
register i;
|
||||
register int i;
|
||||
volatile register struct duart *duart;
|
||||
|
||||
duart = (struct duart *)qdmap[unit].duart;
|
||||
@ -3339,7 +3339,7 @@ setup_dragon(unit)
|
||||
volatile register struct adder *adder;
|
||||
volatile register struct dga *dga;
|
||||
volatile short *memcsr;
|
||||
register i;
|
||||
register int i;
|
||||
short top; /* clipping/scrolling boundaries */
|
||||
short bottom;
|
||||
short right;
|
||||
@ -3591,7 +3591,7 @@ setup_input(unit)
|
||||
int unit;
|
||||
{
|
||||
volatile register struct duart *duart; /* DUART register structure pointer */
|
||||
register i, bits;
|
||||
register int i, bits;
|
||||
char id_byte;
|
||||
|
||||
duart = (struct duart *) qdmap[unit].duart;
|
||||
@ -3758,7 +3758,7 @@ wait_status(adder, mask)
|
||||
volatile struct adder *adder;
|
||||
int mask;
|
||||
{
|
||||
register i;
|
||||
register int i;
|
||||
|
||||
for (i = 10000, adder->status = 0 ; i > 0 &&
|
||||
!(adder->status&mask) ; --i)
|
||||
@ -3782,7 +3782,7 @@ write_ID(adder, adrs, data)
|
||||
short adrs;
|
||||
short data;
|
||||
{
|
||||
register i;
|
||||
register int i;
|
||||
|
||||
for (i = 100000, adder->status = 0 ;
|
||||
i > 0 && !(adder->status&ADDRESS_COMPLETE) ; --i)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uba.c,v 1.36 1998/10/18 18:51:29 ragge Exp $ */
|
||||
/* $NetBSD: uba.c,v 1.37 1998/11/05 19:48:04 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Jonathan Stone.
|
||||
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
|
||||
@ -257,7 +257,7 @@ ubaerror(uh, ipl, uvec)
|
||||
int *ipl, *uvec;
|
||||
{
|
||||
struct uba_regs *uba = uh->uh_uba;
|
||||
register sr, s;
|
||||
register int sr, s;
|
||||
|
||||
if (*uvec == 0) {
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dz.c,v 1.12 1998/08/10 14:41:16 ragge Exp $ */
|
||||
/* $NetBSD: dz.c,v 1.13 1998/11/05 19:48:05 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -212,7 +212,7 @@ dzxint(cntlr)
|
||||
register struct dz_softc *sc = dz_cd.cd_devs[cntlr];
|
||||
register struct tty *tp;
|
||||
register struct clist *cl;
|
||||
register line, ch, csr;
|
||||
register int line, ch, csr;
|
||||
u_char tcr;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uba.c,v 1.36 1998/10/18 18:51:29 ragge Exp $ */
|
||||
/* $NetBSD: uba.c,v 1.37 1998/11/05 19:48:04 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Jonathan Stone.
|
||||
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
|
||||
@ -257,7 +257,7 @@ ubaerror(uh, ipl, uvec)
|
||||
int *ipl, *uvec;
|
||||
{
|
||||
struct uba_regs *uba = uh->uh_uba;
|
||||
register sr, s;
|
||||
register int sr, s;
|
||||
|
||||
if (*uvec == 0) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user