我们从2011年坚守至今,只想做存粹的技术论坛。  由于网站在外面,点击附件后要很长世间才弹出下载,请耐心等待,勿重复点击不要用Edge和IE浏览器下载,否则提示不安全下载不了

 找回密码
 立即注册
搜索
查看: 1112|回复: 3

RK3288平台上  USB BT

[复制链接]

该用户从未签到

812

主题

399

回帖

499

积分

二级逆天

积分
499

社区居民社区明星忠实会员宣传大使奖终身成就奖特殊贡献奖

QQ
发表于 2015-7-4 22:10:35 | 显示全部楼层 |阅读模式
/*
*
*  Generic Bluetooth USB driver
*
*  Copyright (C) 2005-2008  Marcel Holtmann <marcel@holtmann.org>
*
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  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.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
*/

#include <linux/module.h>
#include <linux/usb.h>
#include <linux/firmware.h>

#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>

#define VERSION "0.6"

static bool ignore_dga;
static bool ignore_csr;
static bool ignore_sniffer;
static bool disable_scofix;
static bool force_scofix;

static bool reset = 1;

static struct usb_driver btusb_driver;

#define BTUSB_IGNORE        0x01
#define BTUSB_DIGIANSWER    0x02
#define BTUSB_CSR        0x04
#define BTUSB_SNIFFER        0x08
#define BTUSB_BCM92035        0x10
#define BTUSB_BROKEN_ISOC    0x20
#define BTUSB_WRONG_SCO_MTU    0x40
#define BTUSB_ATH3012        0x80
#define BTUSB_INTEL        0x100

static struct usb_device_id btusb_table[] = {
    /* Generic Bluetooth USB device */
    { USB_DEVICE_INFO(0xe0, 0x01, 0x01) },

    /* Apple-specific (Broadcom) devices */
    { USB_VENDOR_AND_INTERFACE_INFO(0x05ac, 0xff, 0x01, 0x01) },

    /* MediaTek MT76x0E */
    { USB_DEVICE(0x0e8d, 0x763f) },

    /* Broadcom SoftSailing reporting vendor specific */
    { USB_DEVICE(0x0a5c, 0x21e1) },

    /* Apple MacBookPro 7,1 */
    { USB_DEVICE(0x05ac, 0x8213) },

    /* Apple iMac11,1 */
    { USB_DEVICE(0x05ac, 0x8215) },

    /* Apple MacBookPro6,2 */
    { USB_DEVICE(0x05ac, 0x8218) },

    /* Apple MacBookAir3,1, MacBookAir3,2 */
    { USB_DEVICE(0x05ac, 0x821b) },

    /* Apple MacBookAir4,1 */
    { USB_DEVICE(0x05ac, 0x821f) },

    /* Apple MacBookPro8,2 */
    { USB_DEVICE(0x05ac, 0x821a) },

    /* Apple MacMini5,1 */
    { USB_DEVICE(0x05ac, 0x8281) },

    /* AVM BlueFRITZ! USB v2.0 */
    { USB_DEVICE(0x057c, 0x3800) },

    /* Bluetooth Ultraport Module from IBM */
    { USB_DEVICE(0x04bf, 0x030a) },

    /* ALPS Modules with non-standard id */
    { USB_DEVICE(0x044e, 0x3001) },
    { USB_DEVICE(0x044e, 0x3002) },

    /* Ericsson with non-standard id */
    { USB_DEVICE(0x0bdb, 0x1002) },

    /* Canyon CN-BTU1 with HID interfaces */
    { USB_DEVICE(0x0c10, 0x0000) },

    /* Broadcom BCM20702A0 */
    { USB_DEVICE(0x0b05, 0x17b5) },
    { USB_DEVICE(0x0b05, 0x17cb) },
    { USB_DEVICE(0x04ca, 0x2003) },
    { USB_DEVICE(0x0489, 0xe042) },
    { USB_DEVICE(0x413c, 0x8197) },

    /* Foxconn - Hon Hai */
    { USB_VENDOR_AND_INTERFACE_INFO(0x0489, 0xff, 0x01, 0x01) },

    /*Broadcom devices with vendor specific id */
    { USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0
回复

使用道具 举报

该用户从未签到

34

主题

967

回帖

77

积分

二级逆天

积分
77

社区居民终身成就奖

QQ
发表于 2015-7-5 08:49:51 | 显示全部楼层
回复

使用道具 举报

  • TA的每日心情
    开心
    前天 08:32
  • 签到天数: 57 天

    [LV.5]常住居民I

    210

    主题

    6919

    回帖

    4万

    积分

    百元学习allegro

    积分
    47734

    终身成就奖特殊贡献奖社区居民忠实会员社区劳模最爱沙发社区明星优秀斑竹奖宣传大使奖

    QQ
    发表于 2015-7-5 09:06:42 | 显示全部楼层
    回复

    使用道具 举报

    该用户从未签到

    9

    主题

    25

    回帖

    0

    积分

    二级逆天

    积分
    0

    社区居民

    QQ
    发表于 2016-3-7 16:15:52 | 显示全部楼层
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    论坛开启做任务可以
    额外奖励金币快速赚
    积分升级了


    Copyright ©2011-2024 NTpcb.com All Right Reserved.  Powered by Discuz! (NTpcb)

    本站信息均由会员发表,不代表NTpcb立场,如侵犯了您的权利请发帖投诉

    平平安安
    TOP
    快速回复 返回顶部 返回列表