Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    r9871bca r721d4b6e  
    5555#define GET_BULK_OUT(dev) ((dev)->pipes[BULK_OUT_EP].pipe)
    5656
    57 static const usb_endpoint_description_t bulk_in_ep = {
     57static usb_endpoint_description_t bulk_in_ep = {
    5858        .transfer_type = USB_TRANSFER_BULK,
    5959        .direction = USB_DIRECTION_IN,
     
    6363        .flags = 0
    6464};
    65 static const usb_endpoint_description_t bulk_out_ep = {
     65static usb_endpoint_description_t bulk_out_ep = {
    6666        .transfer_type = USB_TRANSFER_BULK,
    6767        .direction = USB_DIRECTION_OUT,
     
    7272};
    7373
    74 static const usb_endpoint_description_t *mast_endpoints[] = {
     74usb_endpoint_description_t *mast_endpoints[] = {
    7575        &bulk_in_ep,
    7676        &bulk_out_ep,
     
    106106}
    107107
    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 
    119108/** Callback when new device is attached and recognized as a mass storage.
    120109 *
    121  * @param dev Representation of USB device.
     110 * @param dev Representation of a the USB device.
    122111 * @return Error code.
    123112 */
     
    347336
    348337/** USB mass storage driver ops. */
    349 static const usb_driver_ops_t usbmast_driver_ops = {
     338static usb_driver_ops_t usbmast_driver_ops = {
    350339        .device_add = usbmast_device_add,
    351         .device_rem = usbmast_device_remove,
    352340        .device_gone = usbmast_device_gone,
    353341};
    354342
    355343/** USB mass storage driver. */
    356 static const usb_driver_t usbmast_driver = {
     344static usb_driver_t usbmast_driver = {
    357345        .name = NAME,
    358346        .ops = &usbmast_driver_ops,
Note: See TracChangeset for help on using the changeset viewer.