Changeset 98e15b1 in mainline for uspace/drv
- Timestamp:
- 2011-05-29T21:58:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95067954, d600874
- Parents:
- 6ab7f3e9 (diff), bd7acda (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/drv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ehci-hcd/hc_iface.c
r6ab7f3e9 r98e15b1 48 48 methodname, __FILE__, __LINE__) 49 49 50 /** Reserve default address.51 *52 * This function may block the caller.53 *54 * @param[in] fun Device function the action was invoked on.55 * @param[in] speed Speed of the device for which the default address is56 * reserved.57 * @return Error code.58 */59 static int reserve_default_address(ddf_fun_t *fun, usb_speed_t speed)60 {61 UNSUPPORTED("reserve_default_address");62 63 return ENOTSUP;64 }65 66 /** Release default address.67 *68 * @param[in] fun Device function the action was invoked on.69 * @return Error code.70 */71 static int release_default_address(ddf_fun_t *fun)72 {73 UNSUPPORTED("release_default_address");74 75 return ENOTSUP;76 }77 78 50 /** Found free USB address. 79 51 * … … 332 304 /** Host controller interface implementation for EHCI. */ 333 305 usbhc_iface_t ehci_hc_iface = { 334 .reserve_default_address = reserve_default_address,335 .release_default_address = release_default_address,336 306 .request_address = request_address, 337 307 .bind_address = bind_address, -
uspace/drv/usbhub/usbhub.c
r6ab7f3e9 r98e15b1 515 515 fibril_mutex_unlock(&hub->pending_ops_mutex); 516 516 517 usb_device_destroy(hub->usb_device); 518 517 519 free(hub->ports); 518 520 free(hub); -
uspace/drv/usbmouse/init.c
r6ab7f3e9 r98e15b1 39 39 #include <usb/hid/hid.h> 40 40 #include <usb/dev/request.h> 41 #include <usb/hid/request.h> 41 42 #include <errno.h> 42 43 … … 126 127 127 128 /* Set the boot protocol. */ 128 rc = usb_control_request_set(&dev->ctrl_pipe, 129 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_INTERFACE, 130 USB_HIDREQ_SET_PROTOCOL, USB_HID_PROTOCOL_BOOT, dev->interface_no, 131 NULL, 0); 129 rc = usbhid_req_set_protocol(&dev->ctrl_pipe, dev->interface_no, 130 USB_HID_PROTOCOL_BOOT); 132 131 if (rc != EOK) { 133 132 goto leave; -
uspace/drv/usbmouse/mouse.c
r6ab7f3e9 r98e15b1 117 117 async_hangup(mouse->console_phone); 118 118 mouse->console_phone = -1; 119 120 usb_device_destroy(dev); 119 121 } 120 122
Note:
See TracChangeset
for help on using the changeset viewer.