Changeset 2e7692f in mainline
- Timestamp:
- 2017-07-23T19:31:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eff60ca
- Parents:
- c46c356
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
rc46c356 r2e7692f 231 231 trb.control = host2xhci(32, XHCI_TRB_TYPE_ENABLE_SLOT_CMD << 10); 232 232 trb.control |= host2xhci(32, XHCI_REG_RD(hc->xecp, XHCI_EC_SP_SLOT_TYPE) << 16); 233 trb.control |= host2xhci(32, hc->command_ring.pcs);234 233 235 234 cmd = add_cmd(hc, cmd); … … 247 246 248 247 trb.control = host2xhci(32, XHCI_TRB_TYPE_DISABLE_SLOT_CMD << 10); 249 trb.control |= host2xhci(32, hc->command_ring.pcs);250 248 trb.control |= host2xhci(32, cmd->slot_id << 24); 251 249 … … 281 279 */ 282 280 trb.control = host2xhci(32, XHCI_TRB_TYPE_ADDRESS_DEVICE_CMD << 10); 283 trb.control |= host2xhci(32, hc->command_ring.pcs);284 281 trb.control |= host2xhci(32, cmd->slot_id << 24); 285 282 … … 302 299 303 300 trb.control = host2xhci(32, XHCI_TRB_TYPE_CONFIGURE_ENDPOINT_CMD << 10); 304 trb.control |= host2xhci(32, hc->command_ring.pcs);305 301 trb.control |= host2xhci(32, cmd->slot_id << 24); 306 302 … … 329 325 330 326 trb.control = host2xhci(32, XHCI_TRB_TYPE_EVALUATE_CONTEXT_CMD << 10); 331 trb.control |= host2xhci(32, hc->command_ring.pcs);332 327 trb.control |= host2xhci(32, cmd->slot_id << 24); 333 328 … … 350 345 351 346 trb.control = host2xhci(32, XHCI_TRB_TYPE_RESET_ENDPOINT_CMD << 10); 352 trb.control |= host2xhci(32, hc->command_ring.pcs);353 347 trb.control |= host2xhci(32, (tcs & 0x1) << 9); 354 348 trb.control |= host2xhci(32, (ep_id & 0x5) << 16); … … 367 361 368 362 trb.control = host2xhci(32, XHCI_TRB_TYPE_STOP_ENDPOINT_CMD << 10); 369 trb.control |= host2xhci(32, hc->command_ring.pcs);370 363 trb.control |= host2xhci(32, (ep_id & 0x5) << 16); 371 364 trb.control |= host2xhci(32, (susp & 0x1) << 23); … … 386 379 387 380 trb.control = host2xhci(32, XHCI_TRB_TYPE_RESET_DEVICE_CMD << 10); 388 trb.control |= host2xhci(32, hc->command_ring.pcs);389 381 trb.control |= host2xhci(32, cmd->slot_id << 24); 390 382
Note:
See TracChangeset
for help on using the changeset viewer.