Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0c4c6a2 in mainline


Ignore:
Timestamp:
2017-10-04T23:12:33Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
8afb485
Parents:
a0a0d9f4
Message:

Invoking virtual interrupt on the emulated root hub upon status change.

File:
1 edited

Legend:

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

    ra0a0d9f4 r0c4c6a2  
    237237        }
    238238
     239        // Interrupt on the virtual hub status change pipe.
     240        usb_target_t target = {
     241                .address = virthub_base_get_address(&hc->rh.base),
     242                .endpoint = HUB_STATUS_CHANGE_PIPE
     243        };
     244        usb_direction_t dir = USB_DIRECTION_IN;
     245        usb_device_request_setup_packet_t setup;
     246        uint64_t buffer[10];
     247        size_t real_size = 0;
     248        err = virthub_base_request(&hc->rh.base, target, dir, &setup, &buffer,
     249                sizeof(buffer), &real_size);
     250
    239251        return EOK;
    240252}
Note: See TracChangeset for help on using the changeset viewer.