Changeset d71691d in mainline
- Timestamp:
- 2011-03-18T16:45:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 054ed84
- Parents:
- b8e2f93
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/devdrv.h
rb8e2f93 rd71691d 47 47 */ 48 48 usb_endpoint_mapping_t *pipes; 49 /** Current interface. 50 * Usually, drivers operate on single interface only. 51 * This item contains the value of the interface or -1 for any. 52 */ 53 int interface_no; 49 54 /** Generic DDF device backing this one. */ 50 55 ddf_dev_t *ddf_dev; -
uspace/lib/usb/src/devdrv.c
rb8e2f93 rd71691d 109 109 { 110 110 int rc; 111 int my_interface= usb_device_get_assigned_interface(dev->ddf_dev);111 dev->interface_no = usb_device_get_assigned_interface(dev->ddf_dev); 112 112 113 113 size_t pipe_count = count_other_pipes(drv); … … 134 134 135 135 dev->pipes[i].description = drv->endpoints[i]; 136 dev->pipes[i].interface_no = my_interface;136 dev->pipes[i].interface_no = dev->interface_no; 137 137 } 138 138
Note:
See TracChangeset
for help on using the changeset viewer.