Changes in uspace/drv/bus/usb/usbdiag/main.c [b3c39690:8393c73b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbdiag/main.c
rb3c39690 r8393c73b 139 139 } 140 140 141 static const usb_endpoint_description_t intr_in_ep = { 142 .transfer_type = USB_TRANSFER_INTERRUPT, 143 .direction = USB_DIRECTION_IN, 144 .interface_class = USB_CLASS_DIAGNOSTIC, 145 .interface_subclass = 0x00, 146 .interface_protocol = 0x01, 147 .flags = 0 148 }; 149 static const usb_endpoint_description_t intr_out_ep = { 150 .transfer_type = USB_TRANSFER_INTERRUPT, 151 .direction = USB_DIRECTION_OUT, 152 .interface_class = USB_CLASS_DIAGNOSTIC, 153 .interface_subclass = 0x00, 154 .interface_protocol = 0x01, 155 .flags = 0 156 }; 157 static const usb_endpoint_description_t bulk_in_ep = { 158 .transfer_type = USB_TRANSFER_BULK, 159 .direction = USB_DIRECTION_IN, 160 .interface_class = USB_CLASS_DIAGNOSTIC, 161 .interface_subclass = 0x00, 162 .interface_protocol = 0x01, 163 .flags = 0 164 }; 165 static const usb_endpoint_description_t bulk_out_ep = { 166 .transfer_type = USB_TRANSFER_BULK, 167 .direction = USB_DIRECTION_OUT, 168 .interface_class = USB_CLASS_DIAGNOSTIC, 169 .interface_subclass = 0x00, 170 .interface_protocol = 0x01, 171 .flags = 0 172 }; 173 static const usb_endpoint_description_t isoch_in_ep = { 174 .transfer_type = USB_TRANSFER_ISOCHRONOUS, 175 .direction = USB_DIRECTION_IN, 176 .interface_class = USB_CLASS_DIAGNOSTIC, 177 .interface_subclass = 0x00, 178 .interface_protocol = 0x01, 179 .flags = 0 180 }; 181 static const usb_endpoint_description_t isoch_out_ep = { 141 static const usb_endpoint_description_t burst_intr_in_ep = { 142 .transfer_type = USB_TRANSFER_INTERRUPT, 143 .direction = USB_DIRECTION_IN, 144 .interface_class = USB_CLASS_DIAGNOSTIC, 145 .interface_subclass = 0x00, 146 .interface_protocol = 0x01, 147 .flags = 0 148 }; 149 static const usb_endpoint_description_t burst_intr_out_ep = { 150 .transfer_type = USB_TRANSFER_INTERRUPT, 151 .direction = USB_DIRECTION_OUT, 152 .interface_class = USB_CLASS_DIAGNOSTIC, 153 .interface_subclass = 0x00, 154 .interface_protocol = 0x01, 155 .flags = 0 156 }; 157 static const usb_endpoint_description_t burst_bulk_in_ep = { 158 .transfer_type = USB_TRANSFER_BULK, 159 .direction = USB_DIRECTION_IN, 160 .interface_class = USB_CLASS_DIAGNOSTIC, 161 .interface_subclass = 0x00, 162 .interface_protocol = 0x01, 163 .flags = 0 164 }; 165 static const usb_endpoint_description_t burst_bulk_out_ep = { 166 .transfer_type = USB_TRANSFER_BULK, 167 .direction = USB_DIRECTION_OUT, 168 .interface_class = USB_CLASS_DIAGNOSTIC, 169 .interface_subclass = 0x00, 170 .interface_protocol = 0x01, 171 .flags = 0 172 }; 173 static const usb_endpoint_description_t burst_isoch_in_ep = { 174 .transfer_type = USB_TRANSFER_ISOCHRONOUS, 175 .direction = USB_DIRECTION_IN, 176 .interface_class = USB_CLASS_DIAGNOSTIC, 177 .interface_subclass = 0x00, 178 .interface_protocol = 0x01, 179 .flags = 0 180 }; 181 static const usb_endpoint_description_t burst_isoch_out_ep = { 182 .transfer_type = USB_TRANSFER_ISOCHRONOUS, 183 .direction = USB_DIRECTION_OUT, 184 .interface_class = USB_CLASS_DIAGNOSTIC, 185 .interface_subclass = 0x00, 186 .interface_protocol = 0x01, 187 .flags = 0 188 }; 189 static const usb_endpoint_description_t data_intr_in_ep = { 190 .transfer_type = USB_TRANSFER_INTERRUPT, 191 .direction = USB_DIRECTION_IN, 192 .interface_class = USB_CLASS_DIAGNOSTIC, 193 .interface_subclass = 0x00, 194 .interface_protocol = 0x01, 195 .flags = 0 196 }; 197 static const usb_endpoint_description_t data_intr_out_ep = { 198 .transfer_type = USB_TRANSFER_INTERRUPT, 199 .direction = USB_DIRECTION_OUT, 200 .interface_class = USB_CLASS_DIAGNOSTIC, 201 .interface_subclass = 0x00, 202 .interface_protocol = 0x01, 203 .flags = 0 204 }; 205 static const usb_endpoint_description_t data_bulk_in_ep = { 206 .transfer_type = USB_TRANSFER_BULK, 207 .direction = USB_DIRECTION_IN, 208 .interface_class = USB_CLASS_DIAGNOSTIC, 209 .interface_subclass = 0x00, 210 .interface_protocol = 0x01, 211 .flags = 0 212 }; 213 static const usb_endpoint_description_t data_bulk_out_ep = { 214 .transfer_type = USB_TRANSFER_BULK, 215 .direction = USB_DIRECTION_OUT, 216 .interface_class = USB_CLASS_DIAGNOSTIC, 217 .interface_subclass = 0x00, 218 .interface_protocol = 0x01, 219 .flags = 0 220 }; 221 static const usb_endpoint_description_t data_isoch_in_ep = { 222 .transfer_type = USB_TRANSFER_ISOCHRONOUS, 223 .direction = USB_DIRECTION_IN, 224 .interface_class = USB_CLASS_DIAGNOSTIC, 225 .interface_subclass = 0x00, 226 .interface_protocol = 0x01, 227 .flags = 0 228 }; 229 static const usb_endpoint_description_t data_isoch_out_ep = { 182 230 .transfer_type = USB_TRANSFER_ISOCHRONOUS, 183 231 .direction = USB_DIRECTION_OUT, … … 189 237 190 238 static const usb_endpoint_description_t *diag_endpoints[] = { 191 [USBDIAG_EP_INTR_IN] = &intr_in_ep, 192 [USBDIAG_EP_INTR_OUT] = &intr_out_ep, 193 [USBDIAG_EP_BULK_IN] = &bulk_in_ep, 194 [USBDIAG_EP_BULK_OUT] = &bulk_out_ep, 195 [USBDIAG_EP_ISOCH_IN] = &isoch_in_ep, 196 [USBDIAG_EP_ISOCH_OUT] = &isoch_out_ep, 239 [USBDIAG_EP_BURST_INTR_IN] = &burst_intr_in_ep, 240 [USBDIAG_EP_BURST_INTR_OUT] = &burst_intr_out_ep, 241 [USBDIAG_EP_BURST_BULK_IN] = &burst_bulk_in_ep, 242 [USBDIAG_EP_BURST_BULK_OUT] = &burst_bulk_out_ep, 243 [USBDIAG_EP_BURST_ISOCH_IN] = &burst_isoch_in_ep, 244 [USBDIAG_EP_BURST_ISOCH_OUT] = &burst_isoch_out_ep, 245 [USBDIAG_EP_DATA_INTR_IN] = &data_intr_in_ep, 246 [USBDIAG_EP_DATA_INTR_OUT] = &data_intr_out_ep, 247 [USBDIAG_EP_DATA_BULK_IN] = &data_bulk_in_ep, 248 [USBDIAG_EP_DATA_BULK_OUT] = &data_bulk_out_ep, 249 [USBDIAG_EP_DATA_ISOCH_IN] = &data_isoch_in_ep, 250 [USBDIAG_EP_DATA_ISOCH_OUT] = &data_isoch_out_ep, 197 251 NULL 198 252 };
Note:
See TracChangeset
for help on using the changeset viewer.