Changeset 70a422b in mainline for uspace/lib/drv/include/usb_iface.h


Ignore:
Timestamp:
2013-01-27T19:12:05Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2cfe72
Parents:
8582076
Message:

libdrv: Add endpoint management to usb iface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/usb_iface.h

    r8582076 r70a422b  
    6262int usb_device_remove(async_exch_t *, usb_device_handle_t);
    6363
     64int usb_register_endpoint(async_exch_t *, usb_endpoint_t, usb_transfer_type_t,
     65    usb_direction_t, size_t, unsigned);
     66int usb_unregister_endpoint(async_exch_t *, usb_endpoint_t, usb_direction_t);
     67
    6468/** USB device communication interface. */
    6569typedef struct {
     
    7276        int (*device_enumerate)(ddf_fun_t *, usb_device_handle_t *);
    7377        int (*device_remove)(ddf_fun_t *, usb_device_handle_t);
     78        int (*register_endpoint)(ddf_fun_t *, usb_endpoint_t,
     79            usb_transfer_type_t, usb_direction_t, size_t, unsigned);
     80        int (*unregister_endpoint)(ddf_fun_t *, usb_endpoint_t,
     81            usb_direction_t);
    7482} usb_iface_t;
    7583
Note: See TracChangeset for help on using the changeset viewer.