Changeset 45e49e6 in mainline for uspace/lib/usbdev/src/devdrv.c
- Timestamp:
- 2018-01-20T18:53:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26beeda
- Parents:
- 24fcb8b
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 18:52:27)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 18:53:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devdrv.c
r24fcb8b r45e49e6 76 76 /** USB address of this device */ 77 77 usb_address_t address; 78 79 /** Depth in the USB hub hiearchy */ 80 unsigned depth; 78 81 79 82 /** USB speed of this device */ … … 364 367 } 365 368 366 usb_speed_t usb_device_get_speed(usb_device_t *usb_dev) 369 usb_address_t usb_device_get_address(const usb_device_t *usb_dev) 370 { 371 assert(usb_dev); 372 return usb_dev->depth; 373 } 374 375 unsigned usb_device_get_depth(const usb_device_t *usb_dev) 376 { 377 assert(usb_dev); 378 return usb_dev->depth; 379 } 380 381 usb_speed_t usb_device_get_speed(const usb_device_t *usb_dev) 367 382 { 368 383 assert(usb_dev); … … 370 385 } 371 386 372 int usb_device_get_iface_number( usb_device_t *usb_dev)387 int usb_device_get_iface_number(const usb_device_t *usb_dev) 373 388 { 374 389 assert(usb_dev); … … 376 391 } 377 392 378 devman_handle_t usb_device_get_devman_handle( usb_device_t *usb_dev)393 devman_handle_t usb_device_get_devman_handle(const usb_device_t *usb_dev) 379 394 { 380 395 assert(usb_dev); … … 498 513 if (ret == EOK) { 499 514 dev->address = dev_desc.address; 515 dev->depth = dev_desc.depth; 500 516 dev->speed = dev_desc.speed; 501 517 dev->handle = dev_desc.handle;
Note:
See TracChangeset
for help on using the changeset viewer.