Changeset bb512b2d in mainline


Ignore:
Timestamp:
2013-01-26T16:12:18Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7c69861
Parents:
9e79a2f
Message:

libusbdev: Add ddf function creation wrapper.

Cleanup request.h header.

Location:
uspace/lib/usbdev
Files:
4 edited

Legend:

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

    r9e79a2f rbb512b2d  
    171171
    172172const char* usb_device_get_name(usb_device_t *);
     173ddf_fun_t *usb_device_ddf_fun_create(usb_device_t *, fun_type_t, const char *);
    173174
    174175async_exch_t * usb_device_bus_exchange_begin(usb_device_t *);
  • uspace/lib/usbdev/include/usb/dev/recognise.h

    r9e79a2f rbb512b2d  
    3737#define LIBUSBDEV_RECOGNISE_H_
    3838
    39 #include <sys/types.h>
    4039#include <usb/usb.h>
    4140#include <usb/dev/pipes.h>
    42 #include <ipc/devman.h>
    4341
    4442extern int usb_device_create_match_ids_from_device_descriptor(
     
    5048
    5149extern int usb_device_create_match_ids(usb_pipe_t *, match_id_list_t *);
    52 
    53 extern int usb_device_register_child_in_devman(usb_pipe_t *ctrl_pipe,
    54     ddf_dev_t *, ddf_fun_t **);
    55 
    5650#endif
    5751
  • uspace/lib/usbdev/include/usb/dev/request.h

    r9e79a2f rbb512b2d  
    7575int usb_request_get_configuration(usb_pipe_t *, uint8_t *);
    7676int usb_request_set_configuration(usb_pipe_t *, uint8_t);
     77
    7778int usb_request_get_interface(usb_pipe_t *, uint8_t, uint8_t *);
    7879int usb_request_set_interface(usb_pipe_t *, uint8_t, uint8_t);
  • uspace/lib/usbdev/src/devdrv.c

    r9e79a2f rbb512b2d  
    543543}
    544544
     545ddf_fun_t *usb_device_ddf_fun_create(usb_device_t *usb_dev, fun_type_t ftype,
     546    const char* name)
     547{
     548        assert(usb_dev);
     549        if (usb_dev->ddf_dev)
     550                return ddf_fun_create(usb_dev->ddf_dev, ftype, name);
     551        return NULL;
     552}
     553
    545554async_exch_t * usb_device_bus_exchange_begin(usb_device_t *usb_dev)
    546555{
Note: See TracChangeset for help on using the changeset viewer.