aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/bluetooth.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
commit92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch)
tree15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/net/bluetooth/bluetooth.h
parent15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff)
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2 Backmerge to get at commit 1b0e3a049efe471c399674fd954500ce97438d30 Author: Imre Deak <imre.deak@intel.com> Date: Thu Nov 5 23:04:11 2015 +0200 drm/i915/skl: disable display side power well support for now so that we can proplery re-eanble skl power wells in -next. Conflicts are just adjacent lines changed, except for intel_fbdev.c where we need to interleave the changs. Nothing nefarious. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
-rw-r--r--include/net/bluetooth/bluetooth.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 38d8a34d3589..42844d7b154a 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -122,12 +122,28 @@ struct bt_voice {
122__printf(1, 2) 122__printf(1, 2)
123void bt_info(const char *fmt, ...); 123void bt_info(const char *fmt, ...);
124__printf(1, 2) 124__printf(1, 2)
125void bt_warn(const char *fmt, ...);
126__printf(1, 2)
125void bt_err(const char *fmt, ...); 127void bt_err(const char *fmt, ...);
128__printf(1, 2)
129void bt_err_ratelimited(const char *fmt, ...);
126 130
127#define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__) 131#define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__)
132#define BT_WARN(fmt, ...) bt_warn(fmt "\n", ##__VA_ARGS__)
128#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__) 133#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
129#define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__) 134#define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__)
130 135
136#define BT_ERR_RATELIMITED(fmt, ...) bt_err_ratelimited(fmt "\n", ##__VA_ARGS__)
137
138#define bt_dev_info(hdev, fmt, ...) \
139 BT_INFO("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
140#define bt_dev_warn(hdev, fmt, ...) \
141 BT_WARN("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
142#define bt_dev_err(hdev, fmt, ...) \
143 BT_ERR("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
144#define bt_dev_dbg(hdev, fmt, ...) \
145 BT_DBG("%s: " fmt, (hdev)->name, ##__VA_ARGS__)
146
131/* Connection and socket states */ 147/* Connection and socket states */
132enum { 148enum {
133 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ 149 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */
@@ -280,22 +296,22 @@ typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode);
280typedef void (*hci_req_complete_skb_t)(struct hci_dev *hdev, u8 status, 296typedef void (*hci_req_complete_skb_t)(struct hci_dev *hdev, u8 status,
281 u16 opcode, struct sk_buff *skb); 297 u16 opcode, struct sk_buff *skb);
282 298
283struct req_ctrl { 299struct hci_ctrl {
284 bool start; 300 __u16 opcode;
285 u8 event; 301 bool req_start;
286 hci_req_complete_t complete; 302 u8 req_event;
287 hci_req_complete_skb_t complete_skb; 303 hci_req_complete_t req_complete;
304 hci_req_complete_skb_t req_complete_skb;
288}; 305};
289 306
290struct bt_skb_cb { 307struct bt_skb_cb {
291 __u8 pkt_type; 308 __u8 pkt_type;
292 __u8 force_active; 309 __u8 force_active;
293 __u16 opcode;
294 __u16 expect; 310 __u16 expect;
295 __u8 incoming:1; 311 __u8 incoming:1;
296 union { 312 union {
297 struct l2cap_ctrl l2cap; 313 struct l2cap_ctrl l2cap;
298 struct req_ctrl req; 314 struct hci_ctrl hci;
299 }; 315 };
300}; 316};
301#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 317#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))