History log of /openbsd-current/sys/arch/hppa/dev/asp.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.15 14-May-2018 kettenis

Relax the way irqs are assigned. This diff does:
- dynamic allocation of interrupts for dino(4) and gsc(4)
- only mention irq locators for devices which use interrupts.
- for gsc(4), this actually postpones interrupt allocation until gsc(4)
attaches, so asp(4)/lasi(4)/wax(4) won't route the interrupt yet, but
the gsc(4) child will take care of this.
- remove the irq locator for the drivers which do not need a fixed
assignment. siop and moongoose could benefit from this but don't work
at the moment so this is left as an exercize to future kernel hackers.
A side effect from this is that we do not need multiple sti(4)
attachment lines, so PCI sti(4) devices will now attach as sti0 rather
than sti2.

With this diff, multiple dino(4) devices attached to the same parent
will use different interrupt sources, and more than two dino(4) devices
can attach.

Tested on 715/75 (old-gen using asp), 715/100/XC (new-gen using lasi),
B132L+, B180L, C240, B2000, C3650.

From miod@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.14 09-Jun-2005 mickey

it appears asp occupies more space than intially thought and
audio wraps off the edge making troubles.
make sure gsc attachment follows the amsk from the parents
and also extend the asp's range to a full 512m.
found by Graham Gower <graham.gower@gmail.com> on 735
testing by miod@ on 715


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE SMP_SYNC_A SMP_SYNC_B
# 1.13 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.12 08-Apr-2003 mickey

just wate that debug altogether


# 1.11 08-Apr-2003 miod

Make dmesg prettier if attachment fails and no option DEBUG


Revision tags: OPENBSD_3_3_BASE
# 1.10 18-Feb-2003 miod

Let kernels compile without DDB, USELEDS, and DIAGNOSTIC.
For future intallation media.


# 1.9 18-Dec-2002 mickey

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


# 1.8 17-Dec-2002 mickey

real interrupts/spl framework.
tested on 712/* 715/100, 715/33 which main cpu/bus types.
miod@ ok


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.7 22-Apr-2002 mickey

do not forget to set the hpamask


Revision tags: OPENBSD_3_1_BASE
# 1.6 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE SMP_BASE UBC_BASE
# 1.5 09-Feb-2000 mickey

branches: 1.5.2; 1.5.12;
heartbeat -- yeah we have a patch for that


Revision tags: kame_19991208
# 1.4 26-Nov-1999 mickey

print asp spu type in text


Revision tags: OPENBSD_2_6_BASE
# 1.3 16-Jul-1999 mickey

do not reset, helps the serial console


# 1.2 05-May-1999 mickey

don't use much of bus.h here, no need


Revision tags: OPENBSD_2_5_BASE
# 1.1 23-Nov-1998 mickey

some GSC bus adapters; WAX is not ready yet


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.14 09-Jun-2005 mickey

it appears asp occupies more space than intially thought and
audio wraps off the edge making troubles.
make sure gsc attachment follows the amsk from the parents
and also extend the asp's range to a full 512m.
found by Graham Gower <graham.gower@gmail.com> on 735
testing by miod@ on 715


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE SMP_SYNC_A SMP_SYNC_B
# 1.13 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.12 08-Apr-2003 mickey

just wate that debug altogether


# 1.11 08-Apr-2003 miod

Make dmesg prettier if attachment fails and no option DEBUG


Revision tags: OPENBSD_3_3_BASE
# 1.10 18-Feb-2003 miod

Let kernels compile without DDB, USELEDS, and DIAGNOSTIC.
For future intallation media.


# 1.9 18-Dec-2002 mickey

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


# 1.8 17-Dec-2002 mickey

real interrupts/spl framework.
tested on 712/* 715/100, 715/33 which main cpu/bus types.
miod@ ok


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.7 22-Apr-2002 mickey

do not forget to set the hpamask


Revision tags: OPENBSD_3_1_BASE
# 1.6 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE SMP_BASE UBC_BASE
# 1.5 09-Feb-2000 mickey

branches: 1.5.2; 1.5.12;
heartbeat -- yeah we have a patch for that


Revision tags: kame_19991208
# 1.4 26-Nov-1999 mickey

print asp spu type in text


Revision tags: OPENBSD_2_6_BASE
# 1.3 16-Jul-1999 mickey

do not reset, helps the serial console


# 1.2 05-May-1999 mickey

don't use much of bus.h here, no need


Revision tags: OPENBSD_2_5_BASE
# 1.1 23-Nov-1998 mickey

some GSC bus adapters; WAX is not ready yet