summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2000-10-16 15:38:11 +0000
committergallatin <gallatin@FreeBSD.org>2000-10-16 15:38:11 +0000
commitb2fadc6d14b99c39530ad33a13a2a1ebc9d73eef (patch)
tree68f2fdcd60ade29012aa0edda8f87e95ae73b923 /sys/dev/pci
parentd84d862cbd66f3f9ab4ce65fe69893664689c73b (diff)
downloadFreeBSD-src-b2fadc6d14b99c39530ad33a13a2a1ebc9d73eef.zip
FreeBSD-src-b2fadc6d14b99c39530ad33a13a2a1ebc9d73eef.tar.gz
The previous commit broke kernel builds on alpha (and probably ia64).
#ifdef away the offending code until somebody with more newbus fu than me can figure out where to put a default function that returns 255 without touching each alpha chipset driver..
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 0d3df31..17f8ceb 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1295,9 +1295,11 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
*/
if (device_get_parent(child) == dev) {
if ((type == SYS_RES_IRQ) && (cfg->intline == 255)) {
+#ifdef __i386__
cfg->intline = PCIB_ROUTE_INTERRUPT(
device_get_parent(dev), pci_get_slot(child),
cfg->intpin);
+#endif /* __i386__ */
if (cfg->intline != 255) {
/* XXX write back to PCI space? */
resource_list_add(rl, SYS_RES_IRQ, 0,
OpenPOWER on IntegriCloud