Changeset 95120c3 in mainline for uspace/lib/drv/include/usb_iface.h


Ignore:
Timestamp:
2011-02-20T17:00:54Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27a0012
Parents:
b68b279
Message:

Add get_interface to USB interface

The get_interface shall be used by MID interface drivers to get
interface number they ought to drive.

File:
1 edited

Legend:

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

    rb68b279 r95120c3  
    5252        IPC_M_USB_GET_ADDRESS,
    5353
     54        /** Tell interface number given device can use.
     55         * Parameters
     56         * - devman handle id of the device
     57         * Answer:
     58         * - ENOTSUP - operation not supported (can also mean any interface)
     59         * - EOK - operation okay, first parameter contains interface number
     60         */
     61        IPC_M_USB_GET_INTERFACE,
     62
    5463        /** Tell devman handle of device host controller.
    5564         * Parameters:
     
    6776typedef struct {
    6877        int (*get_address)(device_t *, devman_handle_t, usb_address_t *);
     78        int (*get_interface)(device_t *, devman_handle_t, int *);
    6979        int (*get_hc_handle)(device_t *, devman_handle_t *);
    7080} usb_iface_t;
Note: See TracChangeset for help on using the changeset viewer.