Andrei Emeltchenko | 903e454 | 2012-09-27 17:26:09 +0300 | [diff] [blame] | 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 | |
Andrei Emeltchenko | 52c0d6e | 2012-09-27 17:26:12 +0300 | [diff] [blame] | 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); |
Andrei Emeltchenko | 0b26ab9 | 2012-09-27 17:26:24 +0300 | [diff] [blame] | 28 | void amp_ctrl_get(struct amp_ctrl *ctrl); |
Andrei Emeltchenko | fa4ebc6 | 2012-10-05 16:56:55 +0300 | [diff] [blame] | 29 | struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id); |
Andrei Emeltchenko | 52c0d6e | 2012-09-27 17:26:12 +0300 | [diff] [blame] | 30 | struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id); |
| 31 | void amp_ctrl_list_flush(struct amp_mgr *mgr); |
| 32 | |
Andrei Emeltchenko | 3161ae1 | 2012-09-27 17:26:11 +0300 | [diff] [blame] | 33 | struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, |
Andrei Emeltchenko | a0c234f | 2012-10-05 16:56:56 +0300 | [diff] [blame] | 34 | u8 remote_id, bool out); |
Andrei Emeltchenko | 3161ae1 | 2012-09-27 17:26:11 +0300 | [diff] [blame] | 35 | |
Andrei Emeltchenko | 5a34918 | 2012-09-27 17:26:18 +0300 | [diff] [blame] | 36 | int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type); |
| 37 | |
Andrei Emeltchenko | 903e454 | 2012-09-27 17:26:09 +0300 | [diff] [blame] | 38 | void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr); |
| 39 | void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle); |
| 40 | void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr); |
Andrei Emeltchenko | 9495b2e | 2012-09-27 17:26:22 +0300 | [diff] [blame] | 41 | void amp_read_loc_assoc_final_data(struct hci_dev *hdev, |
| 42 | struct hci_conn *hcon); |
Andrei Emeltchenko | a02226d | 2012-09-27 17:26:19 +0300 | [diff] [blame] | 43 | void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, |
| 44 | struct hci_conn *hcon); |
Andrei Emeltchenko | dffa387 | 2012-09-27 17:26:23 +0300 | [diff] [blame] | 45 | void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, |
| 46 | struct hci_conn *hcon); |
Andrei Emeltchenko | 93c284e | 2012-09-27 17:26:20 +0300 | [diff] [blame] | 47 | void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle); |
| 48 | void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle); |
Andrei Emeltchenko | cf70ff2 | 2012-10-31 15:46:36 +0200 | [diff] [blame] | 49 | void amp_physical_cfm(struct hci_conn *bredr_hcon, struct hci_conn *hs_hcon); |
Andrei Emeltchenko | 5ce66b5 | 2012-10-31 15:46:30 +0200 | [diff] [blame] | 50 | void amp_create_logical_link(struct l2cap_chan *chan); |
Andrei Emeltchenko | 419e08c | 2012-10-31 15:46:34 +0200 | [diff] [blame] | 51 | void amp_disconnect_logical_link(struct hci_chan *hchan); |
Andrei Emeltchenko | 606e2a1 | 2012-10-31 15:46:31 +0200 | [diff] [blame] | 52 | void amp_destroy_logical_link(struct hci_chan *hchan, u8 reason); |
Andrei Emeltchenko | 903e454 | 2012-09-27 17:26:09 +0300 | [diff] [blame] | 53 | |
| 54 | #endif /* __AMP_H */ |