Changes in uspace/lib/drv/include/usbhc_iface.h [d4da860:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
rd4da860 rb7fd2a0 44 44 #include <stdbool.h> 45 45 46 extern int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t,46 extern errno_t usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t, 47 47 uint64_t, void *, size_t, size_t *); 48 extern int usbhc_write(async_exch_t *, usb_address_t, usb_endpoint_t,48 extern errno_t usbhc_write(async_exch_t *, usb_address_t, usb_endpoint_t, 49 49 uint64_t, const void *, size_t); 50 50 51 51 /** Callback for outgoing transfer. */ 52 typedef void (*usbhc_iface_transfer_out_callback_t)( int, void *);52 typedef void (*usbhc_iface_transfer_out_callback_t)(errno_t, void *); 53 53 54 54 /** Callback for incoming transfer. */ 55 typedef void (*usbhc_iface_transfer_in_callback_t)( int, size_t, void *);55 typedef void (*usbhc_iface_transfer_in_callback_t)(errno_t, size_t, void *); 56 56 57 57 /** USB host controller communication interface. */ 58 58 typedef struct { 59 int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t,59 errno_t (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t, 60 60 usbhc_iface_transfer_in_callback_t, void *); 61 int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *,61 errno_t (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *, 62 62 size_t, usbhc_iface_transfer_out_callback_t, void *); 63 63 } usbhc_iface_t;
Note:
See TracChangeset
for help on using the changeset viewer.