/* The ISA IRQ number is found in bits 2 and 3 of the CfgLsw. It decodes as: 00: 10 01: 11 10: 12 11: 15  */
static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base)
/* The ISA IRQ number is found in bits 2 and 3 of the CfgLsw. It decodes as: 00: 10 01: 11 10: 12 11: 15  */
static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base)
{
	unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base);
	unsigned int chip_irq = ((cfg_lsw >> 2) & 0x03) + 10;
	if (chip_irq == 13)
		chip_irq = 15;
	return chip_irq;
}