Changeset 9f807c3 in mainline for uspace/drv/bus/usb/ohci/root_hub.c
- Timestamp:
- 2012-02-24T04:41:23Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f7e6f5
- Parents:
- dd93bb2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/root_hub.c
rdd93bb2 r9f807c3 347 347 instance->interrupt_mask_size; 348 348 349 instance->descriptors.configuration.total_length = 349 instance->descriptors.configuration.total_length = uint16_host2usb( 350 350 sizeof(usb_standard_configuration_descriptor_t) + 351 351 sizeof(usb_standard_endpoint_descriptor_t) + 352 352 sizeof(usb_standard_interface_descriptor_t) + 353 instance->hub_descriptor_size ;353 instance->hub_descriptor_size); 354 354 } 355 355 /*----------------------------------------------------------------------------*/ … … 492 492 usb_device_request_setup_packet_t *setup_request = 493 493 (usb_device_request_setup_packet_t *) request->setup_buffer; 494 const int setup_request_value = uint16_usb2host(setup_request->value); 495 switch (setup_request_value) 494 /* "The wValue field specifies the descriptor type in the high byte 495 * and the descriptor index in the low byte (refer to Table 9-5)." */ 496 const int desc_type = uint16_usb2host(setup_request->value) >> 8; 497 switch (desc_type) 496 498 { 497 499 case USB_DESCTYPE_HUB: … … 540 542 setup_request->value, 541 543 setup_request->request_type, setup_request->request, 542 setup_request_value, setup_request->index,544 desc_type, setup_request->index, 543 545 setup_request->length); 544 546 TRANSFER_END(request, EINVAL);
Note:
See TracChangeset
for help on using the changeset viewer.