Changeset 9871bca in mainline
- Timestamp:
- 2011-10-30T13:12:19Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fbe148ee
- Parents:
- aa05b29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
raa05b29 r9871bca 55 55 #define GET_BULK_OUT(dev) ((dev)->pipes[BULK_OUT_EP].pipe) 56 56 57 static usb_endpoint_description_t bulk_in_ep = {57 static const 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 usb_endpoint_description_t bulk_out_ep = {65 static const usb_endpoint_description_t bulk_out_ep = { 66 66 .transfer_type = USB_TRANSFER_BULK, 67 67 .direction = USB_DIRECTION_OUT, … … 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 108 119 /** Callback when new device is attached and recognized as a mass storage. 109 120 * 110 * @param dev Representation of a theUSB device.121 * @param dev Representation of USB device. 111 122 * @return Error code. 112 123 */ … … 336 347 337 348 /** USB mass storage driver ops. */ 338 static usb_driver_ops_t usbmast_driver_ops = {349 static const usb_driver_ops_t usbmast_driver_ops = { 339 350 .device_add = usbmast_device_add, 351 .device_rem = usbmast_device_remove, 340 352 .device_gone = usbmast_device_gone, 341 353 }; 342 354 343 355 /** USB mass storage driver. */ 344 static usb_driver_t usbmast_driver = {356 static const usb_driver_t usbmast_driver = { 345 357 .name = NAME, 346 358 .ops = &usbmast_driver_ops,
Note:
See TracChangeset
for help on using the changeset viewer.