Changeset 0a46c41e in mainline
- Timestamp:
- 2011-02-18T21:09:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 745d2ad
- Parents:
- fbf0589
- Location:
- uspace/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
rfbf0589 r0a46c41e 46 46 static void remote_usbhc_interrupt_out(device_t *, void *, ipc_callid_t, ipc_call_t *); 47 47 static void remote_usbhc_interrupt_in(device_t *, void *, ipc_callid_t, ipc_call_t *); 48 static void remote_usbhc_bulk_out(device_t *, void *, ipc_callid_t, ipc_call_t *); 49 static void remote_usbhc_bulk_in(device_t *, void *, ipc_callid_t, ipc_call_t *); 48 50 static void remote_usbhc_control_write(device_t *, void *, ipc_callid_t, ipc_call_t *); 49 51 static void remote_usbhc_control_read(device_t *, void *, ipc_callid_t, ipc_call_t *); … … 69 71 remote_usbhc_interrupt_in, 70 72 73 remote_usbhc_bulk_out, 74 remote_usbhc_bulk_in, 75 71 76 remote_usbhc_control_write, 72 77 remote_usbhc_control_read … … 389 394 return remote_usbhc_in_transfer(device, callid, call, 390 395 usb_iface->interrupt_in); 396 } 397 398 void remote_usbhc_bulk_out(device_t *device, void *iface, 399 ipc_callid_t callid, ipc_call_t *call) 400 { 401 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface; 402 assert(usb_iface != NULL); 403 404 return remote_usbhc_out_transfer(device, callid, call, 405 usb_iface->bulk_out); 406 } 407 408 void remote_usbhc_bulk_in(device_t *device, void *iface, 409 ipc_callid_t callid, ipc_call_t *call) 410 { 411 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface; 412 assert(usb_iface != NULL); 413 414 return remote_usbhc_in_transfer(device, callid, call, 415 usb_iface->bulk_in); 391 416 } 392 417 -
uspace/lib/drv/include/usbhc_iface.h
rfbf0589 r0a46c41e 153 153 IPC_M_USBHC_INTERRUPT_IN, 154 154 155 /** Send bulk data to device. 156 * See explanation at usb_iface_funcs_t (OUT transaction). 157 */ 158 IPC_M_USBHC_BULK_OUT, 159 160 /** Get bulk data from device. 161 * See explanation at usb_iface_funcs_t (IN transaction). 162 */ 163 IPC_M_USBHC_BULK_IN, 164 155 165 /** Issue control WRITE transfer. 156 166 * See explanation at usb_iface_funcs_t (OUT transaction) for … … 207 217 usbhc_iface_transfer_in_t interrupt_in; 208 218 219 usbhc_iface_transfer_out_t bulk_out; 220 usbhc_iface_transfer_in_t bulk_in; 221 209 222 int (*control_write)(device_t *, usb_target_t, 210 223 size_t, -
uspace/lib/usb/src/pipesio.c
rfbf0589 r0a46c41e 71 71 ipc_method = IPC_M_USBHC_INTERRUPT_IN; 72 72 break; 73 case USB_TRANSFER_BULK: 74 ipc_method = IPC_M_USBHC_BULK_IN; 75 break; 73 76 default: 74 77 return ENOTSUP; … … 194 197 case USB_TRANSFER_INTERRUPT: 195 198 ipc_method = IPC_M_USBHC_INTERRUPT_OUT; 199 break; 200 case USB_TRANSFER_BULK: 201 ipc_method = IPC_M_USBHC_BULK_OUT; 196 202 break; 197 203 default:
Note:
See TracChangeset
for help on using the changeset viewer.