Blame view
net/bluetooth/amp.h
2.27 KB
903e45411 Bluetooth: AMP: U... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/* Copyright (c) 2011,2012 Intel Corp. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 and only version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ #ifndef __AMP_H #define __AMP_H |
52c0d6e56 Bluetooth: AMP: R... |
16 17 18 19 20 21 22 23 24 25 26 |
struct amp_ctrl { struct list_head list; struct kref kref; __u8 id; __u16 assoc_len_so_far; __u16 assoc_rem_len; __u16 assoc_len; __u8 *assoc; }; int amp_ctrl_put(struct amp_ctrl *ctrl); |
0b26ab9dc Bluetooth: AMP: H... |
27 |
void amp_ctrl_get(struct amp_ctrl *ctrl); |
fa4ebc66c Bluetooth: AMP: F... |
28 |
struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id); |
52c0d6e56 Bluetooth: AMP: R... |
29 30 |
struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id); void amp_ctrl_list_flush(struct amp_mgr *mgr); |
3161ae1c7 Bluetooth: AMP: P... |
31 |
struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, |
a0c234fe8 Bluetooth: AMP: F... |
32 |
u8 remote_id, bool out); |
3161ae1c7 Bluetooth: AMP: P... |
33 |
|
5a3491866 Bluetooth: AMP: A... |
34 |
int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type); |
903e45411 Bluetooth: AMP: U... |
35 36 37 |
void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr); void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle); void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr); |
9495b2ee7 Bluetooth: AMP: P... |
38 39 |
void amp_read_loc_assoc_final_data(struct hci_dev *hdev, struct hci_conn *hcon); |
a02226d6f Bluetooth: AMP: C... |
40 41 |
void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, struct hci_conn *hcon); |
dffa38711 Bluetooth: AMP: A... |
42 43 |
void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, struct hci_conn *hcon); |
244bc3775 Bluetooth: Add BT... |
44 45 46 47 48 49 50 51 52 53 54 55 56 |
#if IS_ENABLED(CONFIG_BT_HS) void amp_create_logical_link(struct l2cap_chan *chan); void amp_disconnect_logical_link(struct hci_chan *hchan); #else static inline void amp_create_logical_link(struct l2cap_chan *chan) { } static inline void amp_disconnect_logical_link(struct hci_chan *hchan) { } #endif |
93c284ee9 Bluetooth: AMP: W... |
57 58 |
void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle); void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle); |
cf70ff220 Bluetooth: AMP: U... |
59 |
void amp_physical_cfm(struct hci_conn *bredr_hcon, struct hci_conn *hs_hcon); |
5ce66b59d Bluetooth: AMP: A... |
60 |
void amp_create_logical_link(struct l2cap_chan *chan); |
419e08c11 Bluetooth: Discon... |
61 |
void amp_disconnect_logical_link(struct hci_chan *hchan); |
606e2a10a Bluetooth: AMP: P... |
62 |
void amp_destroy_logical_link(struct hci_chan *hchan, u8 reason); |
903e45411 Bluetooth: AMP: U... |
63 64 |
#endif /* __AMP_H */ |