diff options
| author | mycroft <mycroft@NetBSD.org> | 1997-09-30 22:10:59 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1997-09-30 22:10:59 +0000 |
| commit | 640405d50fb5c0dc8ea23d7fd065bf6d5cb216e8 (patch) | |
| tree | 916061fc8ba3718cc46d765359f47c6e2fecc31c /sys | |
| parent | 90ac749fae71803733cf79fe46051df2b86494f0 (diff) | |
Only use a subregion if the region we got was of length 8.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/i386/isa/joy_isapnp.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/i386/isa/joy_isapnp.c b/sys/arch/i386/isa/joy_isapnp.c index dd64e614126..08f770db7e1 100644 --- a/sys/arch/i386/isa/joy_isapnp.c +++ b/sys/arch/i386/isa/joy_isapnp.c @@ -1,4 +1,4 @@ -/* $NetBSD: joy_isapnp.c,v 1.4 1997/08/07 19:44:54 christos Exp $ */ +/* $NetBSD: joy_isapnp.c,v 1.5 1997/09/30 22:10:59 mycroft Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -87,12 +87,15 @@ joy_isapnp_attach(parent, self, aux) return; } - if (bus_space_subregion(ipa->ipa_iot, ipa->ipa_io[0].h, 1, 1, - &ioh) < 0) { - printf("%s: error in region allocation\n", - sc->sc_dev.dv_xname); - return; - } + if (ipa->ipa_io[0].length == 8) { + if (bus_space_subregion(ipa->ipa_iot, ipa->ipa_io[0].h, 1, 1, + &ioh) < 0) { + printf("%s: error in region allocation\n", + sc->sc_dev.dv_xname); + return; + } + } else + ioh = ipa->ipa_io[0].h; sc->sc_iot = ipa->ipa_iot; sc->sc_ioh = ioh; |
