Changeset 41ebc36 in mainline
- Timestamp:
- 2017-12-18T12:32:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7faf0f0
- Parents:
- fc338e0
- Location:
- uspace
- Files:
-
- 4 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
rfc338e0 r41ebc36 241 241 lib/usbhost \ 242 242 lib/usbdev \ 243 lib/usbdiag \244 243 lib/usbhid \ 245 244 lib/usbvirt \ -
uspace/app/tmon/Makefile
rfc338e0 r41ebc36 30 30 BINARY = tmon 31 31 32 LIBS = drv usbdiag32 LIBS = drv 33 33 34 34 SOURCES = \ -
uspace/app/tmon/list.c
rfc338e0 r41ebc36 38 38 #include <devman.h> 39 39 #include <loc.h> 40 #include <usb /diag/diag.h>40 #include <usbdiag_iface.h> 41 41 #include "commands.h" 42 42 … … 70 70 int rc; 71 71 72 if ((rc = loc_category_get_id(USB _DIAG_CATEGORY, &diag_cat, 0))) {73 printf(NAME ": Error resolving category '%s'", USB _DIAG_CATEGORY);72 if ((rc = loc_category_get_id(USBDIAG_CATEGORY, &diag_cat, 0))) { 73 printf(NAME ": Error resolving category '%s'", USBDIAG_CATEGORY); 74 74 return 1; 75 75 } -
uspace/app/tmon/test.c
rfc338e0 r41ebc36 40 40 #include <errno.h> 41 41 #include <str_error.h> 42 #include <usb/diag/diag.h> 43 #include <usb/diag/iface.h> 42 #include <usbdiag_iface.h> 44 43 #include "commands.h" 45 44 … … 53 52 int rc; 54 53 55 if ((rc = loc_category_get_id(USB _DIAG_CATEGORY, &diag_cat, 0))) {56 printf(NAME ": Error resolving category '%s'", USB _DIAG_CATEGORY);54 if ((rc = loc_category_get_id(USBDIAG_CATEGORY, &diag_cat, 0))) { 55 printf(NAME ": Error resolving category '%s'", USBDIAG_CATEGORY); 57 56 return rc; 58 57 } … … 116 115 117 116 static int bulk_worker(devman_handle_t fun) { 118 async_sess_t *sess = usb _diag_connect(fun);117 async_sess_t *sess = usbdiag_connect(fun); 119 118 async_exch_t *exch = async_exchange_begin(sess); 120 119 121 120 // TODO: do some testing 122 121 int y; 123 int rc = usb _diag_test(exch, 4200, &y);122 int rc = usbdiag_test(exch, 4200, &y); 124 123 125 124 if (rc) { … … 130 129 131 130 async_exchange_end(exch); 132 usb _diag_disconnect(sess);131 usbdiag_disconnect(sess); 133 132 return 0; 134 133 } -
uspace/drv/bus/usb/usbdiag/Makefile
rfc338e0 r41ebc36 29 29 USPACE_PREFIX = ../../../.. 30 30 31 LIBS = usbd iag usbdev usb drv31 LIBS = usbdev usb drv 32 32 33 33 BINARY = usbdiag -
uspace/drv/bus/usb/usbdiag/device.c
rfc338e0 r41ebc36 36 36 #include <errno.h> 37 37 #include <usb/debug.h> 38 #include <usb /diag/iface.h>38 #include <usbdiag_iface.h> 39 39 40 40 #include "device.h" … … 48 48 } 49 49 50 static usb _diag_iface_t diag_interface = {50 static usbdiag_iface_t diag_interface = { 51 51 .test = some_test, 52 52 }; -
uspace/drv/bus/usb/usbdiag/main.c
rfc338e0 r41ebc36 37 37 #include <usb/debug.h> 38 38 #include <usb/dev/driver.h> 39 #include <usb /diag/diag.h>39 #include <usbdiag_iface.h> 40 40 #include <str_error.h> 41 41 … … 61 61 } 62 62 63 if ((rc = ddf_fun_add_to_category(diag_dev->fun, USB _DIAG_CATEGORY))) {63 if ((rc = ddf_fun_add_to_category(diag_dev->fun, USBDIAG_CATEGORY))) { 64 64 usb_log_error("Failed add DDF to category '" 65 USB _DIAG_CATEGORY "': %s.\n", str_error(rc));65 USBDIAG_CATEGORY "': %s.\n", str_error(rc)); 66 66 goto err_bind; 67 67 } -
uspace/lib/drv/Makefile
rfc338e0 r41ebc36 48 48 generic/remote_usb.c \ 49 49 generic/remote_pci.c \ 50 generic/remote_usbdiag.c \ 50 51 generic/remote_usbhc.c \ 51 52 generic/remote_usbhid.c \ -
uspace/lib/drv/generic/dev_iface.c
rfc338e0 r41ebc36 49 49 #include "remote_ieee80211.h" 50 50 #include "remote_usb.h" 51 #include "remote_usbdiag.h" 51 52 #include "remote_usbhc.h" 52 53 #include "remote_usbhid.h" … … 67 68 [PCI_DEV_IFACE] = &remote_pci_iface, 68 69 [USB_DEV_IFACE] = &remote_usb_iface, 70 [USBDIAG_DEV_IFACE] = &remote_usbdiag_iface, 69 71 [USBHC_DEV_IFACE] = &remote_usbhc_iface, 70 72 [USBHID_DEV_IFACE] = &remote_usbhid_iface, … … 87 89 if (iface_method_idx >= rem_iface->method_count) 88 90 return NULL; 89 91 90 92 return rem_iface->methods[iface_method_idx]; 91 93 }
Note:
See TracChangeset
for help on using the changeset viewer.