Changes in / [8971926:3dfdcb7] in mainline
- Location:
- uspace/drv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
r8971926 r3dfdcb7 57 57 .device_version = 0, 58 58 .length = sizeof (usb_standard_device_descriptor_t), 59 /// \TODO this value is guessed 59 60 .max_packet_size = 8, 60 61 .vendor_id = 0x16db, … … 467 468 468 469 usb_hub_bm_request_type_t request_type = request_packet->request_type; 469 if (buffer_size < 4 ) {470 if (buffer_size < 4/*request_packet->length*/) {///\TODO 470 471 usb_log_warning("requested more data than buffer size\n"); 471 472 return EINVAL; … … 677 678 (instance->registers->rh_port_status[port - 1] | (1 << feature)) 678 679 & (~port_clear_feature_valid_mask); 680 /// \TODO any error? 681 679 682 return EOK; 680 683 } … … 704 707 & (~port_clear_feature_valid_mask)) 705 708 | (1 << feature); 709 /// \TODO any error? 706 710 707 711 return EOK; -
uspace/drv/usbhub/main.c
r8971926 r3dfdcb7 87 87 88 88 usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME); 89 89 90 90 return usb_driver_main(&usb_hub_driver); 91 91 } -
uspace/drv/usbhub/usbhub.c
r8971926 r3dfdcb7 249 249 usb_log_debug("setting port count to %d\n", descriptor->ports_count); 250 250 hub_info->port_count = descriptor->ports_count; 251 /// \TODO this is not semantically correct 251 252 bool is_power_switched = 252 253 ((descriptor->hub_characteristics & 1) == 0);
Note:
See TracChangeset
for help on using the changeset viewer.