Changeset eae83aa in mainline for uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
- Timestamp:
- 2011-03-05T00:33:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 474d08e, 5079242
- Parents:
- c5b93dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
rc5b93dc reae83aa 39 39 40 40 void td_init(td_t *instance, int err_count, size_t size, bool toggle, bool iso, 41 bool low_speed, usb_target_t target, intpid, void *buffer, td_t *next)41 bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer, td_t *next) 42 42 { 43 43 assert(instance); 44 44 assert(size < 1024); 45 assert((pid == USB_PID_SETUP) || (pid == USB_PID_IN) || (pid == USB_PID_OUT)); 45 46 46 47 instance->next = 0 … … 53 54 | (iso ? TD_STATUS_ISOCHRONOUS_FLAG : 0) 54 55 | TD_STATUS_ERROR_ACTIVE; 56 57 if (pid == USB_PID_IN && !iso) { 58 instance->status |= TD_STATUS_SPD_FLAG; 59 } 55 60 56 61 instance->device = 0
Note:
See TracChangeset
for help on using the changeset viewer.