struct parport_uss720_private *priv = pp->private_data; struct usb_device *usbdev = priv->usbdev; 
struct parport_uss720_private *priv; struct uss720_async_request *rq; 
static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val){	struct parport_uss720_private *priv = pp->private_data;	struct usb_device *usbdev = priv->usbdev;	static const unsigned char regindex[9] = {		4, 0, 1, 5, 5, 0, 2, 3, 6	};	int ret;	if (!usbdev)		return -1;	ret = usb_control_msg(usbdev, usb_rcvctrlpipe(usbdev,0), 3, 0xc0, ((unsigned int)reg) << 8, 0, priv->reg, 7, 1000);	if (ret != 7) {		printk(KERN_DEBUG "uss720: get_1284_register(%d) failed, status 0x%x expected 7\n",		       (unsigned int)reg, ret);		ret = -1;	} else {#if 0		printk(KERN_DEBUG "uss720: get_1284_register(%d) return %02x %02x %02x %02x %02x %02x %02x\n",		       (unsigned int)reg, (unsigned int)priv->reg[0], (unsigned int)priv->reg[1],		       (unsigned int)priv->reg[2], (unsigned int)priv->reg[3], (unsigned int)priv->reg[4],		       (unsigned int)priv->reg[5], (unsigned int)priv->reg[6]);#endif		/* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */		if (priv->reg[2] & priv->reg[1] & 0x10)			parport_generic_irq(0, pp, NULL);		ret = 0;	}	if (val)		*val = priv->reg[(reg >= 9) ? 0 : regindex[reg]];	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0f36163d3abefbda1b21a330b3fdf3c2dc076d94/uss720.c/clean/drivers/usb/misc/uss720.c