Changeset 7c3fb9b in mainline for uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h
- 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/ohci/hw_struct/transfer_descriptor.h
rfac0ac7 r7c3fb9b 44 44 #include "completion_codes.h" 45 45 46 /* OHCI TDs can handle up to 8KB buffers, however, it can use max 2 pages. 46 /* 47 * OHCI TDs can handle up to 8KB buffers, however, it can use max 2 pages. 47 48 * Using 4KB buffers guarantees the page count condition. 48 * (OHCI assumes 4KB pages) */ 49 * (OHCI assumes 4KB pages) 50 */ 49 51 #define OHCI_TD_MAX_TRANSFER (4 * 1024) 50 52 … … 76 78 /** 77 79 * Current buffer pointer. 78 * Phys address of the first byte to be transferred. */ 80 * Phys address of the first byte to be transferred. 81 */ 79 82 volatile uint32_t cbp; 80 83 … … 105 108 const int cc = (OHCI_MEM32_RD(instance->status) >> TD_STATUS_CC_SHIFT) & 106 109 TD_STATUS_CC_MASK; 107 /* This value is changed on transfer completion, 110 /* 111 * This value is changed on transfer completion, 108 112 * either to CC_NOERROR or and error code. 109 * See OHCI spec 4.3.1.3.5 p. 23 (pdf 37) */ 113 * See OHCI spec 4.3.1.3.5 p. 23 (pdf 37) 114 */ 110 115 if (cc != CC_NOACCESS1 && cc != CC_NOACCESS2) { 111 116 return true;
Note:
See TracChangeset
for help on using the changeset viewer.