Get rid of `register'.

This commit is contained in:
augustss 1997-09-14 09:03:33 +00:00
parent a234ba3ffe
commit 1cdcb2d362
2 changed files with 28 additions and 28 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pas.c,v 1.34 1997/08/19 23:50:03 augustss Exp $ */ /* $NetBSD: pas.c,v 1.35 1997/09/14 09:03:37 augustss Exp $ */
/* /*
* Copyright (c) 1991-1993 Regents of the University of California. * Copyright (c) 1991-1993 Regents of the University of California.
@ -264,9 +264,9 @@ pasprobe(parent, match, aux)
struct device *parent; struct device *parent;
void *match, *aux; void *match, *aux;
{ {
register struct pas_softc *sc = match; struct pas_softc *sc = match;
register struct isa_attach_args *ia = aux; struct isa_attach_args *ia = aux;
register int iobase; int iobase;
u_char id, t; u_char id, t;
/* ensure we can set this up as a sound blaster */ /* ensure we can set this up as a sound blaster */
@ -445,9 +445,9 @@ pasattach(parent, self, aux)
struct device *parent, *self; struct device *parent, *self;
void *aux; void *aux;
{ {
register struct pas_softc *sc = (struct pas_softc *)self; struct pas_softc *sc = (struct pas_softc *)self;
struct isa_attach_args *ia = (struct isa_attach_args *)aux; struct isa_attach_args *ia = (struct isa_attach_args *)aux;
register int iobase = ia->ia_iobase; int iobase = ia->ia_iobase;
sc->sc_sbdsp.sc_iobase = iobase; sc->sc_sbdsp.sc_iobase = iobase;
sc->sc_sbdsp.sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq, sc->sc_sbdsp.sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq,

View File

@ -1,4 +1,4 @@
/* $NetBSD: pss.c,v 1.34 1997/08/19 23:50:04 augustss Exp $ */ /* $NetBSD: pss.c,v 1.35 1997/09/14 09:03:33 augustss Exp $ */
/* /*
* Copyright (c) 1994 John Brezak * Copyright (c) 1994 John Brezak
@ -1179,7 +1179,7 @@ pss_from_vol(cp, vol)
int int
pss_set_master_gain(sc, gp) pss_set_master_gain(sc, gp)
register struct pss_softc *sc; struct pss_softc *sc;
struct ad1848_volume *gp; struct ad1848_volume *gp;
{ {
DPRINTF(("pss_set_master_gain: %d:%d\n", gp->left, gp->right)); DPRINTF(("pss_set_master_gain: %d:%d\n", gp->left, gp->right));
@ -1206,7 +1206,7 @@ pss_set_master_gain(sc, gp)
int int
pss_set_master_mode(sc, mode) pss_set_master_mode(sc, mode)
register struct pss_softc *sc; struct pss_softc *sc;
int mode; int mode;
{ {
short phillips_mode; short phillips_mode;
@ -1236,7 +1236,7 @@ pss_set_master_mode(sc, mode)
int int
pss_set_treble(sc, treb) pss_set_treble(sc, treb)
register struct pss_softc *sc; struct pss_softc *sc;
u_int treb; u_int treb;
{ {
DPRINTF(("pss_set_treble: %d\n", treb)); DPRINTF(("pss_set_treble: %d\n", treb));
@ -1257,7 +1257,7 @@ pss_set_treble(sc, treb)
int int
pss_set_bass(sc, bass) pss_set_bass(sc, bass)
register struct pss_softc *sc; struct pss_softc *sc;
u_int bass; u_int bass;
{ {
DPRINTF(("pss_set_bass: %d\n", bass)); DPRINTF(("pss_set_bass: %d\n", bass));
@ -1278,7 +1278,7 @@ pss_set_bass(sc, bass)
int int
pss_get_master_gain(sc, gp) pss_get_master_gain(sc, gp)
register struct pss_softc *sc; struct pss_softc *sc;
struct ad1848_volume *gp; struct ad1848_volume *gp;
{ {
*gp = sc->master_volume; *gp = sc->master_volume;
@ -1287,7 +1287,7 @@ pss_get_master_gain(sc, gp)
int int
pss_get_master_mode(sc, mode) pss_get_master_mode(sc, mode)
register struct pss_softc *sc; struct pss_softc *sc;
u_int *mode; u_int *mode;
{ {
*mode = sc->master_mode; *mode = sc->master_mode;
@ -1296,7 +1296,7 @@ pss_get_master_mode(sc, mode)
int int
pss_get_treble(sc, tp) pss_get_treble(sc, tp)
register struct pss_softc *sc; struct pss_softc *sc;
u_char *tp; u_char *tp;
{ {
*tp = sc->monitor_treble; *tp = sc->monitor_treble;
@ -1305,7 +1305,7 @@ pss_get_treble(sc, tp)
int int
pss_get_bass(sc, bp) pss_get_bass(sc, bp)
register struct pss_softc *sc; struct pss_softc *sc;
u_char *bp; u_char *bp;
{ {
*bp = sc->monitor_bass; *bp = sc->monitor_bass;
@ -1324,7 +1324,7 @@ int
pssintr(arg) pssintr(arg)
void *arg; void *arg;
{ {
register struct pss_softc *sc = arg; struct pss_softc *sc = arg;
u_short sr; u_short sr;
sr = inw(sc->sc_iobase+PSS_STATUS); sr = inw(sc->sc_iobase+PSS_STATUS);
@ -1348,7 +1348,7 @@ int
mpuintr(arg) mpuintr(arg)
void *arg; void *arg;
{ {
register struct mpu_softc *sc = arg; struct mpu_softc *sc = arg;
u_char sr; u_char sr;
sr = inb(sc->sc_iobase+MIDI_STATUS_REG); sr = inb(sc->sc_iobase+MIDI_STATUS_REG);
@ -1376,8 +1376,8 @@ pss_set_out_port(addr, port)
void *addr; void *addr;
int port; int port;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
register struct pss_softc *sc = ac->parent; struct pss_softc *sc = ac->parent;
DPRINTF(("pss_set_out_port: %d\n", port)); DPRINTF(("pss_set_out_port: %d\n", port));
@ -1393,8 +1393,8 @@ int
pss_get_out_port(addr) pss_get_out_port(addr)
void *addr; void *addr;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
register struct pss_softc *sc = ac->parent; struct pss_softc *sc = ac->parent;
DPRINTF(("pss_get_out_port: %d\n", sc->out_port)); DPRINTF(("pss_get_out_port: %d\n", sc->out_port));
@ -1406,7 +1406,7 @@ pss_set_in_port(addr, port)
void *addr; void *addr;
int port; int port;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
DPRINTF(("pss_set_in_port: %d\n", port)); DPRINTF(("pss_set_in_port: %d\n", port));
@ -1432,7 +1432,7 @@ int
pss_get_in_port(addr) pss_get_in_port(addr)
void *addr; void *addr;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
int port = PSS_MIC_IN_LVL; int port = PSS_MIC_IN_LVL;
switch(ad1848_get_rec_port(ac)) { switch(ad1848_get_rec_port(ac)) {
@ -1457,8 +1457,8 @@ pss_mixer_set_port(addr, cp)
void *addr; void *addr;
mixer_ctrl_t *cp; mixer_ctrl_t *cp;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
register struct pss_softc *sc = ac->parent; struct pss_softc *sc = ac->parent;
struct ad1848_volume vol; struct ad1848_volume vol;
int error = EINVAL; int error = EINVAL;
@ -1567,8 +1567,8 @@ pss_mixer_get_port(addr, cp)
void *addr; void *addr;
mixer_ctrl_t *cp; mixer_ctrl_t *cp;
{ {
register struct ad1848_softc *ac = addr; struct ad1848_softc *ac = addr;
register struct pss_softc *sc = ac->parent; struct pss_softc *sc = ac->parent;
struct ad1848_volume vol; struct ad1848_volume vol;
u_char eq; u_char eq;
int error = EINVAL; int error = EINVAL;
@ -1684,7 +1684,7 @@ pss_mixer_get_port(addr, cp)
int int
pss_query_devinfo(addr, dip) pss_query_devinfo(addr, dip)
void *addr; void *addr;
register mixer_devinfo_t *dip; mixer_devinfo_t *dip;
{ {
DPRINTF(("pss_query_devinfo: index=%d\n", dip->index)); DPRINTF(("pss_query_devinfo: index=%d\n", dip->index));