Changes in uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h [8064c2f6:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h
r8064c2f6 r9d58539 35 35 #define DRV_UHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H 36 36 37 #include < assert.h>37 #include <mem.h> 38 38 #include <usb/usb.h> 39 #include <stdbool.h>40 #include <sys/types.h>41 39 42 40 #include "link_pointer.h" … … 102 100 103 101 void td_print_status(const td_t *instance); 104 102 /*----------------------------------------------------------------------------*/ 105 103 /** Helper function for parsing actual size out of TD. 106 104 * … … 115 113 return ((s >> TD_STATUS_ACTLEN_POS) + 1) & TD_STATUS_ACTLEN_MASK; 116 114 } 117 115 /*----------------------------------------------------------------------------*/ 118 116 /** Check whether less than max data were received on SPD marked transfer. 119 117 * … … 131 129 (instance->status | TD_STATUS_SPD_FLAG) && act_size < max_size; 132 130 } 133 131 /*----------------------------------------------------------------------------*/ 134 132 /** Helper function for parsing value of toggle bit. 135 133 * … … 142 140 return (instance->device & TD_DEVICE_DATA_TOGGLE_ONE_FLAG) ? 1 : 0; 143 141 } 144 142 /*----------------------------------------------------------------------------*/ 145 143 /** Helper function for parsing value of active bit 146 144 * … … 153 151 return (instance->status & TD_STATUS_ERROR_ACTIVE) != 0; 154 152 } 155 153 /*----------------------------------------------------------------------------*/ 156 154 /** Helper function for setting IOC bit. 157 155 * … … 163 161 instance->status |= TD_STATUS_IOC_FLAG; 164 162 } 165 163 /*----------------------------------------------------------------------------*/ 166 164 #endif 167 165 /**
Note:
See TracChangeset
for help on using the changeset viewer.