/* The VLB IRQ number is found in bits 2 to 4 of the CfgLsw. It decodes as: 000: invalid 001: 10 010: 11 011: 12 100: invalid 101: 14 110: 15 111: invalid  */
static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base)
/* The VLB IRQ number is found in bits 2 to 4 of the CfgLsw. It decodes as: 000: invalid 001: 10 010: 11 011: 12 100: invalid 101: 14 110: 15 111: invalid  */
static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base)
{
	unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base);
	unsigned int chip_irq = ((cfg_lsw >> 2) & 0x07) + 9;
	if ((chip_irq < 10) || (chip_irq == 13) || (chip_irq > 15))
		return 0;
	return chip_irq;
}