static void __init init_hwif_ali15x3 (ide_hwif_t *hwif) 
static void __devinit init_hwif_ali15x3 (ide_hwif_t *hwif) 
static void __init init_hwif_ali15x3 (ide_hwif_t *hwif){	u8 ideic, inmir;	s8 irq_routing_table[] = { -1,  9, 3, 10, 4,  5, 7,  6,				      1, 11, 0, 12, 0, 14, 0, 15 };	int irq = -1;	if (hwif->pci_dev->device == PCI_DEVICE_ID_AL_M5229)		hwif->irq = hwif->channel ? 15 : 14;	if (isa_dev) {		/*		 * read IDE interface control		 */		pci_read_config_byte(isa_dev, 0x58, &ideic);		/* bit0, bit1 */		ideic = ideic & 0x03;		/* get IRQ for IDE Controller */		if ((hwif->channel && ideic == 0x03) ||		    (!hwif->channel && !ideic)) {			/*			 * get SIRQ1 routing table			 */			pci_read_config_byte(isa_dev, 0x44, &inmir);			inmir = inmir & 0x0f;			irq = irq_routing_table[inmir];		} else if (hwif->channel && !(ideic & 0x01)) {			/*			 * get SIRQ2 routing table			 */			pci_read_config_byte(isa_dev, 0x75, &inmir);			inmir = inmir & 0x0f;			irq = irq_routing_table[inmir];		}		if(irq >= 0)			hwif->irq = irq;	}	init_hwif_common_ali15x3(hwif);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/c2f12589bfc4119f2c331ecea8cca4945ed48497/alim15x3.c/clean/drivers/ide/pci/alim15x3.c