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