2017-11-03 18:28:30 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2013-05-28 15:15:53 +08:00
|
|
|
/*
|
|
|
|
* u_gether.h
|
|
|
|
*
|
|
|
|
* Utility definitions for the subset function
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
|
|
|
|
* http://www.samsung.com
|
|
|
|
*
|
2018-12-13 21:24:57 +08:00
|
|
|
* Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
|
2013-05-28 15:15:53 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef U_GETHER_H
|
|
|
|
#define U_GETHER_H
|
|
|
|
|
|
|
|
#include <linux/usb/composite.h>
|
|
|
|
|
|
|
|
struct f_gether_opts {
|
|
|
|
struct usb_function_instance func_inst;
|
|
|
|
struct net_device *net;
|
|
|
|
bool bound;
|
2013-05-28 15:15:56 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Read/write access to configfs attributes is handled by configfs.
|
|
|
|
*
|
|
|
|
* This is to protect the data from concurrent access by read/write
|
|
|
|
* and create symlink/remove symlink.
|
|
|
|
*/
|
|
|
|
struct mutex lock;
|
|
|
|
int refcnt;
|
2013-05-28 15:15:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* U_GETHER_H */
|