Changeset 3819ce5 in mainline for uspace/app
- Timestamp:
- 2011-12-25T10:05:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ecf823a
- Parents:
- 1440eae (diff), 7e1b130 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app
- Files:
-
- 5 edited
-
mkbd/main.c (modified) (1 diff)
-
usbinfo/dev.c (modified) (2 diffs)
-
usbinfo/info.c (modified) (2 diffs)
-
usbinfo/main.c (modified) (1 diff)
-
usbinfo/usbinfo.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
r1440eae r3819ce5 48 48 #include <usb/dev/pipes.h> 49 49 #include <async.h> 50 #include <usb/dev.h> 50 51 #include <usb/hid/usages/core.h> 51 52 #include <usb/hid/hidparser.h> -
uspace/app/usbinfo/dev.c
r1440eae r3819ce5 34 34 * Representation of queried device. 35 35 */ 36 #include <usb/dev/pipes.h> 36 #include <usb/dev.h> 37 #include <usb/hc.h> 37 38 #include <errno.h> 38 39 #include <str_error.h> … … 52 53 bool transfer_started = false; 53 54 54 rc = usb_device_connection_initialize(&dev->wire, hc_handle, dev_addr); 55 usb_hc_connection_initialize(&dev->hc_conn, hc_handle); 56 57 rc = usb_device_connection_initialize( 58 &dev->wire, &dev->hc_conn, dev_addr); 55 59 if (rc != EOK) { 56 60 fprintf(stderr, -
uspace/app/usbinfo/info.c
r1440eae r3819ce5 287 287 void dump_strings(usbinfo_device_t *dev) 288 288 { 289 /* Find used indexes. Devices with more than 64 strings are very rare.*/ 290 uint64_t str_mask = 0; 291 find_string_indexes_callback((uint8_t *)&dev->device_descriptor, 0, 292 &str_mask); 293 usb_dp_walk_simple(dev->full_configuration_descriptor, 294 dev->full_configuration_descriptor_size, 295 usb_dp_standard_descriptor_nesting, 296 find_string_indexes_callback, 297 &str_mask); 298 299 if (str_mask == 0) { 300 printf("Device does not support string descriptors.\n"); 301 return; 302 } 303 289 304 /* Get supported languages. */ 290 305 l18_win_locales_t *langs; … … 305 320 } 306 321 printf(".\n"); 307 308 /* Find used indexes. Device with more than 64 strings are very rare.309 */310 uint64_t str_mask = 0;311 find_string_indexes_callback((uint8_t *)&dev->device_descriptor, 0,312 &str_mask);313 usb_dp_walk_simple(dev->full_configuration_descriptor,314 dev->full_configuration_descriptor_size,315 usb_dp_standard_descriptor_nesting,316 find_string_indexes_callback,317 &str_mask);318 322 319 323 /* Get all strings and dump them. */ -
uspace/app/usbinfo/main.c
r1440eae r3819ce5 44 44 #include <loc.h> 45 45 #include <usb/hc.h> 46 #include <usb/dev.h> 46 47 #include <usb/dev/pipes.h> 47 48 #include "usbinfo.h" -
uspace/app/usbinfo/usbinfo.h
r1440eae r3819ce5 44 44 45 45 typedef struct { 46 usb_hc_connection_t hc_conn; 47 usb_device_connection_t wire; 46 48 usb_pipe_t ctrl_pipe; 47 usb_device_connection_t wire;48 49 usb_standard_device_descriptor_t device_descriptor; 49 50 uint8_t *full_configuration_descriptor;
Note:
See TracChangeset
for help on using the changeset viewer.
