-
-#if 1
- /* select configuration */
- ret = usb_set_configuration(dev, 1);
- printf("=============\nusb_set_configuration(ret: %d): %d\n", ret, dev->conf->bConfigurationValue);
- printf("=============\nusb_get_configuration: %d (should be 1 here)\n", usb_get_configuration(dev));
-#endif
-
-
- u8 buf[8];
-#if 1
- /* select interface */
- memset(buf, 0, 8);
- printf("interfacenumber: %d\n", dev->conf->intf->bInterfaceNumber);
- usb_control_msg(dev, 0x01, SET_INTERFACE, 0, 0, 0, buf, 0);
- printf("=============\nusb_set_interface: %d\n", 0);
- hexdump((void*)buf, 8);
-#if 0
- memset(buf, 0, 8);
- usb_control_msg(dev, 0x81, GET_INTERFACE, 0, 0, 4, buf, 0);
- printf("=============\nusb_get_interface: %d\n", buf[0]);
- hexdump((void*)buf, 8);
-#endif
-#endif
-
- /* I just don't know why on some devices
- * {s,g}et_{configuration,interface} won't work.
- * may the setter works and getter are poorly implemented?
- * however, I try here some interrupt inputs, assuming
- * the setters are fine*/
-
- memset(buf, 0, 8);
- s8 epnum = dev->conf->intf->endp->bEndpointAddress & 0xf;
- printf("epnum: 0x%04X\n", epnum);
- u8 muh = 10;
- while(muh--) {
- (void) usb_interrupt_read(dev, epnum, buf, 8, 0);
- printf("============\nusb_interrupt_read:\n");
- hexdump((void*)buf, 8);
- udelay(2000000);
- }
-
-#if 0