Changes in uspace/drv/ohci/iface.c [be7950e8:1387692] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/iface.c
rbe7950e8 r1387692 64 64 assert(hc); 65 65 usb_log_debug("Default address request with speed %d.\n", speed); 66 device_keeper_reserve_default(&hc->manager, speed);66 usb_device_keeper_reserve_default_address(&hc->manager, speed); 67 67 return EOK; 68 68 } … … 79 79 assert(hc); 80 80 usb_log_debug("Default address release.\n"); 81 device_keeper_release_default(&hc->manager);81 usb_device_keeper_release_default_address(&hc->manager); 82 82 return EOK; 83 83 } … … 99 99 100 100 usb_log_debug("Address request with speed %d.\n", speed); 101 *address = device_keeper_ request(&hc->manager, speed);101 *address = device_keeper_get_free_address(&hc->manager, speed); 102 102 usb_log_debug("Address request with result: %d.\n", *address); 103 103 if (*address <= 0) … … 120 120 assert(hc); 121 121 usb_log_debug("Address bind %d-%d.\n", address, handle); 122 device_keeper_bind(&hc->manager, address, handle);122 usb_device_keeper_bind(&hc->manager, address, handle); 123 123 return EOK; 124 124 } … … 136 136 assert(hc); 137 137 usb_log_debug("Address release %d.\n", address); 138 device_keeper_release(&hc->manager, address);138 usb_device_keeper_release(&hc->manager, address); 139 139 return EOK; 140 140 } … … 200 200 hc_t *hc = fun_to_hc(fun); 201 201 assert(hc); 202 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);202 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 203 203 204 204 usb_log_debug("Interrupt OUT %d:%d %zu(%zu).\n", 205 205 target.address, target.endpoint, size, max_packet_size); 206 206 207 batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT,207 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT, 208 208 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg, 209 209 &hc->manager); … … 243 243 hc_t *hc = fun_to_hc(fun); 244 244 assert(hc); 245 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);245 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 246 246 usb_log_debug("Interrupt IN %d:%d %zu(%zu).\n", 247 247 target.address, target.endpoint, size, max_packet_size); 248 248 249 batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT,249 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_INTERRUPT, 250 250 max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg, 251 251 &hc->manager); … … 285 285 hc_t *hc = fun_to_hc(fun); 286 286 assert(hc); 287 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);287 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 288 288 289 289 usb_log_debug("Bulk OUT %d:%d %zu(%zu).\n", 290 290 target.address, target.endpoint, size, max_packet_size); 291 291 292 batch_t *batch = batch_get(fun, target, USB_TRANSFER_BULK,292 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_BULK, 293 293 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg, 294 294 &hc->manager); … … 329 329 hc_t *hc = fun_to_hc(fun); 330 330 assert(hc); 331 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);331 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 332 332 usb_log_debug("Bulk IN %d:%d %zu(%zu).\n", 333 333 target.address, target.endpoint, size, max_packet_size); 334 334 335 batch_t *batch = batch_get(fun, target, USB_TRANSFER_BULK,335 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_BULK, 336 336 max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg, 337 337 &hc->manager); … … 376 376 hc_t *hc = fun_to_hc(fun); 377 377 assert(hc); 378 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);378 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 379 379 usb_log_debug("Control WRITE (%d) %d:%d %zu(%zu).\n", 380 380 speed, target.address, target.endpoint, size, max_packet_size); … … 383 383 return EINVAL; 384 384 385 batch_t *batch = batch_get(fun, target, USB_TRANSFER_CONTROL,385 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_CONTROL, 386 386 max_packet_size, speed, data, size, setup_data, setup_size, 387 387 NULL, callback, arg, &hc->manager); 388 388 if (!batch) 389 389 return ENOMEM; 390 device_keeper_reset_if_need(&hc->manager, target, setup_data);390 usb_device_keeper_reset_if_need(&hc->manager, target, setup_data); 391 391 batch_control_write(batch); 392 392 const int ret = hc_schedule(hc, batch); … … 427 427 hc_t *hc = fun_to_hc(fun); 428 428 assert(hc); 429 usb_speed_t speed = device_keeper_speed(&hc->manager, target.address);429 usb_speed_t speed = usb_device_keeper_get_speed(&hc->manager, target.address); 430 430 431 431 usb_log_debug("Control READ(%d) %d:%d %zu(%zu).\n", 432 432 speed, target.address, target.endpoint, size, max_packet_size); 433 batch_t *batch = batch_get(fun, target, USB_TRANSFER_CONTROL,433 usb_transfer_batch_t *batch = batch_get(fun, target, USB_TRANSFER_CONTROL, 434 434 max_packet_size, speed, data, size, setup_data, setup_size, callback, 435 435 NULL, arg, &hc->manager);
Note:
See TracChangeset
for help on using the changeset viewer.