Changes in uspace/lib/usbhost/include/usb/host/hcd.h [8d2dd7f2:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r8d2dd7f2 rb7fd2a0 49 49 typedef struct hcd hcd_t; 50 50 51 typedef int (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *);52 typedef int (*ep_add_hook_t)(hcd_t *, endpoint_t *);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 *); 53 53 typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *); 54 54 typedef void (*interrupt_hook_t)(hcd_t *, uint32_t); 55 typedef int (*status_hook_t)(hcd_t *, uint32_t *);55 typedef errno_t (*status_hook_t)(hcd_t *, uint32_t *); 56 56 57 57 typedef struct { … … 102 102 } 103 103 104 extern usb_address_t hcd_request_address(hcd_t *, usb_speed_t);104 extern errno_t hcd_request_address(hcd_t *, usb_speed_t, usb_address_t *); 105 105 106 extern int hcd_release_address(hcd_t *, usb_address_t);106 extern errno_t hcd_release_address(hcd_t *, usb_address_t); 107 107 108 extern int hcd_reserve_default_address(hcd_t *, usb_speed_t);108 extern errno_t hcd_reserve_default_address(hcd_t *, usb_speed_t); 109 109 110 static inline int hcd_release_default_address(hcd_t *hcd)110 static inline errno_t hcd_release_default_address(hcd_t *hcd) 111 111 { 112 112 return hcd_release_address(hcd, USB_ADDRESS_DEFAULT); 113 113 } 114 114 115 extern int hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t,115 extern errno_t hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t, 116 116 usb_transfer_type_t, size_t, unsigned int, size_t, usb_address_t, 117 117 unsigned int); 118 118 119 extern int hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t);119 extern errno_t hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t); 120 120 121 extern int hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *,121 extern errno_t hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *, 122 122 size_t, uint64_t, usbhc_iface_transfer_in_callback_t, 123 123 usbhc_iface_transfer_out_callback_t, void *, const char *); 124 124 125 extern ssize_t hcd_send_batch_sync(hcd_t *, usb_target_t, usb_direction_t,126 void *, size_t, uint64_t, const char * );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 *); 127 127 128 128 #endif
Note:
See TracChangeset
for help on using the changeset viewer.