} else { printk("\nEnabling ES7000 specific features...\n"); /* * Determine the generation of the ES7000 currently running. * * es7000_plat = 0 if the machine is NOT a Unisys ES7000 box * es7000_plat = 1 if the machine is a 5xx ES7000 box * es7000_plat = 2 if the machine is a x86_64 ES7000 box * */ if (!(boot_cpu_data.x86 <= 15 && boot_cpu_data.x86_model <= 2)) es7000_plat = 2; else es7000_plat = 1;  ioapic_renumber_irq = es7000_rename_gsi; } 
} else setup_unisys(); 
parse_unisys_oem (char *oemptr, int oem_entries){	int                     i;	int 			success = 0;	unsigned char           type, size;	unsigned long           val;	char                    *tp = NULL;	struct psai             *psaip = NULL;	struct mip_reg_info 	*mi;	struct mip_reg		*host, *mip;	tp = oemptr;	tp += 8;	for (i=0; i <= oem_entries; i++) {		type = *tp++;		size = *tp++;		tp -= 2;		switch (type) {		case MIP_REG:			mi = (struct mip_reg_info *)tp;			val = MIP_RD_LO(mi->host_reg);			host_addr = val;			host = (struct mip_reg *)val;			host_reg = __va(host);			val = MIP_RD_LO(mi->mip_reg);			mip_port = MIP_PORT(mi->mip_info);			mip_addr = val;			mip = (struct mip_reg *)val;			mip_reg = __va(mip);			Dprintk("es7000_mipcfg: host_reg = 0x%lx \n",				(unsigned long)host_reg);			Dprintk("es7000_mipcfg: mip_reg = 0x%lx \n",				(unsigned long)mip_reg);			success++;			break;		case MIP_PSAI_REG:			psaip = (struct psai *)tp;			if (tp != NULL) {				if (psaip->addr)					psai = __va(psaip->addr);				else					psai = NULL;				success++;			}			break;		default:			break;		}		if (i == 6) break;		tp += size;	}	if (success < 2) {		es7000_plat = 0;	} else {		printk("\nEnabling ES7000 specific features...\n");		/*		 * Determine the generation of the ES7000 currently running.		 *		 * es7000_plat = 0 if the machine is NOT a Unisys ES7000 box		 * es7000_plat = 1 if the machine is a 5xx ES7000 box		 * es7000_plat = 2 if the machine is a x86_64 ES7000 box		 *		 */		if (!(boot_cpu_data.x86 <= 15 && boot_cpu_data.x86_model <= 2))			es7000_plat = 2;		else			es7000_plat = 1;		ioapic_renumber_irq = es7000_rename_gsi;	}	return es7000_plat;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/56f1d5d52a21b93bc2984c920b17e0d80df5d1b2/es7000plat.c/buggy/arch/i386/mach-es7000/es7000plat.c