Ignore:
File:
1 edited

Legend:

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

    r7c10198 r3e6a98c5  
    4444#include <stdbool.h>
    4545
     46int usbhc_request_address(async_exch_t *, usb_address_t *, bool, usb_speed_t);
     47int usbhc_bind_address(async_exch_t *, usb_address_t, devman_handle_t);
     48int usbhc_get_handle(async_exch_t *, usb_address_t, devman_handle_t *);
     49int usbhc_release_address(async_exch_t *, usb_address_t);
     50int usbhc_register_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t,
     51    usb_transfer_type_t, usb_direction_t, size_t, unsigned int);
     52int usbhc_unregister_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t,
     53    usb_direction_t);
    4654int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t,
    4755    uint64_t, void *, size_t, size_t *);
     
    5058
    5159/** Callback for outgoing transfer. */
    52 typedef void (*usbhc_iface_transfer_out_callback_t)(int, void *);
     60typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *, int, void *);
    5361
    5462/** Callback for incoming transfer. */
    55 typedef void (*usbhc_iface_transfer_in_callback_t)(int, size_t, void *);
     63typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *,
     64    int, size_t, void *);
    5665
    5766/** USB host controller communication interface. */
    5867typedef 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
    5980        int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t,
    6081            usbhc_iface_transfer_in_callback_t, void *);
     82
    6183        int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *,
    6284            size_t, usbhc_iface_transfer_out_callback_t, void *);
Note: See TracChangeset for help on using the changeset viewer.