diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
commit | d635711daa98be86d4c7fd01499c34f566b54ccb (patch) | |
tree | aa5cc3760a27c3d57146498cb82fa549547de06c /drivers/staging/gdm72xx/usb_ids.h | |
parent | c91265cd0efb83778f015b4d4b1129bd2cfd075e (diff) |
Linux-libre 4.6.2-gnu
Diffstat (limited to 'drivers/staging/gdm72xx/usb_ids.h')
-rw-r--r-- | drivers/staging/gdm72xx/usb_ids.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/drivers/staging/gdm72xx/usb_ids.h b/drivers/staging/gdm72xx/usb_ids.h deleted file mode 100644 index 7afb9ba5f..000000000 --- a/drivers/staging/gdm72xx/usb_ids.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. - * - * 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 __GDM72XX_USB_IDS_H__ -#define __GDM72XX_USB_IDS_H__ - -/*You can replace vendor-ID as yours.*/ -#define GCT_VID 0x1076 - -/*You can replace product-ID as yours.*/ -#define GCT_PID1 0x7e00 -#define GCT_PID2 0x7f00 - -#define USB_DEVICE_ID_MATCH_DEVICE_INTERFACE \ - (USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_CLASS) - -#define USB_DEVICE_INTF(vend, prod, intf) \ - .match_flags = USB_DEVICE_ID_MATCH_DEVICE_INTERFACE, \ - .idVendor = (vend), .idProduct = (prod), .bInterfaceClass = (intf) - -#define EMERGENCY_PID 0x720f -#define BL_PID_MASK 0xffc0 - -#define USB_DEVICE_BOOTLOADER(vid, pid) \ - {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD)} - -#define USB_DEVICE_BOOTLOADER_DRV(vid, pid) \ - {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD|B_DIFF_DL_DRV)} - -#define USB_DEVICE_CDC_DATA(vid, pid) \ - {USB_DEVICE_INTF((vid), (pid), USB_CLASS_CDC_DATA)} - -static const struct usb_device_id id_table[] = { - USB_DEVICE_BOOTLOADER(GCT_VID, GCT_PID1), - USB_DEVICE_BOOTLOADER_DRV(GCT_VID, GCT_PID1), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x1), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x2), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x3), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x4), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x5), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x6), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x7), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x8), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x9), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xa), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xb), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xc), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xd), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xe), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xf), - - USB_DEVICE_BOOTLOADER(GCT_VID, GCT_PID2), - USB_DEVICE_BOOTLOADER_DRV(GCT_VID, GCT_PID2), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x1), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x2), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x3), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x4), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x5), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x6), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x7), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x8), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x9), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xa), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xb), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xc), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xd), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xe), - USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0xf), - - {USB_DEVICE(GCT_VID, EMERGENCY_PID)}, - { } -}; - -#endif /* __GDM72XX_USB_IDS_H__ */ |