#ifdef CONFIG_PMAC_PBOOK 
static int aty128fb_ioctl(struct inode *inode, struct file *file, u_int cmd,			  u_long arg, struct fb_info *info){#ifdef CONFIG_PMAC_PBOOK	struct aty128fb_par *par = info->par;	u32 value;	int rc;    	switch (cmd) {	case FBIO_ATY128_SET_MIRROR:		if (par->chip_gen != rage_M3)			return -EINVAL;		rc = get_user(value, (__u32 __user *)arg);		if (rc)			return rc;		par->lcd_on = (value & 0x01) != 0;		par->crt_on = (value & 0x02) != 0;		if (!par->crt_on && !par->lcd_on)			par->lcd_on = 1;		aty128_set_crt_enable(par, par->crt_on);			aty128_set_lcd_enable(par, par->lcd_on);			return 0;	case FBIO_ATY128_GET_MIRROR:		if (par->chip_gen != rage_M3)			return -EINVAL;		value = (par->crt_on << 1) | par->lcd_on;		return put_user(value, (__u32 __user *)arg);	}#endif	return -EINVAL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8c8709334cec803368a432a33e0f2e116d48fe07/aty128fb.c/buggy/drivers/video/aty/aty128fb.c