Changeset 6c8ada21 in mainline
- Timestamp:
- 2010-11-28T16:59:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a3dfb2e
- Parents:
- fe5e00d6
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usbdrv.h
rfe5e00d6 r6c8ada21 48 48 void *, size_t, size_t *, usb_handle_t *); 49 49 50 int usb_drv_async_control_write_setup(int, usb_target_t, 51 void *, size_t, usb_handle_t *); 52 int usb_drv_async_control_write_data(int, usb_target_t, 53 void *, size_t, usb_handle_t *); 54 int usb_drv_async_control_write_status(int, usb_target_t, 55 usb_handle_t *); 56 57 int usb_drv_async_control_read_setup(int, usb_target_t, 58 void *, size_t, usb_handle_t *); 59 int usb_drv_async_control_read_data(int, usb_target_t, 60 void *, size_t, size_t *, usb_handle_t *); 61 int usb_drv_async_control_read_status(int, usb_target_t, 62 usb_handle_t *); 63 50 64 int usb_drv_async_wait_for(usb_handle_t); 51 65 -
uspace/lib/usb/src/usbdrv.c
rfe5e00d6 r6c8ada21 345 345 } 346 346 347 /** Start control write transfer. */ 348 int usb_drv_async_control_write_setup(int phone, usb_target_t target, 349 void *buffer, size_t size, 350 usb_handle_t *handle) 351 { 352 return async_send_buffer(phone, 353 IPC_M_USBHC_CONTROL_WRITE_SETUP, 354 target, 355 buffer, size, 356 handle); 357 } 358 359 /** Send data during control write transfer. */ 360 int usb_drv_async_control_write_data(int phone, usb_target_t target, 361 void *buffer, size_t size, 362 usb_handle_t *handle) 363 { 364 return async_send_buffer(phone, 365 IPC_M_USBHC_CONTROL_WRITE_DATA, 366 target, 367 buffer, size, 368 handle); 369 } 370 371 /** Finalize control write transfer. */ 372 int usb_drv_async_control_write_status(int phone, usb_target_t target, 373 usb_handle_t *handle) 374 { 375 return async_recv_buffer(phone, 376 IPC_M_USBHC_CONTROL_WRITE_STATUS, 377 target, 378 NULL, 0, NULL, 379 handle); 380 } 381 382 /** Start control read transfer. */ 383 int usb_drv_async_control_read_setup(int phone, usb_target_t target, 384 void *buffer, size_t size, 385 usb_handle_t *handle) 386 { 387 return async_send_buffer(phone, 388 IPC_M_USBHC_CONTROL_READ_SETUP, 389 target, 390 buffer, size, 391 handle); 392 } 393 394 /** Read data during control read transfer. */ 395 int usb_drv_async_control_read_data(int phone, usb_target_t target, 396 void *buffer, size_t size, size_t *actual_size, 397 usb_handle_t *handle) 398 { 399 return async_recv_buffer(phone, 400 IPC_M_USBHC_CONTROL_READ_DATA, 401 target, 402 buffer, size, actual_size, 403 handle); 404 } 405 406 /** Finalize control read transfer. */ 407 int usb_drv_async_control_read_status(int phone, usb_target_t target, 408 usb_handle_t *handle) 409 { 410 return async_send_buffer(phone, 411 IPC_M_USBHC_CONTROL_READ_STATUS, 412 target, 413 NULL, 0, 414 handle); 415 } 416 347 417 /** 348 418 * @}
Note:
See TracChangeset
for help on using the changeset viewer.