Changeset f9e7fe8 in mainline


Ignore:
Timestamp:
2017-07-12T20:26:44Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce85fc8
Parents:
7ee5408
Message:

Added skeleton for command completion handling.

Location:
uspace/drv/bus/usb/xhci
Files:
2 edited

Legend:

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

    r7ee5408 rf9e7fe8  
    8686}
    8787
     88int xhci_handle_command_completion(xhci_hc_t *hc, xhci_trb_t *trb)
     89{
     90        usb_log_debug2("HC(%p) Command completed.", hc);
     91        xhci_dump_trb(trb);
     92
     93        // TODO: Extract command trb pointer, switch by its type and handle it.
     94
     95        return EOK;
     96}
    8897
    8998
  • uspace/drv/bus/usb/xhci/commands.h

    r7ee5408 rf9e7fe8  
    3838
    3939typedef struct xhci_hc xhci_hc_t;
     40typedef struct xhci_trb xhci_trb_t;
    4041
    4142int xhci_send_no_op_command(xhci_hc_t *);
    4243int xhci_send_enable_slot_command(xhci_hc_t *);
     44
     45int xhci_handle_command_completion(xhci_hc_t *, xhci_trb_t *);
    4346
    4447#endif
Note: See TracChangeset for help on using the changeset viewer.