Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    rb7fd2a0 r8d2dd7f2  
    4949typedef struct hcd hcd_t;
    5050
    51 typedef errno_t (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *);
    52 typedef errno_t (*ep_add_hook_t)(hcd_t *, endpoint_t *);
     51typedef int (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *);
     52typedef int (*ep_add_hook_t)(hcd_t *, endpoint_t *);
    5353typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *);
    5454typedef void (*interrupt_hook_t)(hcd_t *, uint32_t);
    55 typedef errno_t (*status_hook_t)(hcd_t *, uint32_t *);
     55typedef int (*status_hook_t)(hcd_t *, uint32_t *);
    5656
    5757typedef struct {
     
    102102}
    103103
    104 extern errno_t hcd_request_address(hcd_t *, usb_speed_t, usb_address_t *);
     104extern usb_address_t hcd_request_address(hcd_t *, usb_speed_t);
    105105
    106 extern errno_t hcd_release_address(hcd_t *, usb_address_t);
     106extern int hcd_release_address(hcd_t *, usb_address_t);
    107107
    108 extern errno_t hcd_reserve_default_address(hcd_t *, usb_speed_t);
     108extern int hcd_reserve_default_address(hcd_t *, usb_speed_t);
    109109
    110 static inline errno_t hcd_release_default_address(hcd_t *hcd)
     110static inline int hcd_release_default_address(hcd_t *hcd)
    111111{
    112112        return hcd_release_address(hcd, USB_ADDRESS_DEFAULT);
    113113}
    114114
    115 extern errno_t hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t,
     115extern int hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t,
    116116    usb_transfer_type_t, size_t, unsigned int, size_t, usb_address_t,
    117117    unsigned int);
    118118
    119 extern errno_t hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t);
     119extern int hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t);
    120120
    121 extern errno_t hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *,
     121extern int hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *,
    122122    size_t, uint64_t, usbhc_iface_transfer_in_callback_t,
    123123    usbhc_iface_transfer_out_callback_t, void *, const char *);
    124124
    125 extern errno_t hcd_send_batch_sync(hcd_t *, usb_target_t, usb_direction_t,
    126     void *, size_t, uint64_t, const char *, size_t *);
     125extern ssize_t hcd_send_batch_sync(hcd_t *, usb_target_t, usb_direction_t,
     126    void *, size_t, uint64_t, const char *);
    127127
    128128#endif
Note: See TracChangeset for help on using the changeset viewer.