From a34346dc76d8f32815b491508751f326600505d5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Nov 2015 07:18:45 +0100 Subject: [PATCH] btsnoop: Add constants for Bluetooth monitor fields --- src/shared/btsnoop.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h index 735af55c1..d94dbae5e 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; -- 2.47.3