diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-12-17 18:49:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-17 18:49:09 -0500 |
commit | 9732d523212060c44a4723332bdc5ee429eeabc3 (patch) | |
tree | d549b68cf1f84d3bbeed2301b64aa8b93fb4c94e /drivers/usb/gadget/u_phonet.h | |
parent | 893873f3965ae0173a9315534bec7628162d2243 (diff) |
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.h | 21 |
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 000000000000..09a75259b6cd --- /dev/null +++ b/drivers/usb/gadget/u_phonet.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * u_phonet.h - interface to Phonet | ||
3 | * | ||
4 | * Copyright (C) 2007-2008 by Nokia Corporation | ||
5 | * | ||
6 | * This software is distributed under the terms of the GNU General | ||
7 | * Public License ("GPL") as published by the Free Software Foundation, | ||
8 | * either version 2 of that License or (at your option) any later version. | ||
9 | */ | ||
10 | |||
11 | #ifndef __U_PHONET_H | ||
12 | #define __U_PHONET_H | ||
13 | |||
14 | #include <linux/usb/composite.h> | ||
15 | #include <linux/usb/cdc.h> | ||
16 | |||
17 | int gphonet_setup(struct usb_gadget *gadget); | ||
18 | int phonet_bind_config(struct usb_configuration *c); | ||
19 | void gphonet_cleanup(void); | ||
20 | |||
21 | #endif /* __U_PHONET_H */ | ||