summaryrefslogtreecommitdiffstats
path: root/sys/arch/hppa/dev/asp.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2002-12-18 23:52:41 +0000
committermickey <mickey@openbsd.org>2002-12-18 23:52:41 +0000
commitfa7c453abb9462e9673611d35cf186a98a786ec1 (patch)
tree0c8effa4baa841694d12e816e9a19a59191a8459 /sys/arch/hppa/dev/asp.c
parentAPM_BEBATT is in the apm_flags, not sc_flags, from markus@ (diff)
downloadwireguard-openbsd-fa7c453abb9462e9673611d35cf186a98a786ec1.tar.xz
wireguard-openbsd-fa7c453abb9462e9673611d35cf186a98a786ec1.zip
newer machines use phantom bus to attach lasi and other bus adapters.
oledr machines did not have a real device for the phantom bus port. change the device scanning technique to both include a full device path in the attach_args and do proper shifting in the pdc_scanbus() and add a device for the newer machines as well as use a newer device mapping (path to hpa) available on newer firmware versions, where old (hversion-dependant) is not available. tested on 712,715/33,c110, miod@ ok, weissmandude -- testing
Diffstat (limited to 'sys/arch/hppa/dev/asp.c')
-rw-r--r--sys/arch/hppa/dev/asp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/asp.c b/sys/arch/hppa/dev/asp.c
index 66ee0028a67..40c5ac92f91 100644
--- a/sys/arch/hppa/dev/asp.c
+++ b/sys/arch/hppa/dev/asp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asp.c,v 1.8 2002/12/17 21:54:20 mickey Exp $ */
+/* $OpenBSD: asp.c,v 1.9 2002/12/18 23:52:45 mickey Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -201,6 +201,13 @@ aspattach(parent, self, aux)
sc->sc_ic.gsc_base = sc->sc_trs;
ga.ga_ca = *ca; /* clone from us */
+ ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1];
+ ga.ga_dp.dp_bc[1] = ga.ga_dp.dp_bc[2];
+ ga.ga_dp.dp_bc[2] = ga.ga_dp.dp_bc[3];
+ ga.ga_dp.dp_bc[3] = ga.ga_dp.dp_bc[4];
+ ga.ga_dp.dp_bc[4] = ga.ga_dp.dp_bc[5];
+ ga.ga_dp.dp_bc[5] = ga.ga_dp.dp_mod;
+ ga.ga_dp.dp_mod = 0;
ga.ga_hpamask = ASP_IOMASK;
ga.ga_name = "gsc";
ga.ga_ic = &sc->sc_ic;