Changeset 98e15b1 in mainline for uspace/drv


Ignore:
Timestamp:
2011-05-29T21:58:31Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
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.
Message:

merge with usb/development

Location:
uspace/drv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/hc_iface.c

    r6ab7f3e9 r98e15b1  
    4848            methodname, __FILE__, __LINE__)
    4949
    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 is
    56  *      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 
    7850/** Found free USB address.
    7951 *
     
    332304/** Host controller interface implementation for EHCI. */
    333305usbhc_iface_t ehci_hc_iface = {
    334         .reserve_default_address = reserve_default_address,
    335         .release_default_address = release_default_address,
    336306        .request_address = request_address,
    337307        .bind_address = bind_address,
  • uspace/drv/usbhub/usbhub.c

    r6ab7f3e9 r98e15b1  
    515515        fibril_mutex_unlock(&hub->pending_ops_mutex);
    516516
     517        usb_device_destroy(hub->usb_device);
     518
    517519        free(hub->ports);
    518520        free(hub);
  • uspace/drv/usbmouse/init.c

    r6ab7f3e9 r98e15b1  
    3939#include <usb/hid/hid.h>
    4040#include <usb/dev/request.h>
     41#include <usb/hid/request.h>
    4142#include <errno.h>
    4243
     
    126127       
    127128        /* 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);
    132131        if (rc != EOK) {
    133132                goto leave;
  • uspace/drv/usbmouse/mouse.c

    r6ab7f3e9 r98e15b1  
    117117        async_hangup(mouse->console_phone);
    118118        mouse->console_phone = -1;
     119
     120        usb_device_destroy(dev);
    119121}
    120122
Note: See TracChangeset for help on using the changeset viewer.