Changeset 48ae3ef in mainline for uspace/drv/bus/usb/vhc
- Timestamp:
- 2011-10-28T21:52:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 57e06ef
- Parents:
- 7265558
- File:
-
- 1 edited
-
uspace/drv/bus/usb/vhc/connhost.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/connhost.c
r7265558 r48ae3ef 140 140 size_t max_packet_size, unsigned int interval) 141 141 { 142 /* TODO: Use usb_endpoint_manager_add_ep */ 143 VHC_DATA(vhc, fun); 144 145 endpoint_t *ep = endpoint_create( 146 address, endpoint, direction, transfer_type, USB_SPEED_FULL, 1, 0); 147 if (ep == NULL) { 148 return ENOMEM; 149 } 150 151 int rc = usb_endpoint_manager_register_ep(&vhc->ep_manager, ep, 1); 152 if (rc != EOK) { 153 endpoint_destroy(ep); 154 return rc; 155 } 156 157 return EOK; 142 VHC_DATA(vhc, fun); 143 144 return usb_endpoint_manager_add_ep(&vhc->ep_manager, 145 address, endpoint, direction, transfer_type, USB_SPEED_FULL, 1, 0, 146 NULL, NULL); 147 158 148 } 159 149 … … 171 161 VHC_DATA(vhc, fun); 172 162 173 int rc = usb_endpoint_manager_ unregister_ep(&vhc->ep_manager,174 address, endpoint, direction );163 int rc = usb_endpoint_manager_remove_ep(&vhc->ep_manager, 164 address, endpoint, direction, NULL, NULL); 175 165 176 166 return rc; … … 413 403 VHC_DATA(vhc, fun); 414 404 415 endpoint_t *ep = usb_endpoint_manager_ get_ep(&vhc->ep_manager,405 endpoint_t *ep = usb_endpoint_manager_find_ep(&vhc->ep_manager, 416 406 target.address, target.endpoint, USB_DIRECTION_IN); 417 407 if (ep == NULL) { … … 455 445 VHC_DATA(vhc, fun); 456 446 457 endpoint_t *ep = usb_endpoint_manager_ get_ep(&vhc->ep_manager,447 endpoint_t *ep = usb_endpoint_manager_find_ep(&vhc->ep_manager, 458 448 target.address, target.endpoint, USB_DIRECTION_OUT); 459 449 if (ep == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
