Ignore:
Timestamp:
2016-07-22T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f76d2c2
Parents:
5b18137 (diff), 8351f9a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jan.vesely/helenos/usb

File:
1 edited

Legend:

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

    r5b18137 rb4b534ac  
    4444#include <stdbool.h>
    4545
    46 int usbhc_request_address(async_exch_t *, usb_address_t *, bool, usb_speed_t);
    47 int usbhc_bind_address(async_exch_t *, usb_address_t, devman_handle_t);
    48 int usbhc_get_handle(async_exch_t *, usb_address_t, devman_handle_t *);
    49 int usbhc_release_address(async_exch_t *, usb_address_t);
    50 int usbhc_register_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t,
    51     usb_transfer_type_t, usb_direction_t, size_t, unsigned int);
    52 int usbhc_unregister_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t,
    53     usb_direction_t);
    5446int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t,
    5547    uint64_t, void *, size_t, size_t *);
     
    5850
    5951/** Callback for outgoing transfer. */
    60 typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *, int, void *);
     52typedef void (*usbhc_iface_transfer_out_callback_t)(int, void *);
    6153
    6254/** Callback for incoming transfer. */
    63 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *,
    64     int, size_t, void *);
     55typedef void (*usbhc_iface_transfer_in_callback_t)(int, size_t, void *);
    6556
    6657/** USB host controller communication interface. */
    6758typedef struct {
    68         int (*request_address)(ddf_fun_t *, usb_address_t *, bool, usb_speed_t);
    69         int (*bind_address)(ddf_fun_t *, usb_address_t, devman_handle_t);
    70         int (*get_handle)(ddf_fun_t *, usb_address_t,
    71             devman_handle_t *);
    72         int (*release_address)(ddf_fun_t *, usb_address_t);
    73 
    74         int (*register_endpoint)(ddf_fun_t *,
    75             usb_address_t, usb_endpoint_t,
    76             usb_transfer_type_t, usb_direction_t, size_t, unsigned int);
    77         int (*unregister_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t,
    78             usb_direction_t);
    79 
    8059        int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t,
    8160            usbhc_iface_transfer_in_callback_t, void *);
    82 
    8361        int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *,
    8462            size_t, usbhc_iface_transfer_out_callback_t, void *);
Note: See TracChangeset for help on using the changeset viewer.