get_1284_register(pp, 0, NULL); printk("uss720: reg: %02x %02x %02x %02x %02x %02x %02x\n", priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3], priv->reg[4], priv->reg[5], priv->reg[6]); 
get_1284_register(pp, 0, &reg, GFP_KERNEL); dbg("reg: %02x %02x %02x %02x %02x %02x %02x", priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3], priv->reg[4], priv->reg[5], priv->reg[6]); 
static int uss720_probe(struct usb_interface *intf,			const struct usb_device_id *id){	struct usb_device *usbdev = interface_to_usbdev(intf);	struct usb_host_interface *interface;	struct usb_host_endpoint *endpoint;	struct parport_uss720_private *priv;	struct parport *pp;	int i;	printk(KERN_DEBUG "uss720: probe: vendor id 0x%x, device id 0x%x\n",	       le16_to_cpu(usbdev->descriptor.idVendor),	       le16_to_cpu(usbdev->descriptor.idProduct));	/* our known interfaces have 3 alternate settings */	if (intf->num_altsetting != 3)		return -ENODEV;	i = usb_set_interface(usbdev, intf->altsetting->desc.bInterfaceNumber, 2);	printk(KERN_DEBUG "uss720: set inteface result %d\n", i);	interface = intf->cur_altsetting;	/*	 * Allocate parport interface 	 */	printk(KERN_INFO "uss720: (C) 1999 by Thomas Sailer, <sailer@ife.ee.ethz.ch>\n");	if (!(priv = kmalloc(sizeof(struct parport_uss720_private), GFP_KERNEL)))		return -ENOMEM;	if (!(pp = parport_register_port(0, PARPORT_IRQ_NONE, PARPORT_DMA_NONE, &parport_uss720_ops))) {		printk(KERN_WARNING "usb-uss720: could not register parport\n");		goto probe_abort;	}	pp->private_data = priv;	priv->usbdev = usbdev;	pp->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_ECP | PARPORT_MODE_COMPAT;	/* set the USS720 control register to manual mode, no ECP compression, enable all ints */	set_1284_register(pp, 7, 0x00);	set_1284_register(pp, 6, 0x30);  /* PS/2 mode */	set_1284_register(pp, 2, 0x0c);	/* debugging */	get_1284_register(pp, 0, NULL);	printk("uss720: reg: %02x %02x %02x %02x %02x %02x %02x\n",	       priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3], priv->reg[4], priv->reg[5], priv->reg[6]);	endpoint = &interface->endpoint[2];	printk(KERN_DEBUG "uss720: epaddr %d interval %d\n", endpoint->desc.bEndpointAddress, endpoint->desc.bInterval);#if 0	priv->irqpipe = usb_rcvctrlpipe(usbdev, endpoint->bEndpointAddress);	i = usb_request_irq(usbdev, priv->irqpipe,				  uss720_irq, endpoint->bInterval,				  pp, &priv->irqhandle);	if (i) {		printk (KERN_WARNING "usb-uss720: usb_request_irq failed (0x%x)\n", i);		goto probe_abort_port;	}#endif	parport_announce_port(pp);	usb_set_intfdata (intf, pp);	return 0;#if 0probe_abort_port:	parport_put_port(pp);#endifprobe_abort:	kfree(priv);	return -ENODEV;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0f36163d3abefbda1b21a330b3fdf3c2dc076d94/uss720.c/clean/drivers/usb/misc/uss720.c