Blame view
include/usb_mass_storage.h
878 Bytes
b528f7139 usb:gadget: USB M... |
1 2 3 4 |
/* * Copyright (C) 2011 Samsung Electrnoics * Lukasz Majewski <l.majewski@samsung.com> * |
1a4596601 Add GPL-2.0+ SPDX... |
5 |
* SPDX-License-Identifier: GPL-2.0+ |
b528f7139 usb:gadget: USB M... |
6 7 8 9 10 11 |
*/ #ifndef __USB_MASS_STORAGE_H__ #define __USB_MASS_STORAGE_H__ #define SECTOR_SIZE 0x200 |
ce19d9740 ums: support bloc... |
12 |
#include <part.h> |
ba4e95c9f usb:g_dnl:ums: Co... |
13 |
#include <linux/usb/composite.h> |
b528f7139 usb:gadget: USB M... |
14 |
|
3603e31db usb: ums: wait fo... |
15 16 |
/* Wait at maximum 60 seconds for cable connection */ #define UMS_CABLE_READY_TIMEOUT 60 |
93c813b3a usb: ums: code re... |
17 18 |
struct ums { int (*read_sector)(struct ums *ums_dev, |
b528f7139 usb:gadget: USB M... |
19 |
ulong start, lbaint_t blkcnt, void *buf); |
93c813b3a usb: ums: code re... |
20 |
int (*write_sector)(struct ums *ums_dev, |
b528f7139 usb:gadget: USB M... |
21 |
ulong start, lbaint_t blkcnt, const void *buf); |
0697f206d usb: ums: fix dis... |
22 23 |
unsigned int start_sector; unsigned int num_sectors; |
b528f7139 usb:gadget: USB M... |
24 |
const char *name; |
4101f6879 dm: Drop the bloc... |
25 |
struct blk_desc block_dev; |
b528f7139 usb:gadget: USB M... |
26 |
}; |
d903cd890 MLK-20887 usb: ga... |
27 |
int fsg_init(struct ums *ums_devs, int count, unsigned int controller_idx); |
16297cfb2 usb: new board-sp... |
28 |
void fsg_cleanup(void); |
16297cfb2 usb: new board-sp... |
29 |
int fsg_main_thread(void *); |
ba4e95c9f usb:g_dnl:ums: Co... |
30 |
int fsg_add(struct usb_configuration *c); |
b528f7139 usb:gadget: USB M... |
31 |
#endif /* __USB_MASS_STORAGE_H__ */ |