Ignore:
Timestamp:
2011-02-23T10:28:21Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb48f61
Parents:
e936e8e (diff), eb1a2f4 (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 mainline changes

File:
1 edited

Legend:

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

    re936e8e r3b5d1535  
    3838#define LIBDRV_USBHC_IFACE_H_
    3939
    40 #include "driver.h"
     40#include "ddf/driver.h"
    4141#include <usb/usb.h>
    4242#include <bool.h>
     
    171171
    172172/** Callback for outgoing transfer. */
    173 typedef void (*usbhc_iface_transfer_out_callback_t)(device_t *,
     173typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *,
    174174    int, void *);
    175175
    176176/** Callback for incoming transfer. */
    177 typedef void (*usbhc_iface_transfer_in_callback_t)(device_t *,
     177typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *,
    178178    int, size_t, void *);
    179179
    180180
    181181/** Out transfer processing function prototype. */
    182 typedef int (*usbhc_iface_transfer_out_t)(device_t *, usb_target_t, size_t,
     182typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t, size_t,
    183183    void *, size_t,
    184184    usbhc_iface_transfer_out_callback_t, void *);
     
    188188
    189189/** In transfer processing function prototype. */
    190 typedef int (*usbhc_iface_transfer_in_t)(device_t *, usb_target_t, size_t,
     190typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t, size_t,
    191191    void *, size_t,
    192192    usbhc_iface_transfer_in_callback_t, void *);
     
    194194/** USB host controller communication interface. */
    195195typedef struct {
    196         int (*reserve_default_address)(device_t *, usb_speed_t);
    197         int (*release_default_address)(device_t *);
    198         int (*request_address)(device_t *, usb_speed_t, usb_address_t *);
    199         int (*bind_address)(device_t *, usb_address_t, devman_handle_t);
    200         int (*release_address)(device_t *, usb_address_t);
     196        int (*reserve_default_address)(ddf_fun_t *, usb_speed_t);
     197        int (*release_default_address)(ddf_fun_t *);
     198        int (*request_address)(ddf_fun_t *, usb_speed_t, usb_address_t *);
     199        int (*bind_address)(ddf_fun_t *, usb_address_t, devman_handle_t);
     200        int (*release_address)(ddf_fun_t *, usb_address_t);
    201201
    202202        usbhc_iface_transfer_out_t interrupt_out;
     
    206206        usbhc_iface_transfer_in_t bulk_in;
    207207
    208         int (*control_write)(device_t *, usb_target_t,
     208        int (*control_write)(ddf_fun_t *, usb_target_t,
    209209            size_t,
    210210            void *, size_t, void *, size_t,
    211211            usbhc_iface_transfer_out_callback_t, void *);
    212212
    213         int (*control_read)(device_t *, usb_target_t,
     213        int (*control_read)(ddf_fun_t *, usb_target_t,
    214214            size_t,
    215215            void *, size_t, void *, size_t,
Note: See TracChangeset for help on using the changeset viewer.