ppc_md.irq_canonicalize = prep_irq_canonicalize; 
prep_init(unsigned long r3, unsigned long r4, unsigned long r5,		unsigned long r6, unsigned long r7){#ifdef CONFIG_PREP_RESIDUAL	/* make a copy of residual data */	if ( r3 ) {		memcpy((void *)res,(void *)(r3+KERNELBASE),			 sizeof(RESIDUAL));	}#endif	isa_io_base = PREP_ISA_IO_BASE;	isa_mem_base = PREP_ISA_MEM_BASE;	pci_dram_offset = PREP_PCI_DRAM_OFFSET;	ISA_DMA_THRESHOLD = 0x00ffffff;	DMA_MODE_READ = 0x44;	DMA_MODE_WRITE = 0x48;	/* figure out what kind of prep workstation we are */	if (have_residual_data) {		if ( !strncmp(res->VitalProductData.PrintableModel,"IBM",3) )			_prep_type = _PREP_IBM;		else			_prep_type = _PREP_Motorola;	}	else {		/* assume motorola if no residual (netboot?) */		_prep_type = _PREP_Motorola;	}#ifdef CONFIG_PREP_RESIDUAL	/* Switch off all residual data processing if the user requests it */	if (strstr(cmd_line, "noresidual") != NULL)			res = NULL;#endif	/* Initialise progress early to get maximum benefit */	prep_set_bat();	ibm_statusled_init();	ppc_md.setup_arch     = prep_setup_arch;	ppc_md.show_percpuinfo = prep_show_percpuinfo;	ppc_md.show_cpuinfo   = NULL; /* set in prep_setup_arch() */	ppc_md.irq_canonicalize = prep_irq_canonicalize;	ppc_md.init_IRQ       = prep_init_IRQ;	/* this gets changed later on if we have an OpenPIC -- Cort */	ppc_md.get_irq        = i8259_irq;	ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot;	ppc_md.restart        = prep_restart;	ppc_md.power_off      = NULL; /* set in prep_setup_arch() */	ppc_md.halt           = prep_halt;	ppc_md.nvram_read_val = prep_nvram_read_val;	ppc_md.nvram_write_val = prep_nvram_write_val;	ppc_md.time_init      = todc_time_init;	if (_prep_type == _PREP_IBM) {		ppc_md.rtc_read_val = todc_mc146818_read_val;		ppc_md.rtc_write_val = todc_mc146818_write_val;		TODC_INIT(TODC_TYPE_MC146818, RTC_PORT(0), NULL, RTC_PORT(1),				8);	} else {		TODC_INIT(TODC_TYPE_MK48T59, PREP_NVRAM_AS0, PREP_NVRAM_AS1,				PREP_NVRAM_DATA, 8);	}	ppc_md.calibrate_decr = prep_calibrate_decr;	ppc_md.set_rtc_time   = todc_set_rtc_time;	ppc_md.get_rtc_time   = todc_get_rtc_time;	ppc_md.setup_io_mappings = prep_map_io;#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)	ppc_ide_md.default_irq = prep_ide_default_irq;	ppc_ide_md.default_io_base = prep_ide_default_io_base;#endif#ifdef CONFIG_SMP	ppc_md.smp_ops		 = &prep_smp_ops;#endif /* CONFIG_SMP */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/35d81a4bfe28a6ea81c9f67c9ce40543124ded0b/prep_setup.c/clean/arch/ppc/platforms/prep_setup.c