mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
97fb5e8d9b
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 294 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141900.825281744@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
62 lines
1.9 KiB
C
62 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
Copyright (c) 2011,2012 Intel Corp.
|
|
|
|
*/
|
|
|
|
#ifndef __AMP_H
|
|
#define __AMP_H
|
|
|
|
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);
|
|
void amp_ctrl_get(struct amp_ctrl *ctrl);
|
|
struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id);
|
|
struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id);
|
|
void amp_ctrl_list_flush(struct amp_mgr *mgr);
|
|
|
|
struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr,
|
|
u8 remote_id, bool out);
|
|
|
|
int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type);
|
|
|
|
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);
|
|
void amp_read_loc_assoc_final_data(struct hci_dev *hdev,
|
|
struct hci_conn *hcon);
|
|
void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
|
|
struct hci_conn *hcon);
|
|
void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
|
|
struct hci_conn *hcon);
|
|
|
|
#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
|
|
|
|
void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle);
|
|
void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);
|
|
void amp_physical_cfm(struct hci_conn *bredr_hcon, struct hci_conn *hs_hcon);
|
|
void amp_create_logical_link(struct l2cap_chan *chan);
|
|
void amp_disconnect_logical_link(struct hci_chan *hchan);
|
|
void amp_destroy_logical_link(struct hci_chan *hchan, u8 reason);
|
|
|
|
#endif /* __AMP_H */
|