diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-09-27 10:26:12 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-09-27 16:12:46 -0400 |
commit | 52c0d6e56b634b195e377192182391d526cdd5e4 (patch) | |
tree | 24a32bc650f821d9aeadf90c7891285f50778774 /include/net/bluetooth | |
parent | 3161ae1c72f03b021bc67504c13025626c26d30c (diff) |
Bluetooth: AMP: Remote AMP ctrl definitions
Create remote AMP controllers structure. It is used to keep information
about discovered remote AMP controllers by A2MP protocol.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/a2mp.h | 3 | ||||
-rw-r--r-- | include/net/bluetooth/amp.h | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/net/bluetooth/a2mp.h b/include/net/bluetooth/a2mp.h index d5476719fa4..99c7389b918 100644 --- a/include/net/bluetooth/a2mp.h +++ b/include/net/bluetooth/a2mp.h | |||
@@ -33,6 +33,9 @@ struct amp_mgr { | |||
33 | __u8 handle; | 33 | __u8 handle; |
34 | enum amp_mgr_state state; | 34 | enum amp_mgr_state state; |
35 | unsigned long flags; | 35 | unsigned long flags; |
36 | |||
37 | struct list_head amp_ctrls; | ||
38 | struct mutex amp_ctrls_lock; | ||
36 | }; | 39 | }; |
37 | 40 | ||
38 | struct a2mp_cmd { | 41 | struct a2mp_cmd { |
diff --git a/include/net/bluetooth/amp.h b/include/net/bluetooth/amp.h index 3414dfdc404..f57854f0786 100644 --- a/include/net/bluetooth/amp.h +++ b/include/net/bluetooth/amp.h | |||
@@ -14,6 +14,21 @@ | |||
14 | #ifndef __AMP_H | 14 | #ifndef __AMP_H |
15 | #define __AMP_H | 15 | #define __AMP_H |
16 | 16 | ||
17 | struct amp_ctrl { | ||
18 | struct list_head list; | ||
19 | struct kref kref; | ||
20 | __u8 id; | ||
21 | __u16 assoc_len_so_far; | ||
22 | __u16 assoc_rem_len; | ||
23 | __u16 assoc_len; | ||
24 | __u8 *assoc; | ||
25 | }; | ||
26 | |||
27 | int amp_ctrl_put(struct amp_ctrl *ctrl); | ||
28 | struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr); | ||
29 | struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id); | ||
30 | void amp_ctrl_list_flush(struct amp_mgr *mgr); | ||
31 | |||
17 | struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, | 32 | struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, |
18 | u8 remote_id); | 33 | u8 remote_id); |
19 | 34 | ||