Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 1 | #ifndef __LINUX_FUNCTIONFS_H__ |
| 2 | #define __LINUX_FUNCTIONFS_H__ 1 |
| 3 | |
David Howells | 5e1ddb4 | 2012-10-09 09:49:07 +0100 | [diff] [blame] | 4 | #include <uapi/linux/usb/functionfs.h> |
Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 5 | |
Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 6 | |
| 7 | struct ffs_data; |
| 8 | struct usb_composite_dev; |
| 9 | struct usb_configuration; |
| 10 | |
| 11 | |
| 12 | static int functionfs_init(void) __attribute__((warn_unused_result)); |
| 13 | static void functionfs_cleanup(void); |
| 14 | |
| 15 | static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev) |
| 16 | __attribute__((warn_unused_result, nonnull)); |
| 17 | static void functionfs_unbind(struct ffs_data *ffs) |
| 18 | __attribute__((nonnull)); |
| 19 | |
Michal Nazarewicz | 7898aee | 2010-06-16 12:07:58 +0200 | [diff] [blame] | 20 | static int functionfs_bind_config(struct usb_composite_dev *cdev, |
| 21 | struct usb_configuration *c, |
| 22 | struct ffs_data *ffs) |
Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 23 | __attribute__((warn_unused_result, nonnull)); |
| 24 | |
| 25 | |
| 26 | static int functionfs_ready_callback(struct ffs_data *ffs) |
| 27 | __attribute__((warn_unused_result, nonnull)); |
| 28 | static void functionfs_closed_callback(struct ffs_data *ffs) |
| 29 | __attribute__((nonnull)); |
Andrzej Pietrasiewicz | 581791f | 2012-05-14 15:51:52 +0200 | [diff] [blame] | 30 | static void *functionfs_acquire_dev_callback(const char *dev_name) |
Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 31 | __attribute__((warn_unused_result, nonnull)); |
Andrzej Pietrasiewicz | 581791f | 2012-05-14 15:51:52 +0200 | [diff] [blame] | 32 | static void functionfs_release_dev_callback(struct ffs_data *ffs_data) |
| 33 | __attribute__((nonnull)); |
Michal Nazarewicz | ddf8abd | 2010-05-05 12:53:14 +0200 | [diff] [blame] | 34 | |
| 35 | |
| 36 | #endif |