Changeset 64d138b in mainline for uspace/lib
- 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
- Location:
- uspace/lib
- Files:
-
- 1 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/dev_iface.h
ra8723748 r64d138b 44 44 /** Audio device pcm buffer interface */ 45 45 AUDIO_PCM_BUFFER_IFACE, 46 46 47 47 /** Network interface controller interface */ 48 48 NIC_DEV_IFACE, 49 49 50 50 /** IEEE 802.11 interface controller interface */ 51 51 IEEE80211_DEV_IFACE, 52 52 53 53 /** Interface provided by any PCI device. */ 54 54 PCI_DEV_IFACE, … … 56 56 /** Interface provided by any USB device. */ 57 57 USB_DEV_IFACE, 58 /** Interface provided by USB diagnostic devices. */ 59 USBDIAG_DEV_IFACE, 58 60 /** Interface provided by USB host controller to USB device. */ 59 61 USBHC_DEV_IFACE, -
uspace/lib/usbdiag/Makefile
ra8723748 r64d138b 32 32 33 33 SOURCES = \ 34 src/ test.c34 src/remote_usbdiag.c 35 35 36 36 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/usbdiag/include/usb/diag/diag.h
ra8723748 r64d138b 36 36 #define LIBUSBDIAG_DIAG_H_ 37 37 38 #include <ipc/common.h> 39 40 typedef enum { 41 USB_DIAG_IN_TEST = IPC_FIRST_USER_METHOD, 42 } usb_diag_in_request_t; 43 44 /** Just a dummy symbol to make compiler happy. TODO: remove it */ 45 int usb_diag_test(int, int*); 38 #define USB_DIAG_CATEGORY "usbdiag" 46 39 47 40 #endif -
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.