#
1.23 |
|
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_7_BASE 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.22 |
|
15-Sep-2004 |
mickey |
scan cpu bus manually for some machines do not support that in prom
|
#
1.21 |
|
15-Sep-2004 |
mickey |
map both register spaces
|
Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.20 |
|
07-Apr-2004 |
mickey |
update copyright; miod@ is fine w/ files where he holds it too
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.19 |
|
01-Dec-2003 |
mickey |
same leds on b132 and b160; from Hans-Joerg.Hoexer@yerbouti.franken.de
|
#
1.18 |
|
25-Sep-2003 |
mickey |
j2x0 do not like our fiddling over th led port; testing by pb@
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.17 |
|
28-Aug-2003 |
mickey |
b180 wink-wink
|
#
1.16 |
|
20-Aug-2003 |
mickey |
support systems where power service is available from pdc and implement a cold hook as well thus do not powerleash lasi should we have cold_hook already set
|
#
1.15 |
|
05-Aug-2003 |
mickey |
a180c blinks too, 715/80 supposedly too
|
#
1.14 |
|
30-Jul-2003 |
mickey |
deduce the leds address from the model number and thus make some more use of that lichtenblinkenschmutz on some more machinens
|
Revision tags: UBC_SYNC_A
|
#
1.13 |
|
08-Apr-2003 |
mickey |
just wate that debug altogether
|
#
1.12 |
|
08-Apr-2003 |
miod |
Make dmesg prettier if attachment fails and no option DEBUG
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.11 |
|
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.10 |
|
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.9 |
|
22-Apr-2002 |
mickey |
do not forget to set the hpamask
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.8 |
|
14-Mar-2002 |
millert |
First round of __P removal in sys
|
#
1.7 |
|
12-Feb-2002 |
mickey |
support 712's programmable power switch, no interrupt yet
|
#
1.6 |
|
05-Feb-2002 |
mickey |
get rid of the borrowed habits in intr handling
|
#
1.5 |
|
03-Feb-2002 |
mickey |
defer non-0 units to keep iface order right
|
Revision tags: OPENBSD_3_0_BASE UBC_BASE
|
#
1.4 |
|
09-Jun-2001 |
mickey |
branches: 1.4.4; disable debugging by default
|
Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
|
#
1.3 |
|
20-Apr-1999 |
mickey |
branches: 1.3.4; map the io space
|
Revision tags: OPENBSD_2_5_BASE
|
#
1.2 |
|
25-Feb-1999 |
mickey |
try to avoid using bus_* stuff for MD code, handle interrupts, gscbus changes
|
#
1.1 |
|
23-Nov-1998 |
mickey |
some GSC bus adapters; WAX is not ready yet
|
Revision tags: OPENBSD_3_7_BASE 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.22 |
|
15-Sep-2004 |
mickey |
scan cpu bus manually for some machines do not support that in prom
|
#
1.21 |
|
15-Sep-2004 |
mickey |
map both register spaces
|
Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.20 |
|
07-Apr-2004 |
mickey |
update copyright; miod@ is fine w/ files where he holds it too
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.19 |
|
01-Dec-2003 |
mickey |
same leds on b132 and b160; from Hans-Joerg.Hoexer@yerbouti.franken.de
|
#
1.18 |
|
25-Sep-2003 |
mickey |
j2x0 do not like our fiddling over th led port; testing by pb@
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.17 |
|
28-Aug-2003 |
mickey |
b180 wink-wink
|
#
1.16 |
|
20-Aug-2003 |
mickey |
support systems where power service is available from pdc and implement a cold hook as well thus do not powerleash lasi should we have cold_hook already set
|
#
1.15 |
|
05-Aug-2003 |
mickey |
a180c blinks too, 715/80 supposedly too
|
#
1.14 |
|
30-Jul-2003 |
mickey |
deduce the leds address from the model number and thus make some more use of that lichtenblinkenschmutz on some more machinens
|
Revision tags: UBC_SYNC_A
|
#
1.13 |
|
08-Apr-2003 |
mickey |
just wate that debug altogether
|
#
1.12 |
|
08-Apr-2003 |
miod |
Make dmesg prettier if attachment fails and no option DEBUG
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.11 |
|
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.10 |
|
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.9 |
|
22-Apr-2002 |
mickey |
do not forget to set the hpamask
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.8 |
|
14-Mar-2002 |
millert |
First round of __P removal in sys
|
#
1.7 |
|
12-Feb-2002 |
mickey |
support 712's programmable power switch, no interrupt yet
|
#
1.6 |
|
05-Feb-2002 |
mickey |
get rid of the borrowed habits in intr handling
|
#
1.5 |
|
03-Feb-2002 |
mickey |
defer non-0 units to keep iface order right
|
Revision tags: OPENBSD_3_0_BASE UBC_BASE
|
#
1.4 |
|
09-Jun-2001 |
mickey |
branches: 1.4.4; disable debugging by default
|
Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
|
#
1.3 |
|
20-Apr-1999 |
mickey |
branches: 1.3.4; map the io space
|
Revision tags: OPENBSD_2_5_BASE
|
#
1.2 |
|
25-Feb-1999 |
mickey |
try to avoid using bus_* stuff for MD code, handle interrupts, gscbus changes
|
#
1.1 |
|
23-Nov-1998 |
mickey |
some GSC bus adapters; WAX is not ready yet
|