Changeset d14ca59 in mainline


Ignore:
Timestamp:
2017-10-03T20:50:24Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8199ab
Parents:
d07b052
Message:

Removed GetHubStatus request implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    rd07b052 rd14ca59  
    6262        header->max_current = 0;
    6363
    64         return virthub_base_init(&rh->base, "xhci rh", &ops, rh, NULL,
     64        return virthub_base_init(&rh->base, "xhci-rh", &ops, rh, NULL,
    6565            header, HUB_STATUS_CHANGE_PIPE);
    6666}
     
    298298}
    299299
    300 /** Hub status request handler.
    301  * @param device Virtual hub device
    302  * @param setup_packet USB setup stage data.
    303  * @param[out] data destination data buffer, size must be at least
    304  *             setup_packet->length bytes
    305  * @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 
    317300/** Hub set feature request handler.
    318301 * @param device Virtual hub device
     
    390373 * @param buffer_size Bytes available in buffer
    391374 * @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 bits
    394  * represent port status change. Endian does not matter as UHCI root hubs
    395  * only need 1 byte.
    396375 */
    397376static int req_status_change_handler(usbvirt_device_t *device,
     
    399378    void *buffer, size_t buffer_size, size_t *actual_size)
    400379{
    401         /* TODO: Implement me! */
    402380        usb_log_debug2("Called req_status_change_handler().");
    403381        return ENAK;
     
    446424                CLASS_REQ_IN(USB_REQUEST_RECIPIENT_DEVICE, USB_HUB_REQUEST_GET_STATUS),
    447425                .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,
    449429        },
    450430        {
Note: See TracChangeset for help on using the changeset viewer.