Changeset f711f06 in mainline


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

Added trb command completion code and command type extraction to the command completion event handler.

File:
1 edited

Legend:

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

    rce85fc8 rf711f06  
    9191        xhci_dump_trb(trb);
    9292
    93         // TODO: Extract command trb pointer, switch by its type and handle it.
     93        int code = XHCI_DWORD_EXTRACT(trb->status, 31, 24);
     94        if (code != XHCI_TRBC_SUCCESS)
     95                return EINVAL; // TODO: Find a better error code/handler.
     96
     97        xhci_trb_t *command = (xhci_trb_t *) XHCI_QWORD_EXTRACT(trb->parameter, 63, 4);
     98        switch(TRB_TYPE(*command)) {
     99                default:
     100                        // TODO:
     101                        break;
     102        }
    94103
    95104        return EOK;
Note: See TracChangeset for help on using the changeset viewer.