Diff between d433736ed51b19542ad7917df1f21e7e172ab173 and a34346dc76d8f32815b491508751f326600505d5

Changed Files

File Additions Deletions Status
src/shared/btsnoop.h +20 -0 modified

Full Patch

diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h
index 735af55..d94dbae 100644
--- a/src/shared/btsnoop.h
+++ b/src/shared/btsnoop.h
@@ -52,6 +52,17 @@
 
 #define BTSNOOP_MAX_PACKET_SIZE		(1486 + 4)
 
+#define BTSNOOP_TYPE_PRIMARY	0
+#define BTSNOOP_TYPE_AMP	1
+
+#define BTSNOOP_BUS_VIRTUAL	0
+#define BTSNOOP_BUS_USB		1
+#define BTSNOOP_BUS_PCCARD	2
+#define BTSNOOP_BUS_UART	3
+#define BTSNOOP_BUS_RS232	4
+#define BTSNOOP_BUS_PCI		5
+#define BTSNOOP_BUS_SDIO	6
+
 struct btsnoop_opcode_new_index {
 	uint8_t  type;
 	uint8_t  bus;
@@ -64,6 +75,15 @@ struct btsnoop_opcode_index_info {
 	uint16_t manufacturer;
 } __attribute__((packed));
 
+#define BTSNOOP_PRIORITY_EMERG		0
+#define BTSNOOP_PRIORITY_ALERT		1
+#define BTSNOOP_PRIORITY_CRIT		2
+#define BTSNOOP_PRIORITY_ERR		3
+#define BTSNOOP_PRIORITY_WARNING	4
+#define BTSNOOP_PRIORITY_NOTICE		5
+#define BTSNOOP_PRIORITY_INFO		6
+#define BTSNOOP_PRIORITY_DEBUG		7
+
 struct btsnoop_opcode_user_logging {
 	uint8_t  priority;
 	uint8_t  ident_len;