Changeset 30fc56f in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2018-01-11T09:38:40Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92caadd
Parents:
53a9d02
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-11 09:38:32)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-11 09:38:40)
Message:

xhci: stop endpoint on unregister

File:
1 edited

Legend:

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

    r53a9d02 r30fc56f  
    852852
    853853/**
     854 * Instruct xHC to stop running a transfer ring on an endpoint.
     855 *
     856 * @param slot_id Slot ID assigned to the device.
     857 * @param ep_idx Endpoint index (number + direction) in question
     858 */
     859int hc_stop_endpoint(xhci_hc_t *hc, uint32_t slot_id, uint8_t ep_idx)
     860{
     861
     862        return xhci_cmd_sync_inline(hc, STOP_ENDPOINT, .slot_id = slot_id, .endpoint_id = ep_idx);
     863}
     864
     865/**
    854866 * @}
    855867 */
Note: See TracChangeset for help on using the changeset viewer.