Changeset c362127 in mainline
- Timestamp:
 - 2017-07-13T13:20:01Z (8 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 5ac5eb1
 - Parents:
 - f711f06
 - Files:
 - 
      
- 2 edited
 
- 
          
  .bzrignore (modified) (1 diff)
 - 
          
  uspace/drv/bus/usb/xhci/commands.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
.bzrignore
rf711f06 rc362127 185 185 uspace/dist/drv/xtkbd/ 186 186 uspace/dist/drv/atkbd/ 187 uspace/dist/drv/xhci/ 187 188 uspace/dist/srv/apic 188 189 uspace/dist/srv/cdfs  - 
      
uspace/drv/bus/usb/xhci/commands.c
rf711f06 rc362127 92 92 93 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 94 97 95 xhci_trb_t *command = (xhci_trb_t *) XHCI_QWORD_EXTRACT(trb->parameter, 63, 4); 96 98 97 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; 102 112 } 103 113  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  