Changeset a3dfb2e in mainline for uspace/lib/drv/include/usbhc_iface.h


Ignore:
Timestamp:
2010-11-28T17:30:54Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
710f518
Parents:
6c8ada21
Message:

Add control transfer to USBHC interface

The USBHC interface (of DDF) knows how to handle control transfers
(both read and write).

File:
1 edited

Legend:

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

    r6c8ada21 ra3dfb2e  
    169169typedef struct {
    170170        int (*tell_address)(device_t *, devman_handle_t, usb_address_t *);
     171
    171172        int (*interrupt_out)(device_t *, usb_target_t,
    172173            void *, size_t,
     
    175176            void *, size_t,
    176177            usbhc_iface_transfer_in_callback_t, void *);
     178
     179        int (*control_write_setup)(device_t *, usb_target_t,
     180            void *, size_t,
     181            usbhc_iface_transfer_out_callback_t, void *);
     182        int (*control_write_data)(device_t *, usb_target_t,
     183            void *, size_t,
     184            usbhc_iface_transfer_out_callback_t, void *);
     185        int (*control_write_status)(device_t *, usb_target_t,
     186            usbhc_iface_transfer_in_callback_t, void *);
     187
     188        int (*control_read_setup)(device_t *, usb_target_t,
     189            void *, size_t,
     190            usbhc_iface_transfer_out_callback_t, void *);
     191        int (*control_read_data)(device_t *, usb_target_t,
     192            void *, size_t,
     193            usbhc_iface_transfer_in_callback_t, void *);
     194        int (*control_read_status)(device_t *, usb_target_t,
     195            usbhc_iface_transfer_out_callback_t, void *);
    177196} usbhc_iface_t;
    178197
Note: See TracChangeset for help on using the changeset viewer.