Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (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 mainline changes

Trivial conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/hub.h

    rba72f2b r6843a9c  
    3535 * For class specific requests, see usb/classes/hub.h.
    3636 */
     37
    3738#ifndef LIBUSBDEV_HUB_H_
    3839#define LIBUSBDEV_HUB_H_
     
    4041#include <ddf/driver.h>
    4142#include <sys/types.h>
     43#include <errno.h>
    4244#include <usb/hc.h>
    4345
    44 int usb_hc_new_device_wrapper(ddf_dev_t *, usb_hc_connection_t *, usb_speed_t,
     46extern int usb_hc_new_device_wrapper(ddf_dev_t *, usb_hc_connection_t *, usb_speed_t,
    4547    int (*)(void *), void *, usb_address_t *, ddf_dev_ops_t *, void *,
    4648    ddf_fun_t **);
     
    5961} usb_hub_attached_device_t;
    6062
    61 usb_address_t usb_hc_request_address(usb_hc_connection_t *, usb_speed_t);
    62 int usb_hc_register_device(usb_hc_connection_t *,
     63extern int usb_hub_register_device(usb_hc_connection_t *,
    6364    const usb_hub_attached_device_t *);
    64 int usb_hc_unregister_device(usb_hc_connection_t *, usb_address_t);
     65
     66static inline int usb_hub_unregister_device(usb_hc_connection_t *conn,
     67    const usb_hub_attached_device_t *attached_device)
     68{
     69        assert(conn);
     70        if (attached_device == NULL)
     71                return EBADMEM;
     72       
     73        return usb_hc_release_address(conn, attached_device->address);
     74}
    6575
    6676#endif
     77
    6778/**
    6879 * @}
Note: See TracChangeset for help on using the changeset viewer.