Changeset cc7575c in mainline
- Timestamp:
- 2014-01-25T17:10:00Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49dc984
- Parents:
- 21f36e04
- Location:
- uspace/drv/bus/usb/ehci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_batch.c
r21f36e04 rcc7575c 284 284 td_init( 285 285 ehci_batch->tds[0], ehci_batch->tds[1], USB_DIRECTION_BOTH, 286 buffer, ehci_batch->usb_batch->setup_size, toggle );286 buffer, ehci_batch->usb_batch->setup_size, toggle, false); 287 287 usb_log_debug("Created CONTROL SETUP TD: %08x:%08x:%08x", 288 288 ehci_batch->tds[0]->status, ehci_batch->tds[0]->next, … … 299 299 300 300 td_init(ehci_batch->tds[td_current], 301 ehci_batch->tds[td_current + 1], 302 data_dir, buffer, transfer_size, toggle);301 ehci_batch->tds[td_current + 1], data_dir, buffer, 302 transfer_size, toggle, false); 303 303 usb_log_debug("Created CONTROL DATA TD: %08x:%08x:%08x", 304 304 ehci_batch->tds[td_current]->status, … … 315 315 assert(td_current == ehci_batch->td_count - 1); 316 316 td_init(ehci_batch->tds[td_current], ehci_batch->tds[td_current + 1], 317 status_dir, NULL, 0, 1 );317 status_dir, NULL, 0, 1, true); 318 318 usb_log_debug("Created CONTROL STATUS TD: %08x:%08x:%08x", 319 319 ehci_batch->tds[td_current]->status, … … 357 357 td_init( 358 358 ehci_batch->tds[td_current], ehci_batch->tds[td_current + 1], 359 dir, buffer, transfer_size, -1 );359 dir, buffer, transfer_size, -1, remain_size == transfer_size); 360 360 361 361 usb_log_debug("Created DATA TD: %08x:%08x:%08x", -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.c
r21f36e04 rcc7575c 81 81 */ 82 82 void td_init(td_t *instance, const td_t *next, 83 usb_direction_t direction, const void *buffer, size_t size, int toggle) 83 usb_direction_t direction, const void *buffer, size_t size, int toggle, 84 bool ioc) 84 85 { 85 86 assert(instance); … … 89 90 EHCI_MEM32_WR(instance->status, 90 91 ((dir[direction] & TD_STATUS_PID_MASK) << TD_STATUS_PID_SHIFT) | 91 ((size & TD_STATUS_TOTAL_MASK) << TD_STATUS_TOTAL_SHIFT)); 92 ((size & TD_STATUS_TOTAL_MASK) << TD_STATUS_TOTAL_SHIFT) | 93 (ioc ? TD_STATUS_IOC_FLAG : 0) ); 92 94 93 95 if (toggle == 0 || toggle == 1) { -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
r21f36e04 rcc7575c 90 90 91 91 void td_init(td_t *td, const td_t *next, usb_direction_t dir, const void * buf, 92 size_t buf_size, int toggle );92 size_t buf_size, int toggle, bool ioc); 93 93 94 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.