Commit | Line | Data |
---|---|---|
903e4541 AE |
1 | /* |
2 | Copyright (c) 2011,2012 Intel Corp. | |
3 | ||
4 | This program is free software; you can redistribute it and/or modify | |
5 | it under the terms of the GNU General Public License version 2 and | |
6 | only version 2 as published by the Free Software Foundation. | |
7 | ||
8 | This program is distributed in the hope that it will be useful, | |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | GNU General Public License for more details. | |
12 | */ | |
13 | ||
14 | #ifndef __AMP_H | |
15 | #define __AMP_H | |
16 | ||
52c0d6e5 AE |
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 | ||
3161ae1c AE |
32 | struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, |
33 | u8 remote_id); | |
34 | ||
5a349186 AE |
35 | int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type); |
36 | ||
903e4541 AE |
37 | void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr); |
38 | void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle); | |
39 | void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr); | |
a02226d6 AE |
40 | void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, |
41 | struct hci_conn *hcon); | |
903e4541 AE |
42 | |
43 | #endif /* __AMP_H */ |