aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_phonet.h
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2008-12-17 15:49:09 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-17 15:49:09 -0800
commit9732d523212060c44a4723332bdc5ee429eeabc3 (patch)
treed549b68cf1f84d3bbeed2301b64aa8b93fb4c94e /drivers/usb/gadget/u_phonet.h
parent893873f3965ae0173a9315534bec7628162d2243 (diff)
downloadkernel_samsung_smdk4412-9732d523212060c44a4723332bdc5ee429eeabc3.zip
kernel_samsung_smdk4412-9732d523212060c44a4723332bdc5ee429eeabc3.tar.gz
kernel_samsung_smdk4412-9732d523212060c44a4723332bdc5ee429eeabc3.tar.bz2
Phonet: USB CDC Phonet function for gadget framework
This implements the Nokia vendor-specific communication device class function to exchange Phonet messages over USB. This function is already found in the "PC suite" USB profile of (non-Linux) Nokia handsets. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/gadget/u_phonet.h')
-rw-r--r--drivers/usb/gadget/u_phonet.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_phonet.h b/drivers/usb/gadget/u_phonet.h
new file mode 100644
index 0000000..09a7525
--- /dev/null
+++ b/drivers/usb/gadget/u_phonet.h
@@ -0,0 +1,21 @@
+/*
+ * u_phonet.h - interface to Phonet
+ *
+ * Copyright (C) 2007-2008 by Nokia Corporation
+ *
+ * This software is distributed under the terms of the GNU General
+ * Public License ("GPL") as published by the Free Software Foundation,
+ * either version 2 of that License or (at your option) any later version.
+ */
+
+#ifndef __U_PHONET_H
+#define __U_PHONET_H
+
+#include <linux/usb/composite.h>
+#include <linux/usb/cdc.h>
+
+int gphonet_setup(struct usb_gadget *gadget);
+int phonet_bind_config(struct usb_configuration *c);
+void gphonet_cleanup(void);
+
+#endif /* __U_PHONET_H */