Changes in uspace/lib/drv/include/usbhc_iface.h [6427cf67:9753220] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r6427cf67 r9753220 40 40 #include "driver.h" 41 41 #include <usb/usb.h> 42 #include <bool.h>43 42 44 43 … … 67 66 * - argument #2 is target endpoint 68 67 * - argument #3 is buffer size 69 * - this call is immediately followed by IPC data read (async version)70 68 * - the call is not answered until the device returns some data (or until 71 69 * error occurs) 70 * - if the call is answered with EOK, first argument of the answer is buffer 71 * hash that could be used to retrieve the actual data 72 72 * 73 73 * Some special methods (NO-DATA transactions) do not send any data. These 74 74 * might behave as both OUT or IN transactions because communication parts 75 75 * where actual buffers are exchanged are omitted. 76 ** 76 * 77 * The mentioned data retrieval can be done any time after receiving EOK 78 * answer to IN method. 79 * This retrieval is done using the IPC_M_USBHC_GET_BUFFER where 80 * the first argument is buffer hash from call answer. 81 * This call must be immediately followed by data read-in and after the 82 * data are transferred, the initial call (IPC_M_USBHC_GET_BUFFER) 83 * is answered. Each buffer can be retrieved only once. 84 * 77 85 * For all these methods, wrap functions exists. Important rule: functions 78 86 * for IN transactions have (as parameters) buffers where retrieved data … … 96 104 IPC_M_USBHC_GET_ADDRESS, 97 105 106 /** Asks for data buffer. 107 * See explanation at usb_iface_funcs_t. 108 * This function does not have counter part in functional interface 109 * as it is handled by the remote part itself. 110 */ 111 IPC_M_USBHC_GET_BUFFER, 112 98 113 99 114 /** Reserve usage of default address. … … 208 223 /** Callback for outgoing transfer. */ 209 224 typedef void (*usbhc_iface_transfer_out_callback_t)(device_t *, 210 int, void *);225 usb_transaction_outcome_t, void *); 211 226 212 227 /** Callback for incoming transfer. */ 213 228 typedef void (*usbhc_iface_transfer_in_callback_t)(device_t *, 214 int, size_t, void *);229 usb_transaction_outcome_t, size_t, void *); 215 230 216 231 … … 232 247 int (*tell_address)(device_t *, devman_handle_t, usb_address_t *); 233 248 234 int (*reserve_default_address)(device_t * , bool);249 int (*reserve_default_address)(device_t *); 235 250 int (*release_default_address)(device_t *); 236 int (*request_address)(device_t *, bool,usb_address_t *);251 int (*request_address)(device_t *, usb_address_t *); 237 252 int (*bind_address)(device_t *, usb_address_t, devman_handle_t); 238 253 int (*release_address)(device_t *, usb_address_t);
Note:
See TracChangeset
for help on using the changeset viewer.