mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-14 07:44:36 +08:00
lib: Add IPC bus type
Zephyr(1) has been using the same bus defines as Linux so tools likes of btmon, etc, are able to decode the bus under HCI, so this attempts to synchronize the definitions by adding the missing bus type IPC(11) and its decoding string. [1] https://github.com/zephyrproject-rtos/zephyr/pull/80808
This commit is contained in:
parent
002ee180b1
commit
0025cdd0c1
@ -2500,6 +2500,7 @@ Read Extended Controller Index List Command
|
||||
0x08 I2C
|
||||
0x09 SMD
|
||||
0x0A VIRTIO
|
||||
0x0B IPC
|
||||
|
||||
Controllers marked as RAW only operation are currently not listed
|
||||
by this command.
|
||||
|
@ -152,6 +152,8 @@ const char *hci_bustostr(int bus)
|
||||
return "SMD";
|
||||
case HCI_VIRTIO:
|
||||
return "VIRTIO";
|
||||
case HCI_IPC:
|
||||
return "IPC";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ extern "C" {
|
||||
#define HCI_I2C 8
|
||||
#define HCI_SMD 9
|
||||
#define HCI_VIRTIO 10
|
||||
#define HCI_IPC 11
|
||||
|
||||
/* HCI controller types */
|
||||
#define HCI_PRIMARY 0x00
|
||||
|
@ -58,6 +58,8 @@
|
||||
#define BTSNOOP_BUS_SPI 7
|
||||
#define BTSNOOP_BUS_I2C 8
|
||||
#define BTSNOOP_BUS_SMD 9
|
||||
#define BTSNOOP_BUS_VIRTIO 10
|
||||
#define BTSNOOP_BUS_IPC 11
|
||||
|
||||
struct btsnoop_opcode_new_index {
|
||||
uint8_t type;
|
||||
|
Loading…
Reference in New Issue
Block a user