Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/hw_struct/transfer_descriptor.c

    r9d2d444 r87644b4  
    7777
    7878        instance->status = 0
    79             | ((err_count & TD_STATUS_ERROR_COUNT_MASK)
    80                 << TD_STATUS_ERROR_COUNT_POS)
     79            | ((err_count & TD_STATUS_ERROR_COUNT_MASK) << TD_STATUS_ERROR_COUNT_POS)
    8180            | (low_speed ? TD_STATUS_LOW_SPEED_FLAG : 0)
    8281            | (iso ? TD_STATUS_ISOCHRONOUS_FLAG : 0)
     
    9089            | (((size - 1) & TD_DEVICE_MAXLEN_MASK) << TD_DEVICE_MAXLEN_POS)
    9190            | (toggle ? TD_DEVICE_DATA_TOGGLE_ONE_FLAG : 0)
    92             | ((target.address & TD_DEVICE_ADDRESS_MASK)
    93                 << TD_DEVICE_ADDRESS_POS)
    94             | ((target.endpoint & TD_DEVICE_ENDPOINT_MASK)
    95                 << TD_DEVICE_ENDPOINT_POS)
     91            | ((target.address & TD_DEVICE_ADDRESS_MASK) << TD_DEVICE_ADDRESS_POS)
     92            | ((target.endpoint & TD_DEVICE_ENDPOINT_MASK) << TD_DEVICE_ENDPOINT_POS)
    9693            | ((pid & TD_DEVICE_PID_MASK) << TD_DEVICE_PID_POS);
    9794
     
    117114        assert(instance);
    118115
    119         /* This is hc internal error it should never be reported. */
     116        /* this is hc internal error it should never be reported */
    120117        if ((instance->status & TD_STATUS_ERROR_BIT_STUFF) != 0)
    121118                return EAGAIN;
     
    126123                return EBADCHECKSUM;
    127124
    128         /* HC does not end transactions on these, it should never be reported */
     125        /* hc does not end transaction on these, it should never be reported */
    129126        if ((instance->status & TD_STATUS_ERROR_NAK) != 0)
    130127                return EAGAIN;
    131128
    132         /* Buffer overrun or underrun */
     129        /* buffer overrun or underrun */
    133130        if ((instance->status & TD_STATUS_ERROR_BUFFER) != 0)
    134131                return ERANGE;
    135132
    136         /* Device babble is something serious */
     133        /* device babble is something serious */
    137134        if ((instance->status & TD_STATUS_ERROR_BABBLE) != 0)
    138135                return EIO;
    139136
    140         /* Stall might represent err count reaching zero or stall response from
    141          * the device. If err count reached zero, one of the above is reported*/
     137        /* stall might represent err count reaching zero or stall response from
     138         * the device, is err count reached zero, one of the above is reported*/
    142139        if ((instance->status & TD_STATUS_ERROR_STALLED) != 0)
    143140                return ESTALL;
Note: See TracChangeset for help on using the changeset viewer.