diff options
author | Mike Lockwood <lockwood@android.com> | 2008-12-02 22:01:33 -0500 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2009-04-07 16:43:25 -0700 |
commit | 03e39e8f663c896dac11e87d96e8cb0292520e36 (patch) | |
tree | a38f3f797e629a2fa38aeca5c1b1d214ae24717b /include | |
parent | 39e3d37b1f7194277b8a3ea3536a67ec2d24491e (diff) |
android_usb: Composite USB gadget driver for android.
Signed-off-by: Mike Lockwood <lockwood@android.com>
USB: android gadget: add remote wakeup attribute to android function
Add remote wakeup attribute to configuration descriptor of android
function to advertise remote wakeup capability to host
Acked-by: Allam, Suresh Reddy <sallam@qualcomm.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb gadget: link fixes for android composite gadget
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb gadget: Fix null pointer errors in android composite driver
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/android.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/usb/android.h b/include/linux/usb/android.h new file mode 100644 index 000000000000..1a5def2b2942 --- /dev/null +++ b/include/linux/usb/android.h @@ -0,0 +1,40 @@ +/* + * Platform data for Android USB + * + * Copyright (C) 2008 Google, Inc. + * Author: Mike Lockwood <lockwood@android.com> + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ +#ifndef __LINUX_USB_ANDROID_H +#define __LINUX_USB_ANDROID_H + +struct android_usb_platform_data { + /* USB device descriptor fields */ + __u16 vendor_id; + + /* Default product ID. */ + __u16 product_id; + + /* Product ID when adb is enabled. */ + __u16 adb_product_id; + + __u16 version; + + char *product_name; + char *manufacturer_name; + char *serial_number; + + /* number of LUNS for mass storage function */ + int nluns; +}; + +#endif /* __LINUX_USB_ANDROID_H */ |