Mike Lockwood | 7f0d7bd | 2008-12-02 22:01:33 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * Platform data for Android USB |
| 3 | * |
| 4 | * Copyright (C) 2008 Google, Inc. |
| 5 | * Author: Mike Lockwood <lockwood@android.com> |
| 6 | * |
| 7 | * This software is licensed under the terms of the GNU General Public |
| 8 | * License version 2, as published by the Free Software Foundation, and |
| 9 | * may be copied, distributed, and modified under those terms. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | */ |
| 17 | #ifndef __LINUX_USB_ANDROID_H |
| 18 | #define __LINUX_USB_ANDROID_H |
| 19 | |
| 20 | struct android_usb_platform_data { |
| 21 | /* USB device descriptor fields */ |
| 22 | __u16 vendor_id; |
| 23 | |
| 24 | /* Default product ID. */ |
| 25 | __u16 product_id; |
| 26 | |
| 27 | /* Product ID when adb is enabled. */ |
| 28 | __u16 adb_product_id; |
| 29 | |
| 30 | __u16 version; |
| 31 | |
| 32 | char *product_name; |
| 33 | char *manufacturer_name; |
| 34 | char *serial_number; |
| 35 | |
| 36 | /* number of LUNS for mass storage function */ |
| 37 | int nluns; |
| 38 | }; |
| 39 | |
| 40 | /* Platform data for "usb_mass_storage" driver. |
| 41 | * Contains values for the SC_INQUIRY SCSI command. */ |
| 42 | struct usb_mass_storage_platform_data { |
| 43 | char *vendor; |
| 44 | char *product; |
| 45 | int release; |
| 46 | }; |
| 47 | |
| 48 | extern void android_usb_set_connected(int on); |
| 49 | |
| 50 | #endif /* __LINUX_USB_ANDROID_H */ |