u_eem.h 673 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * u_eem.h
  4. *
  5. * Utility definitions for the eem function
  6. *
  7. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  8. * http://www.samsung.com
  9. *
  10. * Author: Andrzej Pietrasiewicz <[email protected]>
  11. */
  12. #ifndef U_EEM_H
  13. #define U_EEM_H
  14. #include <linux/usb/composite.h>
  15. struct f_eem_opts {
  16. struct usb_function_instance func_inst;
  17. struct net_device *net;
  18. bool bound;
  19. /*
  20. * Read/write access to configfs attributes is handled by configfs.
  21. *
  22. * This is to protect the data from concurrent access by read/write
  23. * and create symlink/remove symlink.
  24. */
  25. struct mutex lock;
  26. int refcnt;
  27. };
  28. #endif /* U_EEM_H */