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..
This commit is contained in:
gallatin 2000-10-16 15:38:11 +00:00
parent d84d862cbd
commit b2fadc6d14
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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,