summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-10-28 19:13:31 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-10-28 19:13:31 +0000
commit4ef3a811e16d4f7ac602c3d973f4f8145ccf64e3 (patch)
tree039cc877ecd72b14b38d31f84a8dd2a8d61938f2
parent346c9a889424d97c0103e55605fe5cd23a16b2bc (diff)
need to map the regs though lasi used to save us before
-rw-r--r--sys/arch/hppa/gsc/if_ie_gsc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hppa/gsc/if_ie_gsc.c b/sys/arch/hppa/gsc/if_ie_gsc.c
index 6549563fb1f..44e3376db9f 100644
--- a/sys/arch/hppa/gsc/if_ie_gsc.c
+++ b/sys/arch/hppa/gsc/if_ie_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie_gsc.c,v 1.24 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: if_ie_gsc.c,v 1.25 2004/10/28 19:13:30 mickey Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -308,6 +308,12 @@ ie_gsc_attach(parent, self, aux)
pmapdebug = 0;
#endif
+ sc->iot = sc->bt = ga->ga_iot;
+ if (bus_space_map(sc->iot, ga->ga_hpa, IOMOD_HPASIZE, 0, &sc->ioh)) {
+ printf(": can't map IO space\n");
+ return;
+ }
+
if (ga->ga_type.iodc_sv_model == HPPA_FIO_GLAN)
sc->sc_flags |= IEGSC_GECKO;
@@ -336,8 +342,6 @@ ie_gsc_attach(parent, self, aux)
#endif
sc->sysbus = 0x40 | IE_SYSBUS_82586 | IE_SYSBUS_INTLOW | IE_SYSBUS_TRG | IE_SYSBUS_BE;
- sc->iot = sc->bt = ga->ga_iot;
- sc->ioh = ga->ga_hpa;
sc->do_xmitnopchain = 0;
sc->hwreset = ie_gsc_reset;
sc->chan_attn = ie_gsc_attend;