Changeset 0c05496 in mainline
- Timestamp:
- 2010-12-12T13:46:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f3158c, a822cd8, b666608
- Parents:
- e7b9541 (diff), 7ed5b576 (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
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/dump.c
re7b9541 r0c05496 69 69 } 70 70 71 void dump_match_ids(match_id_list_t *matches) 72 { 73 printf("Match ids:\n"); 74 link_t *link; 75 for (link = matches->ids.next; 76 link != &matches->ids; 77 link = link->next) { 78 match_id_t *match = list_get_instance(link, match_id_t, link); 79 80 printf(INDENT "%d %s\n", match->score, match->id); 81 } 82 } 83 71 84 void dump_standard_device_descriptor(usb_standard_device_descriptor_t *d) 72 85 { -
uspace/app/usbinfo/main.c
re7b9541 r0c05496 112 112 113 113 /* 114 * Dump information about possible match ids. 115 */ 116 match_id_list_t match_id_list; 117 init_match_ids(&match_id_list); 118 rc = usb_drv_create_device_match_ids(hc_phone, &match_id_list, address); 119 if (rc != EOK) { 120 fprintf(stderr, 121 NAME ": failed to fetch match ids of the device: %s.\n", 122 str_error(rc)); 123 return rc; 124 } 125 dump_match_ids(&match_id_list); 126 127 /* 114 128 * Get device descriptor and dump it. 115 129 */ -
uspace/app/usbinfo/usbinfo.h
re7b9541 r0c05496 39 39 #include <usb/descriptor.h> 40 40 #include <usb/debug.h> 41 #include <ipc/devman.h> 41 42 42 43 … … 44 45 45 46 void dump_buffer(const char *, const uint8_t *, size_t); 47 void dump_match_ids(match_id_list_t *matches); 46 48 void dump_standard_device_descriptor(usb_standard_device_descriptor_t *); 47 49 void dump_standard_configuration_descriptor(int, -
uspace/lib/usb/Makefile
re7b9541 r0c05496 34 34 SOURCES = \ 35 35 src/addrkeep.c \ 36 src/class.c \ 36 37 src/debug.c \ 37 38 src/drvpsync.c \ … … 40 41 src/hidparser.c \ 41 42 src/localdrv.c \ 43 src/recognise.c \ 42 44 src/remotedrv.c \ 43 45 src/usb.c \ -
uspace/lib/usb/include/usb/classes/classes.h
re7b9541 r0c05496 60 60 } usb_class_t; 61 61 62 const char *usb_str_class(usb_class_t); 62 63 63 64 #endif -
uspace/lib/usb/include/usb/usbdrv.h
re7b9541 r0c05496 94 94 int usb_drv_async_wait_for(usb_handle_t); 95 95 96 int usb_drv_create_device_match_ids(int, match_id_list_t *, usb_address_t); 97 int usb_drv_register_child_in_devman(int, device_t *, usb_address_t, 98 devman_handle_t *); 99 96 100 97 101 #endif
Note:
See TracChangeset
for help on using the changeset viewer.