From 68ab2e8672946a6853aad8701050aaa46c547664 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Mon, 16 Oct 2000 15:38:11 +0000 Subject: [PATCH] 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.. --- sys/dev/pci/pci.c | 2 ++ sys/pci/pci.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 0d3df317273e..17f8cebef961 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, diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 0d3df317273e..17f8cebef961 100644 --- a/sys/pci/pci.c +++ b/sys/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,