Changes in uspace/drv/uhci-hcd/hw_struct/transfer_descriptor.c [9d2d444:87644b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hw_struct/transfer_descriptor.c
r9d2d444 r87644b4 77 77 78 78 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) 81 80 | (low_speed ? TD_STATUS_LOW_SPEED_FLAG : 0) 82 81 | (iso ? TD_STATUS_ISOCHRONOUS_FLAG : 0) … … 90 89 | (((size - 1) & TD_DEVICE_MAXLEN_MASK) << TD_DEVICE_MAXLEN_POS) 91 90 | (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) 96 93 | ((pid & TD_DEVICE_PID_MASK) << TD_DEVICE_PID_POS); 97 94 … … 117 114 assert(instance); 118 115 119 /* This is hc internal error it should never be reported.*/116 /* this is hc internal error it should never be reported */ 120 117 if ((instance->status & TD_STATUS_ERROR_BIT_STUFF) != 0) 121 118 return EAGAIN; … … 126 123 return EBADCHECKSUM; 127 124 128 /* HC does not end transactionson these, it should never be reported */125 /* hc does not end transaction on these, it should never be reported */ 129 126 if ((instance->status & TD_STATUS_ERROR_NAK) != 0) 130 127 return EAGAIN; 131 128 132 /* Buffer overrun or underrun */129 /* buffer overrun or underrun */ 133 130 if ((instance->status & TD_STATUS_ERROR_BUFFER) != 0) 134 131 return ERANGE; 135 132 136 /* Device babble is something serious */133 /* device babble is something serious */ 137 134 if ((instance->status & TD_STATUS_ERROR_BABBLE) != 0) 138 135 return EIO; 139 136 140 /* Stall might represent err count reaching zero or stall response from141 * the device . Iferr 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*/ 142 139 if ((instance->status & TD_STATUS_ERROR_STALLED) != 0) 143 140 return ESTALL;
Note:
See TracChangeset
for help on using the changeset viewer.