+#else
+ /* http://www.jungo.com/support/documentation/windriver/802/wdusb_man_mhtml/node55.html#SECTION001213000000000000000 */
+ if (ut->dwPipeNum == 0) { /* control pipe */
+ int requesttype, request, value, index, size;
+ requesttype = ut->SetupPacket[0];
+ request = ut->SetupPacket[1];
+ value = ut->SetupPacket[2] | (ut->SetupPacket[3] << 8);
+ index = ut->SetupPacket[4] | (ut->SetupPacket[5] << 8);
+ size = ut->SetupPacket[6] | (ut->SetupPacket[7] << 8);
+ DPRINTF("requesttype: %x, request: %x, value: %u, index: %u, size: %u\n", requesttype, request, value, index, size);
+ ret = usb_control_msg(usb_devhandle, requesttype, request, value, index, ut->pBuffer, size, ut->dwTimeout);
+ } else {
+ if (ut->fRead) {
+ ret = usb_bulk_read(usb_devhandle, ut->dwPipeNum, ut->pBuffer, ut->dwBufferSize, ut->dwTimeout);
+
+ } else {
+ ret = usb_bulk_write(usb_devhandle, ut->dwPipeNum, ut->pBuffer, ut->dwBufferSize, ut->dwTimeout);
+ }
+ }
+
+ if (ret < 0) {
+ fprintf(stderr, "usb_transfer: %d (%s)\n", ret, usb_strerror());
+ } else {
+ ut->dwBytesTransferred = ret;
+ ret = 0;
+ }