Changeset 64d138b in mainline for uspace/lib/usbdiag/include/usb/diag/iface.h
- Timestamp:
- 2017-12-15T17:21:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 73b0773
- Parents:
- a8723748
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdiag/include/usb/diag/iface.h
ra8723748 r64d138b 31 31 */ 32 32 /** @file 33 * Testing stuff33 * @brief USB diagnostic device communication interface. 34 34 */ 35 #ifndef LIBUSBDIAG_IFACE_H_ 36 #define LIBUSBDIAG_IFACE_H_ 35 37 36 38 #include <async.h> 37 #include < usb/diag/diag.h>39 #include <ddf/driver.h> 38 40 39 int usb_diag_test(int x, int *out) 40 { 41 sysarg_t _out; 42 async_sess_t *session = NULL; 43 async_exch_t *exch = async_exchange_begin(session); 44 const int rc = async_req_1_1(exch, USB_DIAG_IN_TEST, x, &_out); 45 async_exchange_end(exch); 41 async_sess_t *usb_diag_connect(devman_handle_t); 42 void usb_diag_disconnect(async_sess_t*); 43 int usb_diag_test(async_exch_t*, int, int*); 46 44 47 if (out) 48 *out = (int) _out; 45 /** USB diagnostic device communication interface. */ 46 typedef struct { 47 int (*test)(ddf_fun_t*, int, int*); 48 } usb_diag_iface_t; 49 49 50 return rc; 51 } 52 50 #endif 53 51 /** 54 52 * @}
Note:
See TracChangeset
for help on using the changeset viewer.