Changeset 7c3fb9b in mainline for uspace/drv/bus/usb/ehci/ehci_batch.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_batch.c
rfac0ac7 r7c3fb9b 47 47 #include "ehci_bus.h" 48 48 49 /* The buffer pointer list in the qTD is long enough to support a maximum 49 /* 50 * The buffer pointer list in the qTD is long enough to support a maximum 50 51 * transfer size of 20K bytes. This case occurs when all five buffer pointers 51 52 * are used and the first offset is zero. A qTD handles a 16Kbyte buffer 52 * with any starting buffer alignment. EHCI specs p. 87 (pdf p. 97) */ 53 * with any starting buffer alignment. EHCI specs p. 87 (pdf p. 97) 54 */ 53 55 #define EHCI_TD_MAX_TRANSFER (16 * 1024) 54 56 … … 177 179 return false; 178 180 179 /* Now we may be sure that either the ED is inactive because of errors 180 * or all transfer descriptors completed successfully */ 181 /* 182 * Now we may be sure that either the ED is inactive because of errors 183 * or all transfer descriptors completed successfully 184 */ 181 185 182 186 /* Assume all data got through */ … … 192 196 ehci_batch->base.error = td_error(&ehci_batch->tds[i]); 193 197 if (ehci_batch->base.error == EOK) { 194 /* If the TD got all its data through, it will report 198 /* 199 * If the TD got all its data through, it will report 195 200 * 0 bytes remain, the sole exception is INPUT with 196 201 * data rounding flag (short), i.e. every INPUT.
Note:
See TracChangeset
for help on using the changeset viewer.