Changeset 76fbd9a in mainline for uspace/drv/bus/usb/uhci/hw_struct
- Timestamp:
- 2012-02-24T19:07:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a76b01b4
- Parents:
- 5837c7a
- Location:
- uspace/drv/bus/usb/uhci/hw_struct
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hw_struct/queue_head.h
r5837c7a r76fbd9a 47 47 volatile link_pointer_t element; 48 48 } __attribute__((packed)) qh_t; 49 /*----------------------------------------------------------------------------*/ 49 50 50 /** Initialize queue head structure 51 51 * … … 61 61 instance->next = LINK_POINTER_TERM; 62 62 } 63 /*----------------------------------------------------------------------------*/ 63 64 64 /** Set queue head next pointer 65 65 * … … 81 81 } 82 82 } 83 /*----------------------------------------------------------------------------*/ 83 84 84 /** Set queue head element pointer 85 85 * -
uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c
r5837c7a r76fbd9a 107 107 } 108 108 } 109 /*----------------------------------------------------------------------------*/ 109 110 110 /** Convert TD status into standard error code 111 111 * … … 145 145 return EOK; 146 146 } 147 /*----------------------------------------------------------------------------*/ 147 148 148 /** Print values in status field (dw1) in a human readable way. 149 149 * -
uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h
r5837c7a r76fbd9a 100 100 101 101 void td_print_status(const td_t *instance); 102 /*----------------------------------------------------------------------------*/ 102 103 103 /** Helper function for parsing actual size out of TD. 104 104 * … … 113 113 return ((s >> TD_STATUS_ACTLEN_POS) + 1) & TD_STATUS_ACTLEN_MASK; 114 114 } 115 /*----------------------------------------------------------------------------*/ 115 116 116 /** Check whether less than max data were received on SPD marked transfer. 117 117 * … … 129 129 (instance->status | TD_STATUS_SPD_FLAG) && act_size < max_size; 130 130 } 131 /*----------------------------------------------------------------------------*/ 131 132 132 /** Helper function for parsing value of toggle bit. 133 133 * … … 140 140 return (instance->device & TD_DEVICE_DATA_TOGGLE_ONE_FLAG) ? 1 : 0; 141 141 } 142 /*----------------------------------------------------------------------------*/ 142 143 143 /** Helper function for parsing value of active bit 144 144 * … … 151 151 return (instance->status & TD_STATUS_ERROR_ACTIVE) != 0; 152 152 } 153 /*----------------------------------------------------------------------------*/ 153 154 154 /** Helper function for setting IOC bit. 155 155 * … … 161 161 instance->status |= TD_STATUS_IOC_FLAG; 162 162 } 163 /*----------------------------------------------------------------------------*/ 163 164 164 #endif 165 165 /**
Note:
See TracChangeset
for help on using the changeset viewer.