linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/6] lib: Add definitions for Enhanced Credits Based Mode
@ 2020-03-18 21:51 Luiz Augusto von Dentz
  2020-03-18 21:51 ` [PATCH v3 2/6] btio: Add mode to for Enhanced Credit Mode Luiz Augusto von Dentz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2020-03-18 21:51 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

---
 lib/bluetooth.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index d14217eac..121010c63 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,15 @@ struct bt_voice {
 #define BT_PHY_LE_CODED_TX	0x00002000
 #define BT_PHY_LE_CODED_RX	0x00004000
 
+#define BT_MODE			15
+
+#define BT_MODE_BASIC		0x00
+#define BT_MODE_RETRANS		0x01
+#define BT_MODE_FLOWCTL		0x02
+#define BT_MODE_ERTM		0x03
+#define BT_MODE_STREAMING	0x04
+#define BT_MODE_EXT_FLOWCTL	0x05
+
 /* Connection and socket states */
 enum {
 	BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */
-- 
2.21.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-18 21:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 21:51 [PATCH v3 1/6] lib: Add definitions for Enhanced Credits Based Mode Luiz Augusto von Dentz
2020-03-18 21:51 ` [PATCH v3 2/6] btio: Add mode to for Enhanced Credit Mode Luiz Augusto von Dentz
2020-03-18 21:51 ` [PATCH v3 3/6] l2test: Add support for BT_MODE_EXT_FLOWCTL Luiz Augusto von Dentz
2020-03-18 21:51 ` [PATCH v3 4/6] emulator/bthost: Add support for ECRED Connection request/response Luiz Augusto von Dentz
2020-03-18 21:51 ` [PATCH v3 5/6] tools/l2cap-tester: Add test for Ext-Flowctl mode Luiz Augusto von Dentz
2020-03-18 21:51 ` [PATCH v3 6/6] gatt: Enable connecting to EATT channel using " Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).