blob: 65d0a88dbc675c8bb7d2bfe6256183cfd8a18ec0 [file] [log] [blame]
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +02001#ifndef __LINUX_FUNCTIONFS_H__
2#define __LINUX_FUNCTIONFS_H__ 1
3
David Howells5e1ddb42012-10-09 09:49:07 +01004#include <uapi/linux/usb/functionfs.h>
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +02005
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +02006
7struct ffs_data;
8struct usb_composite_dev;
9struct usb_configuration;
10
11
12static int functionfs_init(void) __attribute__((warn_unused_result));
13static void functionfs_cleanup(void);
14
15static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev)
16 __attribute__((warn_unused_result, nonnull));
17static void functionfs_unbind(struct ffs_data *ffs)
18 __attribute__((nonnull));
19
Michal Nazarewicz7898aee2010-06-16 12:07:58 +020020static int functionfs_bind_config(struct usb_composite_dev *cdev,
21 struct usb_configuration *c,
22 struct ffs_data *ffs)
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +020023 __attribute__((warn_unused_result, nonnull));
24
25
26static int functionfs_ready_callback(struct ffs_data *ffs)
27 __attribute__((warn_unused_result, nonnull));
28static void functionfs_closed_callback(struct ffs_data *ffs)
29 __attribute__((nonnull));
Andrzej Pietrasiewicz581791f2012-05-14 15:51:52 +020030static void *functionfs_acquire_dev_callback(const char *dev_name)
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +020031 __attribute__((warn_unused_result, nonnull));
Andrzej Pietrasiewicz581791f2012-05-14 15:51:52 +020032static void functionfs_release_dev_callback(struct ffs_data *ffs_data)
33 __attribute__((nonnull));
Michal Nazarewiczddf8abd2010-05-05 12:53:14 +020034
35
36#endif