Clean up bus space a bit. XXX is sc_buffer ever actually used after it's
mapped in?
This commit is contained in:
parent
ddbdd7fa41
commit
8ea2c88ec2
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: qec.c,v 1.18 2002/03/11 16:00:57 pk Exp $ */
|
/* $NetBSD: qec.c,v 1.19 2002/03/20 17:59:16 eeh Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: qec.c,v 1.18 2002/03/11 16:00:57 pk Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: qec.c,v 1.19 2002/03/20 17:59:16 eeh Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -134,7 +134,7 @@ qecattach(parent, self, aux)
|
||||||
sa->sa_reg[0].sbr_slot,
|
sa->sa_reg[0].sbr_slot,
|
||||||
sa->sa_reg[0].sbr_offset,
|
sa->sa_reg[0].sbr_offset,
|
||||||
sa->sa_reg[0].sbr_size,
|
sa->sa_reg[0].sbr_size,
|
||||||
BUS_SPACE_MAP_LINEAR, &sc->sc_regs) != 0) {
|
0, &sc->sc_regs) != 0) {
|
||||||
printf("%s: attach: cannot map registers\n", self->dv_xname);
|
printf("%s: attach: cannot map registers\n", self->dv_xname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ qecattach(parent, self, aux)
|
||||||
printf("%s: attach: cannot map registers\n", self->dv_xname);
|
printf("%s: attach: cannot map registers\n", self->dv_xname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sc->sc_buffer = (caddr_t)(u_long)bh;
|
sc->sc_buffer = (caddr_t)bus_space_vaddr(sa->sa_bustag, bh);
|
||||||
sc->sc_bufsiz = (bus_size_t)sa->sa_reg[1].sbr_size;
|
sc->sc_bufsiz = (bus_size_t)sa->sa_reg[1].sbr_size;
|
||||||
|
|
||||||
/* Get number of on-board channels */
|
/* Get number of on-board channels */
|
||||||
|
|
Loading…
Reference in New Issue