Changeset ad4562c2 in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-02-26T23:48:57Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
882f8b1
Parents:
3a1aa20
Message:

Changed API for getting descriptors.

  • Changed usb_request_get_descriptor() and usb_request_get_descriptor_alloc().
  • Added parameter recipient, specifying if the descriptor is associated with device, interface, endpoint or other.
  • Modified all calls to it accordingly.

TODO: not done in usbhid driver yet, but should not be used now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r3a1aa20 rad4562c2  
    253253        usb_endpoint_pipe_start_session(&result->endpoints.control);
    254254        opResult = usb_request_get_descriptor(&result->endpoints.control,
    255                         USB_REQUEST_TYPE_CLASS,
    256                         USB_DESCTYPE_HUB, 0, 0, serialized_descriptor,
     255                        USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_DEVICE,
     256                        USB_DESCTYPE_HUB,
     257                        0, 0, serialized_descriptor,
    257258                        USB_HUB_MAX_DESCRIPTOR_SIZE, &received_size);
    258259        usb_endpoint_pipe_end_session(&result->endpoints.control);
Note: See TracChangeset for help on using the changeset viewer.