/* Return the BIOS address of the adapter at the specified I/O port and with the specified bus type.  */
static unsigned short __devinit AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type)
/* Return the BIOS address of the adapter at the specified I/O port and with the specified bus type.  */
static unsigned short __devinit AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type)
{
	unsigned short cfg_lsw;
	unsigned short bios_addr;
	if (bus_type & ASC_IS_PCI)
		return 0;
	if ((bus_type & ASC_IS_EISA) != 0) {
		cfg_lsw = AscGetEisaChipCfg(iop_base);
		cfg_lsw &= 0x000F;
		bios_addr = ASC_BIOS_MIN_ADDR + cfg_lsw * ASC_BIOS_BANK_SIZE;
		return bios_addr;
	}
	cfg_lsw = AscGetChipCfgLsw(iop_base);
	if (bus_type == ASC_IS_ISAPNP)
		cfg_lsw &= 0x7FFF;
	bios_addr = ASC_BIOS_MIN_ADDR + (cfg_lsw >> 12) * ASC_BIOS_BANK_SIZE;
	return bios_addr;
}