Changeset fd07e526 in mainline for uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c
- Timestamp:
- 2011-09-16T14:50:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 432a269, d1e18573
- Parents:
- 47fecbb (diff), 82a31261 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c
r47fecbb rfd07e526 61 61 */ 62 62 void td_init(td_t *instance, int err_count, size_t size, bool toggle, bool iso, 63 bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer,64 td_t *next)63 bool low_speed, usb_target_t target, usb_packet_id pid, const void *buffer, 64 const td_t *next) 65 65 { 66 66 assert(instance); … … 113 113 * @return Error code. 114 114 */ 115 int td_status( td_t *instance)115 int td_status(const td_t *instance) 116 116 { 117 117 assert(instance); … … 119 119 /* This is hc internal error it should never be reported. */ 120 120 if ((instance->status & TD_STATUS_ERROR_BIT_STUFF) != 0) 121 return E AGAIN;121 return EIO; 122 122 123 123 /* CRC or timeout error, like device not present or bad data, … … 150 150 * @param[in] instance TD structure to use. 151 151 */ 152 void td_print_status( td_t *instance)152 void td_print_status(const td_t *instance) 153 153 { 154 154 assert(instance);
Note:
See TracChangeset
for help on using the changeset viewer.