* wIndex = 0
* wLength = 8 (in Bytes!?)
*/
- usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
+ usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 64, buf, 8, 0);
+ //usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
/*
* length (here =64) should be "number of byte to transfer", not
td = usb_create_transfer_descriptor(irp);
td->pid = USB_PID_SETUP;
td->buffer = irp->buffer;
- td->actlen = 64; /* control message are always 8 bytes */
+
+ /* control message are always 8 bytes */
+ td->actlen = 8;
memcpy(mybuf, td->buffer, td->actlen);
togl = 0;
td->togl = togl; /* start with data0 */
-#if 0
if (togl == 0)
togl = 1;
else
togl = 0;
-#endif
/**** send token ****/
printf("togl: %d\n", togl);
hcdi_enqueue(td);
- break;
#if 0
+ break;
memcpy(td->buffer, mybuf, td->actlen);
#endif