summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci
diff options
context:
space:
mode:
authorticso <ticso@FreeBSD.org>2002-04-17 14:08:22 +0000
committerticso <ticso@FreeBSD.org>2002-04-17 14:08:22 +0000
commitf81be190dc5c79e090465f496a7d62f363ca611e (patch)
tree527633c4876e09d48a970d41d6dac5c5d1361e32 /sys/alpha/pci
parent18d687d9dea2a4816a3851861c5d807504a9fba9 (diff)
downloadFreeBSD-src-f81be190dc5c79e090465f496a7d62f363ca611e.zip
FreeBSD-src-f81be190dc5c79e090465f496a7d62f363ca611e.tar.gz
Revive dec_axppci_33_intr_route for LCA.
We now get valid interrupt lines for devices on secondary pci busses. Reviewed by: gallatin Approved by: gallatin
Diffstat (limited to 'sys/alpha/pci')
-rw-r--r--sys/alpha/pci/lca_pci.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/alpha/pci/lca_pci.c b/sys/alpha/pci/lca_pci.c
index 82d071b..6ab5ae9 100644
--- a/sys/alpha/pci/lca_pci.c
+++ b/sys/alpha/pci/lca_pci.c
@@ -161,19 +161,10 @@ u_int32_t
lca_pcib_read_config(device_t dev, u_int b, u_int s, u_int f,
u_int reg, int width)
{
- pcicfgregs cfg;
-
- if ((reg == PCIR_INTLINE) && (width == 1) &&
- (platform.pci_intr_map != NULL)) {
- cfg.bus = b;
- cfg.slot = s;
- cfg.func = f;
- cfg.intline = 255;
- cfg.intpin =
- lca_pcib_read_config(dev, b, s, f, PCIR_INTPIN, 1);
- platform.pci_intr_map((void *)&cfg);
- if (cfg.intline != 255)
- return cfg.intline;
+
+ if ((reg == PCIR_INTLINE) && (width == 1)) {
+ /* SRM left bad value; let intr_route fill them in later */
+ return ~0;
}
switch (width) {
OpenPOWER on IntegriCloud