Changeset c362127 in mainline for uspace/drv/bus/usb/xhci/commands.c


Ignore:
Timestamp:
2017-07-13T13:20:01Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ac5eb1
Parents:
f711f06
Message:

Updated .bzrignore to include the HelenOS executable of the xhci driver.

File:
1 edited

Legend:

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

    rf711f06 rc362127  
    9292
    9393        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.
    9694
    9795        xhci_trb_t *command = (xhci_trb_t *) XHCI_QWORD_EXTRACT(trb->parameter, 63, 4);
     96
    9897        switch(TRB_TYPE(*command)) {
    99                 default:
    100                         // TODO:
    101                         break;
     98        case XHCI_TRB_TYPE_NO_OP_CMD:
     99                assert(code == XHCI_TRBC_TRB_ERROR);
     100                break;
     101        case XHCI_TRB_TYPE_ENABLE_SLOT_CMD:
     102        {
     103                uint32_t slot_id = XHCI_DWORD_EXTRACT(trb->control, 31, 24);
     104                (void) slot_id;
     105                // TODO: Call a device addition callback once it's implemented.
     106                //       Also check for a suitable type of the slot id.
     107                break;
     108        }
     109        default:
     110                usb_log_warning("HC(%p) Command of an unsupported type has been completed.", hc);
     111                break;
    102112        }
    103113
Note: See TracChangeset for help on using the changeset viewer.