Changeset b8a3cda in mainline for uspace/srv/hw/bus/usb/hcd/virtual/conndev.c
- Timestamp:
- 2010-10-22T14:57:03Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a7bfeb3
- Parents:
- 954ea70
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/usb/hcd/virtual/conndev.c
r954ea70 rb8a3cda 51 51 .endpoint = IPC_GET_ARG2(icall) 52 52 }; 53 size_t len = IPC_GET_ARG3(icall); 53 54 54 55 if (!hub_can_device_signal(dev)) { … … 60 61 target.address, target.endpoint); 61 62 62 size_t len; 63 void * buffer; 64 int rc = async_data_write_accept(&buffer, false, 65 1, USB_MAX_PAYLOAD_SIZE, 66 0, &len); 63 int rc; 67 64 68 if (rc != EOK) { 69 ipc_answer_0(iid, rc); 70 return; 65 void * buffer = NULL; 66 if (len > 0) { 67 rc = async_data_write_accept(&buffer, false, 68 1, USB_MAX_PAYLOAD_SIZE, 69 0, &len); 70 71 if (rc != EOK) { 72 ipc_answer_0(iid, rc); 73 return; 74 } 71 75 } 72 76 73 rc = hc_fillin_transaction_from_device( USB_TRANSFER_INTERRUPT,target, buffer, len);77 rc = hc_fillin_transaction_from_device(target, buffer, len); 74 78 75 79 ipc_answer_0(iid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.