Re: IDEDMA problems.

Leonard N. Zubkoff (lnz@dandelion.com)
Wed, 3 Dec 1997 11:42:47 -0800


From: R.E.Wolff@BitWizard.nl (Rogier Wolff)
Date: Wed, 3 Dec 1997 14:32:13 +0100 (MET)

Add:
/* This is for x86. Do other architectures use this device? */
#define MAX_IRQ 15
if (pciirq > MAX_IRQ) {
printk ("Warning: Your bios gave your IDE chip IRQ%d which is invalid.\n", pciirq);
pciirq = 0;
}

(Untested code, use at your own risk.)

I suggest using the existing NR_IRQS which should be set correctly for each
architecture.

Leonard