From bfb16c94ad8dd1314415cddf2ffe2b9b8df5d0f4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 22 Apr 2016 19:22:44 +0300 Subject: [PATCH] lib: Add recently introduced SPI & I2C bus defines --- lib/hci.c | 4 ++++ lib/hci.h | 2 ++ src/shared/btsnoop.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/lib/hci.c b/lib/hci.c index c25be9e5f..c339085f0 100644 --- a/lib/hci.c +++ b/lib/hci.c @@ -156,6 +156,10 @@ char *hci_bustostr(int bus) return "PCI"; case HCI_SDIO: return "SDIO"; + case HCI_SPI: + return "SPI"; + case HCI_I2C: + return "I2C"; default: return "UNKNOWN"; } diff --git a/lib/hci.h b/lib/hci.h index 397caf2be..d1c7b9700 100644 --- a/lib/hci.h +++ b/lib/hci.h @@ -55,6 +55,8 @@ extern "C" { #define HCI_RS232 4 #define HCI_PCI 5 #define HCI_SDIO 6 +#define HCI_SPI 7 +#define HCI_I2C 8 /* HCI controller types */ #define HCI_BREDR 0x00 diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h index d94dbae5e..06a1c1bfd 100644 --- a/src/shared/btsnoop.h +++ b/src/shared/btsnoop.h @@ -62,6 +62,8 @@ #define BTSNOOP_BUS_RS232 4 #define BTSNOOP_BUS_PCI 5 #define BTSNOOP_BUS_SDIO 6 +#define BTSNOOP_BUS_SPI 7 +#define BTSNOOP_BUS_I2C 8 struct btsnoop_opcode_new_index { uint8_t type; -- 2.47.3