diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-04-22 01:48:38 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-04-22 01:48:38 +0000 |
commit | c82d380c05309ceca24e0baed7640c4c044cadd3 (patch) | |
tree | 7a1e9993473de47e4f82a05030f64ae2e4304314 | |
parent | 59b8f6ac7e531d57a8ceac09eb82403a93a1ad00 (diff) |
do not forget to set the hpamask
-rw-r--r-- | sys/arch/hppa/dev/asp.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/dev/lasi.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/asp.c b/sys/arch/hppa/dev/asp.c index d8a5824c6e5..973fd94ef7c 100644 --- a/sys/arch/hppa/dev/asp.c +++ b/sys/arch/hppa/dev/asp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asp.c,v 1.6 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: asp.c,v 1.7 2002/04/22 01:48:37 mickey Exp $ */ /* * Copyright (c) 1998,1999 Michael Shalayeff @@ -123,6 +123,7 @@ struct asp_softc { volatile struct asp_trs *sc_trs; }; +#define ASP_IOMASK 0xfff00000 /* ASP "Primary Controller" HPA */ #define ASP_CHPA 0xF0800000 @@ -208,6 +209,7 @@ aspattach(parent, self, aux) sc->sc_ic.gsc_intr_ack = asp_intr_ack; ga.ga_ca = *ca; /* clone from us */ + ga.ga_hpamask = ASP_IOMASK; ga.ga_name = "gsc"; ga.ga_ic = &sc->sc_ic; config_found(self, &ga, gscprint); diff --git a/sys/arch/hppa/dev/lasi.c b/sys/arch/hppa/dev/lasi.c index 96e9e3a1f7f..0b634fc94f0 100644 --- a/sys/arch/hppa/dev/lasi.c +++ b/sys/arch/hppa/dev/lasi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lasi.c,v 1.8 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: lasi.c,v 1.9 2002/04/22 01:48:37 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -45,6 +45,8 @@ #include <hppa/gsc/gscbusvar.h> +#define LASI_IOMASK 0xfff00000 + struct lasi_hwr { u_int32_t lasi_power; #define LASI_BLINK 0x01 @@ -151,6 +153,7 @@ lasiattach(parent, self, aux) sc->sc_ic.gsc_intr_ack = lasi_intr_ack; sc->ga.ga_ca = *ca; /* clone from us */ + sc->ga.ga_hpamask = LASI_IOMASK; if (sc->sc_dev.dv_unit) config_defer(self, lasi_gsc_attach); else { |