Nuke register.
This commit is contained in:
parent
6e0357239a
commit
bf851ea6cb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rcons.c,v 1.39 2000/03/23 06:43:01 thorpej Exp $ */
|
||||
/* $NetBSD: rcons.c,v 1.40 2000/03/30 14:45:04 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
@ -346,7 +346,8 @@ struct tty *
|
||||
rconstty(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
register struct tty *tp = &rcons_tty [0];
|
||||
struct tty *tp = &rcons_tty[0];
|
||||
|
||||
return (tp);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rz.c,v 1.58 2000/03/23 06:43:01 thorpej Exp $ */
|
||||
/* $NetBSD: rz.c,v 1.59 2000/03/30 14:45:05 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: rz.c,v 1.58 2000/03/23 06:43:01 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rz.c,v 1.59 2000/03/30 14:45:05 simonb Exp $");
|
||||
|
||||
/*
|
||||
* SCSI CCS (Command Command Set) disk driver.
|
||||
@ -98,9 +98,9 @@ struct disk_parms;
|
||||
static void rzdone __P((int unit, int error, int resid, int status));
|
||||
static void rzgetdefaultlabel __P((struct rz_softc *, struct disklabel *lp));
|
||||
static void rzgetinfo __P((dev_t dev));
|
||||
static void rzlblkstrat __P((register struct buf *bp, register int bsize));
|
||||
static void rzlblkstrat __P((struct buf *bp, int bsize));
|
||||
static int rzprobe __P((void /*struct pmax_scsi_device*/ *sd));
|
||||
static int rzready __P((register struct rz_softc *sc));
|
||||
static int rzready __P((struct rz_softc *sc));
|
||||
static void rzstart __P((int unit));
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scsi.h,v 1.11 2000/01/08 01:02:36 simonb Exp $ */
|
||||
/* $NetBSD: scsi.h,v 1.12 2000/03/30 14:45:06 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -567,17 +567,17 @@ struct scsi_fmt_sense {
|
||||
*/
|
||||
void scsiGroup0Cmd __P((unsigned cmd, /* group0 SCSI command */
|
||||
unsigned lun, /* Logical Unit Number */
|
||||
register unsigned block,
|
||||
unsigned block,
|
||||
unsigned count,
|
||||
register ScsiGroup0Cmd *c));
|
||||
ScsiGroup0Cmd *c));
|
||||
|
||||
void scsiGroup1Cmd __P((unsigned cmd, /* group0 SCSI command */
|
||||
unsigned lun, /* Logical Unit Number */
|
||||
register unsigned block,
|
||||
unsigned block,
|
||||
unsigned count,
|
||||
register ScsiGroup1Cmd *c));
|
||||
ScsiGroup1Cmd *c));
|
||||
|
||||
void scsiPrintSense __P((register ScsiClass7Sense *sp, int len));
|
||||
void scsiPrintSense __P((ScsiClass7Sense *sp, int len));
|
||||
void scsiPrintInquiry __P((ScsiInquiryData *inqbuf, int len));
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sii.c,v 1.40 2000/03/04 06:05:36 nisimura Exp $ */
|
||||
/* $NetBSD: sii.c,v 1.41 2000/03/30 14:45:06 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -147,17 +147,16 @@ static u_char sii_buf[256]; /* used for extended messages */
|
||||
* Forward references
|
||||
*/
|
||||
|
||||
static void sii_Reset __P((register struct siisoftc *sc, int resetbus));
|
||||
static void sii_StartCmd __P((register struct siisoftc *sc, int target));
|
||||
static void sii_CmdDone __P((register struct siisoftc *sc, int target,
|
||||
int error));
|
||||
static void sii_DoIntr __P((register struct siisoftc *sc, u_int dstat));
|
||||
static void sii_StateChg __P((register struct siisoftc *sc, u_int cstat));
|
||||
static int sii_GetByte __P((register SIIRegs *regs, int phase, int ack));
|
||||
static void sii_DoSync __P((register SIIRegs *regs, register State *state));
|
||||
static void sii_StartDMA __P((register SIIRegs *regs, int phase,
|
||||
u_short *dmaAddr, int size));
|
||||
static void siistart __P((register ScsiCmd *scsicmd));
|
||||
static void sii_Reset __P((struct siisoftc *sc, int resetbus));
|
||||
static void sii_StartCmd __P((struct siisoftc *sc, int target));
|
||||
static void sii_CmdDone __P((struct siisoftc *sc, int target, int error));
|
||||
static void sii_DoIntr __P((struct siisoftc *sc, u_int dstat));
|
||||
static void sii_StateChg __P((struct siisoftc *sc, u_int cstat));
|
||||
static int sii_GetByte __P((SIIRegs *regs, int phase, int ack));
|
||||
static void sii_DoSync __P((SIIRegs *regs, State *state));
|
||||
static void sii_StartDMA __P((SIIRegs *regs, int phase, u_short *dmaAddr,
|
||||
int size));
|
||||
static void siistart __P((ScsiCmd *scsicmd));
|
||||
|
||||
#ifdef DEBUG
|
||||
static void sii_DumpLog __P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sii_ds.c,v 1.14 2000/03/06 03:09:44 mhitch Exp $ */
|
||||
/* $NetBSD: sii_ds.c,v 1.15 2000/03/30 14:45:07 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 The Board of Trustees of The Leland Stanford
|
||||
@ -131,7 +131,7 @@ kn230_copytobuf(src, dst, len)
|
||||
int len;
|
||||
{
|
||||
u_int *wsrc = (u_int *)src;
|
||||
volatile register u_int *wdst = (volatile u_int *)dst;
|
||||
volatile u_int *wdst = (volatile u_int *)dst;
|
||||
int i, n;
|
||||
|
||||
#if defined(DIAGNOSTIC) || defined(DEBUG)
|
||||
@ -167,7 +167,7 @@ kn230_copyfrombuf(src, dst, len)
|
||||
char *dst; /* XXX assume 32-bit aligned? */
|
||||
int len;
|
||||
{
|
||||
volatile register u_int *wsrc = (volatile u_int *)src;
|
||||
volatile u_int *wsrc = (volatile u_int *)src;
|
||||
u_int *wdst = (u_int *)dst;
|
||||
int i, n;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: param.h,v 1.30 2000/01/09 15:34:43 ad Exp $ */
|
||||
/* $NetBSD: param.h,v 1.31 2000/03/30 14:45:12 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -108,7 +108,7 @@
|
||||
|
||||
void delay __P((int n));
|
||||
extern int cpuspeed;
|
||||
#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); }
|
||||
#define DELAY(n) { int N = cpuspeed * (n); while (--N > 0); }
|
||||
|
||||
#endif /* !_LOCORE */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: promcall.c,v 1.6 2000/03/06 21:36:11 thorpej Exp $ */
|
||||
/* $NetBSD: promcall.c,v 1.7 2000/03/30 14:45:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: promcall.c,v 1.6 2000/03/06 21:36:11 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: promcall.c,v 1.7 2000/03/30 14:45:13 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -117,7 +117,7 @@ prom_findcons(kbdslot, crtslot, prom_using_screen)
|
||||
int *crtslot;
|
||||
int *prom_using_screen;
|
||||
{
|
||||
register char *oscon = 0; /* PROM osconsole string */
|
||||
char *oscon = 0; /* PROM osconsole string */
|
||||
|
||||
/*
|
||||
* Get and parse the "osconsole" environment variable.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rz.c,v 1.15 1999/11/27 06:48:08 simonb Exp $ */
|
||||
/* $NetBSD: rz.c,v 1.16 2000/03/30 14:45:11 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -65,10 +65,10 @@ rzstrategy(devdata, rw, bn, reqcnt, addr, cnt)
|
||||
void *addr;
|
||||
size_t *cnt; /* out: number of bytes transfered */
|
||||
{
|
||||
register struct rz_softc *sc = (struct rz_softc *)devdata;
|
||||
register int part = sc->sc_part;
|
||||
register struct partition *pp = &sc->sc_label.d_partitions[part];
|
||||
register int s;
|
||||
struct rz_softc *sc = (struct rz_softc *)devdata;
|
||||
int part = sc->sc_part;
|
||||
struct partition *pp = &sc->sc_label.d_partitions[part];
|
||||
int s;
|
||||
long offset;
|
||||
|
||||
offset = bn * DEV_BSIZE;
|
||||
@ -100,11 +100,11 @@ rzstrategy(devdata, rw, bn, reqcnt, addr, cnt)
|
||||
int
|
||||
rzopen(struct open_file *f, ...)
|
||||
{
|
||||
register int ctlr, unit, part;
|
||||
int ctlr, unit, part;
|
||||
|
||||
register struct rz_softc *sc;
|
||||
register struct disklabel *lp;
|
||||
register int i;
|
||||
struct rz_softc *sc;
|
||||
struct disklabel *lp;
|
||||
int i;
|
||||
char *msg;
|
||||
char buf[DEV_BSIZE];
|
||||
int cnt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user