int __pmac media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base, 
int media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base, 
int __pmac media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base,	int irq, int index){#ifdef CONFIG_BLK_DEV_IDE	int	i;	for (i=0; i<media_bay_count; i++) {		struct media_bay_info* bay = &media_bays[i];		if (bay->mdev && which_bay == bay->mdev->ofdev.node) {			int timeout = 5000;						down(&bay->lock); 			bay->cd_base	= (void __iomem *) base;			bay->cd_irq	= irq;			if ((MB_CD != bay->content_id) || bay->state != mb_up) {				up(&bay->lock);				return 0;			}			printk(KERN_DEBUG "Registered ide%d for media bay %d\n", index, i);			do {				if (MB_IDE_READY(i)) {					bay->cd_index	= index;					up(&bay->lock);					return 0;				}				mdelay(1);			} while(--timeout);			printk(KERN_DEBUG "Timeount waiting IDE in bay %d\n", i);			up(&bay->lock);			return -ENODEV;		}	}#endif /* CONFIG_BLK_DEV_IDE */		return -ENODEV;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/aacaf9bd9646f6f611a08fca976411b6e5ddefe2/mediabay.c/clean/drivers/macintosh/mediabay.c