bluetooth.h (4353dd3b70783ebbc83fcf12d9c0af3fbab0223b) bluetooth.h (e625e50ceee18bc1e3fb1a6375e089405a797a4d)
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4
5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 125 unchanged lines hidden (view full) ---

134#define BT_PHY_EDR_3M_5SLOT 0x00000100
135#define BT_PHY_LE_1M_TX 0x00000200
136#define BT_PHY_LE_1M_RX 0x00000400
137#define BT_PHY_LE_2M_TX 0x00000800
138#define BT_PHY_LE_2M_RX 0x00001000
139#define BT_PHY_LE_CODED_TX 0x00002000
140#define BT_PHY_LE_CODED_RX 0x00004000
141
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4
5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 125 unchanged lines hidden (view full) ---

134#define BT_PHY_EDR_3M_5SLOT 0x00000100
135#define BT_PHY_LE_1M_TX 0x00000200
136#define BT_PHY_LE_1M_RX 0x00000400
137#define BT_PHY_LE_2M_TX 0x00000800
138#define BT_PHY_LE_2M_RX 0x00001000
139#define BT_PHY_LE_CODED_TX 0x00002000
140#define BT_PHY_LE_CODED_RX 0x00004000
141
142#define BT_MODE 15
143
144#define BT_MODE_BASIC 0x00
145#define BT_MODE_ERTM 0x01
146#define BT_MODE_STREAMING 0x02
147#define BT_MODE_LE_FLOWCTL 0x03
148#define BT_MODE_EXT_FLOWCTL 0x04
149
142__printf(1, 2)
143void bt_info(const char *fmt, ...);
144__printf(1, 2)
145void bt_warn(const char *fmt, ...);
146__printf(1, 2)
147void bt_err(const char *fmt, ...);
150__printf(1, 2)
151void bt_info(const char *fmt, ...);
152__printf(1, 2)
153void bt_warn(const char *fmt, ...);
154__printf(1, 2)
155void bt_err(const char *fmt, ...);
156#if IS_ENABLED(CONFIG_BT_FEATURE_DEBUG)
157void bt_dbg_set(bool enable);
158bool bt_dbg_get(void);
148__printf(1, 2)
159__printf(1, 2)
160void bt_dbg(const char *fmt, ...);
161#endif
162__printf(1, 2)
149void bt_warn_ratelimited(const char *fmt, ...);
150__printf(1, 2)
151void bt_err_ratelimited(const char *fmt, ...);
152
153#define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__)
154#define BT_WARN(fmt, ...) bt_warn(fmt "\n", ##__VA_ARGS__)
155#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
163void bt_warn_ratelimited(const char *fmt, ...);
164__printf(1, 2)
165void bt_err_ratelimited(const char *fmt, ...);
166
167#define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__)
168#define BT_WARN(fmt, ...) bt_warn(fmt "\n", ##__VA_ARGS__)
169#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
170
171#if IS_ENABLED(CONFIG_BT_FEATURE_DEBUG)
172#define BT_DBG(fmt, ...) bt_dbg(fmt "\n", ##__VA_ARGS__)
173#else
156#define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__)
174#define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__)
175#endif
157
158#define bt_dev_info(hdev, fmt, ...) \
159 BT_INFO("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
160#define bt_dev_warn(hdev, fmt, ...) \
161 BT_WARN("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
162#define bt_dev_err(hdev, fmt, ...) \
163 BT_ERR("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
164#define bt_dev_dbg(hdev, fmt, ...) \

--- 271 unchanged lines hidden ---
176
177#define bt_dev_info(hdev, fmt, ...) \
178 BT_INFO("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
179#define bt_dev_warn(hdev, fmt, ...) \
180 BT_WARN("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
181#define bt_dev_err(hdev, fmt, ...) \
182 BT_ERR("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
183#define bt_dev_dbg(hdev, fmt, ...) \

--- 271 unchanged lines hidden ---