Changes in uspace/lib/drv/include/usbhc_iface.h [6427cf67:b36e5de2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r6427cf67 rb36e5de2 53 53 * - argument #1 is target address 54 54 * - argument #2 is target endpoint 55 * - argument #3 is buffer size55 * - argument #3 is max packet size of the endpoint 56 56 * - this call is immediately followed by IPC data write (from caller) 57 57 * - the initial call (and the whole transaction) is answer after the … … 66 66 * - argument #1 is target address 67 67 * - argument #2 is target endpoint 68 * - argument #3 is buffer size68 * - argument #3 is max packet size of the endpoint 69 69 * - this call is immediately followed by IPC data read (async version) 70 70 * - the call is not answered until the device returns some data (or until … … 153 153 IPC_M_USBHC_INTERRUPT_IN, 154 154 155 156 /** Start WRITE control transfer.157 * See explanation at usb_iface_funcs_t (OUT transaction).158 */159 IPC_M_USBHC_CONTROL_WRITE_SETUP,160 161 /** Send control-transfer data to device.162 * See explanation at usb_iface_funcs_t (OUT transaction).163 */164 IPC_M_USBHC_CONTROL_WRITE_DATA,165 166 /** Terminate WRITE control transfer.167 * See explanation at usb_iface_funcs_t (NO-DATA transaction).168 */169 IPC_M_USBHC_CONTROL_WRITE_STATUS,170 171 172 173 /** Start READ control transfer.174 * See explanation at usb_iface_funcs_t (OUT transaction).175 */176 IPC_M_USBHC_CONTROL_READ_SETUP,177 178 /** Get control-transfer data from device.179 * See explanation at usb_iface_funcs_t (IN transaction).180 */181 IPC_M_USBHC_CONTROL_READ_DATA,182 183 /** Terminate READ control transfer.184 * See explanation at usb_iface_funcs_t (NO-DATA transaction).185 */186 IPC_M_USBHC_CONTROL_READ_STATUS,187 188 155 /** Issue control WRITE transfer. 189 156 * See explanation at usb_iface_funcs_t (OUT transaction) for … … 194 161 IPC_M_USBHC_CONTROL_WRITE, 195 162 196 /** Issue control WRITEtransfer.163 /** Issue control READ transfer. 197 164 * See explanation at usb_iface_funcs_t (IN transaction) for 198 165 * call parameters. 199 * This call is immediately followed by IPC data read from the caller 200 * (setup packet). 201 * Actual data are retrieved through IPC_M_USBHC_GET_BUFFER. 166 * This call is immediately followed by IPC data write from the caller 167 * (setup packet) and IPC data read (buffer that was read). 202 168 */ 203 169 IPC_M_USBHC_CONTROL_READ, … … 216 182 217 183 /** Out transfer processing function prototype. */ 218 typedef int (*usbhc_iface_transfer_out_t)(device_t *, usb_target_t, 184 typedef int (*usbhc_iface_transfer_out_t)(device_t *, usb_target_t, size_t, 219 185 void *, size_t, 220 186 usbhc_iface_transfer_out_callback_t, void *); 221 187 222 /** Setup transfer processing function prototype. */188 /** Setup transfer processing function prototype. @deprecated */ 223 189 typedef usbhc_iface_transfer_out_t usbhc_iface_transfer_setup_t; 224 190 225 191 /** In transfer processing function prototype. */ 226 typedef int (*usbhc_iface_transfer_in_t)(device_t *, usb_target_t, 192 typedef int (*usbhc_iface_transfer_in_t)(device_t *, usb_target_t, size_t, 227 193 void *, size_t, 228 194 usbhc_iface_transfer_in_callback_t, void *); … … 232 198 int (*tell_address)(device_t *, devman_handle_t, usb_address_t *); 233 199 234 int (*reserve_default_address)(device_t *, bool);200 int (*reserve_default_address)(device_t *, usb_speed_t); 235 201 int (*release_default_address)(device_t *); 236 int (*request_address)(device_t *, bool, usb_address_t *);202 int (*request_address)(device_t *, usb_speed_t, usb_address_t *); 237 203 int (*bind_address)(device_t *, usb_address_t, devman_handle_t); 238 204 int (*release_address)(device_t *, usb_address_t); … … 241 207 usbhc_iface_transfer_in_t interrupt_in; 242 208 243 usbhc_iface_transfer_setup_t control_write_setup;244 usbhc_iface_transfer_out_t control_write_data;245 int (*control_write_status)(device_t *, usb_target_t,246 usbhc_iface_transfer_in_callback_t, void *);247 248 usbhc_iface_transfer_setup_t control_read_setup;249 usbhc_iface_transfer_in_t control_read_data;250 int (*control_read_status)(device_t *, usb_target_t,251 usbhc_iface_transfer_out_callback_t, void *);252 253 209 int (*control_write)(device_t *, usb_target_t, 210 size_t, 254 211 void *, size_t, void *, size_t, 255 212 usbhc_iface_transfer_out_callback_t, void *); 256 213 257 214 int (*control_read)(device_t *, usb_target_t, 215 size_t, 258 216 void *, size_t, void *, size_t, 259 217 usbhc_iface_transfer_in_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.