linux/drivers/usb/gadget/function/u_fs.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * u_fs.h
 *
 * Utility definitions for the FunctionFS
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * Author: Andrzej Pietrasiewicz <[email protected]>
 */

#ifndef U_FFS_H
#define U_FFS_H

#include <linux/usb/composite.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <linux/refcount.h>

#ifdef VERBOSE_DEBUG
#ifndef pr_vdebug
#define pr_vdebug
#endif /* pr_vdebug */
#define ffs_dump_mem(prefix, ptr, len)
#else
#ifndef pr_vdebug
#define pr_vdebug
#endif /* pr_vdebug */
#define ffs_dump_mem
#endif /* VERBOSE_DEBUG */

struct f_fs_opts;

struct ffs_dev {};

extern struct mutex ffs_lock;

static inline void ffs_dev_lock(void)
{}

static inline void ffs_dev_unlock(void)
{}

int ffs_name_dev(struct ffs_dev *dev, const char *name);
int ffs_single_dev(struct ffs_dev *dev);

struct ffs_epfile;
struct ffs_function;

enum ffs_state {};

enum ffs_setup_state {};

struct ffs_data {};


struct f_fs_opts {};

static inline struct f_fs_opts *to_f_fs_opts(struct usb_function_instance *fi)
{}

#endif /* U_FFS_H */