Changeset d14ca59 in mainline
- Timestamp:
- 2017-10-03T20:50:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f8199ab
- Parents:
- d07b052
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
rd07b052 rd14ca59 62 62 header->max_current = 0; 63 63 64 return virthub_base_init(&rh->base, "xhci 64 return virthub_base_init(&rh->base, "xhci-rh", &ops, rh, NULL, 65 65 header, HUB_STATUS_CHANGE_PIPE); 66 66 } … … 298 298 } 299 299 300 /** Hub status request handler.301 * @param device Virtual hub device302 * @param setup_packet USB setup stage data.303 * @param[out] data destination data buffer, size must be at least304 * setup_packet->length bytes305 * @param[out] act_size Sized of the valid response part of the buffer.306 * @return Error code.307 */308 static int req_get_status(usbvirt_device_t *device,309 const usb_device_request_setup_packet_t *setup_packet,310 uint8_t *data, size_t *act_size)311 {312 /* TODO: Implement me! */313 usb_log_debug2("Called req_get_status().");314 return EOK;315 }316 317 300 /** Hub set feature request handler. 318 301 * @param device Virtual hub device … … 390 373 * @param buffer_size Bytes available in buffer 391 374 * @param actual_size Size us the used part of the dest buffer. 392 *393 * Produces status mask. Bit 0 indicates hub status change the other bits394 * represent port status change. Endian does not matter as UHCI root hubs395 * only need 1 byte.396 375 */ 397 376 static int req_status_change_handler(usbvirt_device_t *device, … … 399 378 void *buffer, size_t buffer_size, size_t *actual_size) 400 379 { 401 /* TODO: Implement me! */402 380 usb_log_debug2("Called req_status_change_handler()."); 403 381 return ENAK; … … 446 424 CLASS_REQ_IN(USB_REQUEST_RECIPIENT_DEVICE, USB_HUB_REQUEST_GET_STATUS), 447 425 .name = "GetHubStatus", 448 .callback = req_get_status, 426 /* XHCI root hub has no power source, 427 * over-current is reported by port */ 428 .callback = virthub_base_get_null_status, 449 429 }, 450 430 {
Note:
See TracChangeset
for help on using the changeset viewer.