Ignore:
Timestamp:
2010-11-26T12:47:34Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
172c1682
Parents:
0b749a3
Message:

Add method for getting device address to USBHC interface

File:
1 edited

Legend:

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

    r0b749a3 raae339e9  
    9292 */
    9393typedef enum {
     94        /** Tell USB address assigned to device.
     95         * Parameters:
     96         * - devman handle id
     97         * Answer:
     98         * - EINVAL - unknown handle or handle not managed by this driver
     99         * - ENOTSUP - operation not supported by HC (shall not happen)
     100         * - arbitrary error code if returned by remote implementation
     101         * - EOK - handle found, first parameter contains the USB address
     102         */
     103        IPC_M_USBHC_GET_ADDRESS,
     104
    94105        /** Asks for data buffer.
    95106         * See explanation at usb_iface_funcs_t.
     
    157168/** USB devices communication interface. */
    158169typedef struct {
     170        int (*tell_address)(device_t *, devman_handle_t, usb_address_t *);
    159171        int (*interrupt_out)(device_t *, usb_target_t,
    160172            void *, size_t,
Note: See TracChangeset for help on using the changeset viewer.