summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-06-12 17:07:57 +0000
committermjacob <mjacob@FreeBSD.org>2000-06-12 17:07:57 +0000
commit6c90966cad8960204e970e220ce11ccd81994f46 (patch)
tree6f5185c08b351c30039fd7106168401e53e99f7f /sys/alpha/pci
parentb91a93f851dbc2bb944fccdd0a5b28f6e901bfdc (diff)
downloadFreeBSD-src-6c90966cad8960204e970e220ce11ccd81994f46.zip
FreeBSD-src-6c90966cad8960204e970e220ce11ccd81994f46.tar.gz
Sometimes there isn't an ISA bus configured.
Diffstat (limited to 'sys/alpha/pci')
-rw-r--r--sys/alpha/pci/pcibus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/pci/pcibus.c b/sys/alpha/pci/pcibus.c
index f72e9c0..2809ff0 100644
--- a/sys/alpha/pci/pcibus.c
+++ b/sys/alpha/pci/pcibus.c
@@ -206,6 +206,7 @@ alpha_platform_pci_setup_intr(device_t dev, device_t child,
driver_intr_t *intr, void *arg,
void **cookiep)
{
+#if NISA > 0
/*
* XXX - If we aren't the resource manager for this IRQ, assume that
* it is actually handled by the ISA PIC.
@@ -214,6 +215,7 @@ alpha_platform_pci_setup_intr(device_t dev, device_t child,
return isa_setup_intr(dev, child, irq, flags, intr, arg,
cookiep);
else
+#endif
return bus_generic_setup_intr(dev, child, irq, flags, intr,
arg, cookiep);
}
@@ -222,6 +224,7 @@ int
alpha_platform_pci_teardown_intr(device_t dev, device_t child,
struct resource *irq, void *cookie)
{
+#if NISA > 0
/*
* XXX - If we aren't the resource manager for this IRQ, assume that
* it is actually handled by the ISA PIC.
@@ -229,6 +232,7 @@ alpha_platform_pci_teardown_intr(device_t dev, device_t child,
if(irq->r_rm != &irq_rman)
return isa_teardown_intr(dev, child, irq, cookie);
else
+#endif
return bus_generic_teardown_intr(dev, child, irq, cookie);
}
OpenPOWER on IntegriCloud