diff options
| author | eeh <eeh@NetBSD.org> | 2002-03-20 17:59:16 +0000 |
|---|---|---|
| committer | eeh <eeh@NetBSD.org> | 2002-03-20 17:59:16 +0000 |
| commit | 8ea2c88ec2ec40dc2911a253823c6fed64d5400e (patch) | |
| tree | 97cb4a9a85b6e172094abb1480b192723d0ddc75 /sys/dev | |
| parent | ddbdd7fa41444732a16d74a6d22a0e9f75fb25c6 (diff) | |
Clean up bus space a bit. XXX is sc_buffer ever actually used after it's
mapped in?
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sbus/qec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sbus/qec.c b/sys/dev/sbus/qec.c index 014f0e52109..1dfeb55c93c 100644 --- a/sys/dev/sbus/qec.c +++ b/sys/dev/sbus/qec.c @@ -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. @@ -37,7 +37,7 @@ */ #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/systm.h> @@ -134,7 +134,7 @@ qecattach(parent, self, aux) sa->sa_reg[0].sbr_slot, sa->sa_reg[0].sbr_offset, 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); return; } @@ -152,7 +152,7 @@ qecattach(parent, self, aux) printf("%s: attach: cannot map registers\n", self->dv_xname); 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; /* Get number of on-board channels */ |
