Changeset e7f21884 in mainline


Ignore:
Timestamp:
2018-01-18T17:11:10Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb28cde
Parents:
05770666
Message:

xhci: fixed field named wrong

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

Legend:

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

    r05770666 re7f21884  
    4343#include "hw_struct/trb.h"
    4444
    45 #define TRB_SET_TCS(trb, tcs)   (trb).control |= host2xhci(32, ((tcs &0x1) << 9))
     45#define TRB_SET_TSP(trb, tsp)   (trb).control |= host2xhci(32, (((tsp) & 0x1) << 9))
    4646#define TRB_SET_TYPE(trb, type) (trb).control |= host2xhci(32, (type) << 10)
    4747#define TRB_SET_DC(trb, dc)     (trb).control |= host2xhci(32, (dc) << 9)
     
    5151#define TRB_SET_SLOT(trb, slot) (trb).control |= host2xhci(32, (slot) << 24)
    5252#define TRB_SET_DEV_SPEED(trb, speed)   (trb).control |= host2xhci(32, (speed & 0xF) << 16)
    53 
    54 /**
    55  * TODO: Not sure about SCT and DCS (see section 6.4.3.9).
    56  */
    5753#define TRB_SET_DEQUEUE_PTR(trb, dptr) (trb).parameter |= host2xhci(64, (dptr))
    5854#define TRB_SET_ICTX(trb, phys) (trb).parameter |= host2xhci(64, (phys) & (~0xF))
     
    512508        assert(cmd);
    513509
    514         /**
    515          * Note: TCS can have values 0 or 1. If it is set to 0, see sectuon 4.5.8 for
    516          *       information about this flag.
    517          */
    518510        xhci_trb_clean(&cmd->_header.trb);
    519511
    520512        TRB_SET_TYPE(cmd->_header.trb, XHCI_TRB_TYPE_RESET_ENDPOINT_CMD);
    521         TRB_SET_TCS(cmd->_header.trb, cmd->tcs);
     513        TRB_SET_TSP(cmd->_header.trb, cmd->tsp);
    522514        TRB_SET_EP(cmd->_header.trb, cmd->endpoint_id);
    523515        TRB_SET_SLOT(cmd->_header.trb, cmd->slot_id);
  • uspace/drv/bus/usb/xhci/commands.h

    r05770666 re7f21884  
    117117        uintptr_t dequeue_ptr;
    118118
    119         uint8_t tcs;
     119        bool tsp;
    120120        uint8_t susp;
    121121        uint8_t device_speed;
Note: See TracChangeset for help on using the changeset viewer.