Changeset 4cf5b8e0 in mainline for uspace/lib/usbhost/src/hcd.c
- Timestamp:
- 2013-09-21T01:10:47Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce33c10
- Parents:
- 9348862
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
r9348862 r4cf5b8e0 95 95 { 96 96 assert(hcd); 97 usb_ endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count, max_speed);97 usb_bus_init(&hcd->bus, bandwidth, bw_count, max_speed); 98 98 99 99 hcd->driver.data = NULL; … … 107 107 assert(hcd); 108 108 usb_address_t address = 0; 109 const int ret = usb_ endpoint_manager_request_address(110 &hcd-> ep_manager, &address, false, speed);109 const int ret = usb_bus_request_address( 110 &hcd->bus, &address, false, speed); 111 111 if (ret != EOK) 112 112 return ret; … … 117 117 { 118 118 assert(hcd); 119 return usb_ endpoint_manager_remove_address(&hcd->ep_manager, address,119 return usb_bus_remove_address(&hcd->bus, address, 120 120 unregister_helper_warn, hcd); 121 121 } … … 125 125 assert(hcd); 126 126 usb_address_t address = 0; 127 return usb_ endpoint_manager_request_address(128 &hcd-> ep_manager, &address, true, speed);127 return usb_bus_request_address( 128 &hcd->bus, &address, true, speed); 129 129 } 130 130 … … 134 134 { 135 135 assert(hcd); 136 return usb_ endpoint_manager_add_ep(&hcd->ep_manager, target.address,136 return usb_bus_add_ep(&hcd->bus, target.address, 137 137 target.endpoint, dir, type, max_packet_size, size, register_helper, 138 138 hcd, tt_address, tt_port); … … 142 142 { 143 143 assert(hcd); 144 return usb_ endpoint_manager_remove_ep(&hcd->ep_manager, target.address,144 return usb_bus_remove_ep(&hcd->bus, target.address, 145 145 target.endpoint, dir, unregister_helper, hcd); 146 146 } … … 161 161 usb_log_debug2("Reseting toggle on %d:%d.\n", 162 162 toggle->target.address, toggle->target.endpoint); 163 usb_ endpoint_manager_reset_toggle(&toggle->hcd->ep_manager,163 usb_bus_reset_toggle(&toggle->hcd->bus, 164 164 toggle->target, toggle->target.endpoint == 0); 165 165 } … … 187 187 assert(hcd); 188 188 189 endpoint_t *ep = usb_ endpoint_manager_find_ep(&hcd->ep_manager,189 endpoint_t *ep = usb_bus_find_ep(&hcd->bus, 190 190 target.address, target.endpoint, direction); 191 191 if (ep == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.