Changeset 68e5406 in mainline for uspace/lib/usbhost/src/hcd.c
- Timestamp:
- 2017-12-10T21:08:11Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4c6de4f
- Parents:
- dd8ab1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
rdd8ab1c r68e5406 102 102 } 103 103 104 usb_address_t hcd_request_address(hcd_t *hcd, usb_speed_t speed) 105 { 106 assert(hcd); 107 usb_address_t address = 0; 108 const int ret = usb_bus_request_address( 109 &hcd->bus, &address, false, speed); 110 if (ret != EOK) 111 return ret; 112 return address; 104 int hcd_request_address(hcd_t *hcd, usb_speed_t speed, usb_address_t *address) 105 { 106 assert(hcd); 107 return usb_bus_request_address(&hcd->bus, address, false, speed); 113 108 } 114 109 … … 271 266 272 267 /** this is really ugly version of sync usb communication */ 273 ssize_t hcd_send_batch_sync(268 int hcd_send_batch_sync( 274 269 hcd_t *hcd, usb_target_t target, usb_direction_t dir, 275 void *data, size_t size, uint64_t setup_data, const char* name )270 void *data, size_t size, uint64_t setup_data, const char* name, size_t *out_size) 276 271 { 277 272 assert(hcd); … … 289 284 290 285 if (sd.ret == EOK) 291 returnsd.size;286 *out_size = sd.size; 292 287 return sd.ret; 293 288 }
Note:
See TracChangeset
for help on using the changeset viewer.