[Bluetooth] Add HCI device identifier for SDIO cards
This patch assigns the next free HCI device identifier to Bluetooth devices based on the SDIO interface. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
9c724357f4
commit
0ac53939a0
|
@ -276,7 +276,7 @@ static int vhci_open(struct inode *inode, struct file *file)
|
||||||
|
|
||||||
data->hdev = hdev;
|
data->hdev = hdev;
|
||||||
|
|
||||||
hdev->type = HCI_VHCI;
|
hdev->type = HCI_VIRTUAL;
|
||||||
hdev->driver_data = data;
|
hdev->driver_data = data;
|
||||||
|
|
||||||
hdev->open = vhci_open_dev;
|
hdev->open = vhci_open_dev;
|
||||||
|
|
|
@ -44,12 +44,13 @@
|
||||||
#define HCI_NOTIFY_VOICE_SETTING 3
|
#define HCI_NOTIFY_VOICE_SETTING 3
|
||||||
|
|
||||||
/* HCI device types */
|
/* HCI device types */
|
||||||
#define HCI_VHCI 0
|
#define HCI_VIRTUAL 0
|
||||||
#define HCI_USB 1
|
#define HCI_USB 1
|
||||||
#define HCI_PCCARD 2
|
#define HCI_PCCARD 2
|
||||||
#define HCI_UART 3
|
#define HCI_UART 3
|
||||||
#define HCI_RS232 4
|
#define HCI_RS232 4
|
||||||
#define HCI_PCI 5
|
#define HCI_PCI 5
|
||||||
|
#define HCI_SDIO 6
|
||||||
|
|
||||||
/* HCI device quirks */
|
/* HCI device quirks */
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
static inline char *typetostr(int type)
|
static inline char *typetostr(int type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case HCI_VHCI:
|
case HCI_VIRTUAL:
|
||||||
return "VIRTUAL";
|
return "VIRTUAL";
|
||||||
case HCI_USB:
|
case HCI_USB:
|
||||||
return "USB";
|
return "USB";
|
||||||
|
@ -28,6 +28,8 @@ static inline char *typetostr(int type)
|
||||||
return "RS232";
|
return "RS232";
|
||||||
case HCI_PCI:
|
case HCI_PCI:
|
||||||
return "PCI";
|
return "PCI";
|
||||||
|
case HCI_SDIO:
|
||||||
|
return "SDIO";
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue