diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-04-20 20:28:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-04-20 20:28:33 +0000 |
commit | f8f3db8548deb8592d5f665ab49ff0391060eeba (patch) | |
tree | a36358d4b90a41bf2bca5baf799bf99c5798dd4b /sys/arch | |
parent | 777ae4d400051c06db9ea175661e4886c0e338ae (diff) |
map the io space
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/dev/lasi.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/lasi.c b/sys/arch/hppa/dev/lasi.c index ee955fe953e..fb483d6bf5e 100644 --- a/sys/arch/hppa/dev/lasi.c +++ b/sys/arch/hppa/dev/lasi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lasi.c,v 1.2 1999/02/25 23:15:31 mickey Exp $ */ +/* $OpenBSD: lasi.c,v 1.3 1999/04/20 20:28:32 mickey Exp $ */ /* * Copyright (c) 1998,1999 Michael Shalayeff @@ -111,8 +111,17 @@ lasiattach(parent, self, aux) register struct confargs *ca = aux; register struct lasi_softc *sc = (struct lasi_softc *)self; struct gsc_attach_args ga; + bus_space_handle_t ioh; int s, in; + if (bus_space_map(ca->ca_iot, ca->ca_hpa + 0xc000, + IOMOD_HPASIZE, 0, &ioh)) { +#ifdef DEBUG + printf("lasiattach: can't map IO space\n"); +#endif + return; + } + sc->sc_trs = (struct lasi_trs *)ca->ca_hpa; sc->sc_hw = (struct lasi_hwr *)(ca->ca_hpa + 0xc000); |