Changeset 68b5ed6e in mainline for uspace/drv/ohci/iface.c
- Timestamp:
- 2011-03-21T14:27:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e34e77a
- Parents:
- 3954a63b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/iface.c
r3954a63b r68b5ed6e 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", … … 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); … … 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", … … 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); … … 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); … … 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",
Note:
See TracChangeset
for help on using the changeset viewer.