]>
Commit | Line | Data |
---|---|---|
2e759738 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
fee562a6 AP |
2 | /* |
3 | * u_ecm.h | |
4 | * | |
5 | * Utility definitions for the ecm function | |
6 | * | |
7 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. | |
8 | * http://www.samsung.com | |
9 | * | |
1b4a3b51 | 10 | * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com> |
fee562a6 AP |
11 | */ |
12 | ||
13 | #ifndef U_ECM_H | |
14 | #define U_ECM_H | |
15 | ||
16 | #include <linux/usb/composite.h> | |
17 | ||
18 | struct f_ecm_opts { | |
19 | struct usb_function_instance func_inst; | |
20 | struct net_device *net; | |
21 | bool bound; | |
da92801c AP |
22 | |
23 | /* | |
24 | * Read/write access to configfs attributes is handled by configfs. | |
25 | * | |
26 | * This is to protect the data from concurrent access by read/write | |
27 | * and create symlink/remove symlink. | |
28 | */ | |
29 | struct mutex lock; | |
30 | int refcnt; | |
fee562a6 AP |
31 | }; |
32 | ||
33 | #endif /* U_ECM_H */ |