lib: Add identifier for VIRTIO devices
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Mar 2020 18:32:53 +0000 (20:32 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:48 +0000 (14:30 +0530)
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/hci.c
lib/hci.h

index a237c0b..fa1af18 100755 (executable)
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -167,6 +167,8 @@ char *hci_bustostr(int bus)
        case HCI_SMD:
                return "SMD";
 #endif
+       case HCI_VIRTIO:
+               return "VIRTIO";
        default:
                return "Unknown";
        }
index 061580b..2da1f58 100755 (executable)
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -58,6 +58,7 @@ extern "C" {
 #define HCI_SPI                7
 #define HCI_I2C                8
 #define HCI_SMD                9
+#define HCI_VIRTIO     10
 
 /* HCI controller types */
 #define HCI_PRIMARY    0x00