blob: 084b3c8e8f310c175c04a8a0e239972637ac8bf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2011 Samsung Electrnoics
* Lukasz Majewski <l.majewski@samsung.com>
*/
#ifndef __USB_MASS_STORAGE_H__
#define __USB_MASS_STORAGE_H__
#include <usb/composite.h>
/* Wait at maximum 60 seconds for cable connection */
#define UMS_CABLE_READY_TIMEOUT 60
struct fsg_common;
struct f_ums_opts {
struct usb_function_instance func_inst;
struct fsg_common *common;
struct file_list *files;
unsigned int num_sectors;
int fd;
char name[16];
};
int usb_ums_register(struct f_ums_opts *);
#endif /* __USB_MASS_STORAGE_H__ */
|