From f8f3db8548deb8592d5f665ab49ff0391060eeba Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 20 Apr 1999 20:28:33 +0000 Subject: map the io space --- sys/arch/hppa/dev/lasi.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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); -- cgit v1.2.3