Changes in uspace/drv/bus/usb/usbmast/main.c [9871bca:721d4b6e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
r9871bca r721d4b6e 55 55 #define GET_BULK_OUT(dev) ((dev)->pipes[BULK_OUT_EP].pipe) 56 56 57 static constusb_endpoint_description_t bulk_in_ep = {57 static usb_endpoint_description_t bulk_in_ep = { 58 58 .transfer_type = USB_TRANSFER_BULK, 59 59 .direction = USB_DIRECTION_IN, … … 63 63 .flags = 0 64 64 }; 65 static constusb_endpoint_description_t bulk_out_ep = {65 static usb_endpoint_description_t bulk_out_ep = { 66 66 .transfer_type = USB_TRANSFER_BULK, 67 67 .direction = USB_DIRECTION_OUT, … … 72 72 }; 73 73 74 static constusb_endpoint_description_t *mast_endpoints[] = {74 usb_endpoint_description_t *mast_endpoints[] = { 75 75 &bulk_in_ep, 76 76 &bulk_out_ep, … … 106 106 } 107 107 108 /** Callback when a device is about to be removed.109 *110 * @param dev Representation of USB device.111 * @return Error code.112 */113 static int usbmast_device_remove(usb_device_t *dev)114 {115 //TODO: flush buffers, or whatever.116 return ENOTSUP;117 }118 119 108 /** Callback when new device is attached and recognized as a mass storage. 120 109 * 121 * @param dev Representation of USB device.110 * @param dev Representation of a the USB device. 122 111 * @return Error code. 123 112 */ … … 347 336 348 337 /** USB mass storage driver ops. */ 349 static constusb_driver_ops_t usbmast_driver_ops = {338 static usb_driver_ops_t usbmast_driver_ops = { 350 339 .device_add = usbmast_device_add, 351 .device_rem = usbmast_device_remove,352 340 .device_gone = usbmast_device_gone, 353 341 }; 354 342 355 343 /** USB mass storage driver. */ 356 static constusb_driver_t usbmast_driver = {344 static usb_driver_t usbmast_driver = { 357 345 .name = NAME, 358 346 .ops = &usbmast_driver_ops,
Note:
See TracChangeset
for help on using the changeset viewer.