aboutsummaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btintel.h
diff options
context:
space:
mode:
authorGravatar Chethan T N <chethan.tumkur.narayan@intel.com> 2020-06-08 17:57:46 +0530
committerGravatar Marcel Holtmann <marcel@holtmann.org> 2020-06-10 06:51:49 +0200
commitd74abe2138b39ae34c274f5ba5dec47408036c0b (patch)
treed56ff5df970ec83094dc8a70b2b0a62d2a441baa /drivers/bluetooth/btintel.h
parentBluetooth: hci_qca: Bug fix during SSR timeout (diff)
downloadlinux-d74abe2138b39ae34c274f5ba5dec47408036c0b.tar.gz
linux-d74abe2138b39ae34c274f5ba5dec47408036c0b.tar.bz2
linux-d74abe2138b39ae34c274f5ba5dec47408036c0b.zip
Bluetooth: btusb: Add support to read Intel debug feature
The command shall read the Intel controller supported debug feature. Based on the supported features additional debug configuration shall be enabled. Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: Ps AyappadasX <AyappadasX.Ps@intel.com> Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btintel.h')
-rw-r--r--drivers/bluetooth/btintel.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h
index a69ea8a87b9b..7cd813fc5db4 100644
--- a/drivers/bluetooth/btintel.h
+++ b/drivers/bluetooth/btintel.h
@@ -62,6 +62,10 @@ struct intel_reset {
__le32 boot_param;
} __packed;
+struct intel_debug_features {
+ __u8 page1[16];
+} __packed;
+
#if IS_ENABLED(CONFIG_BT_INTEL)
int btintel_check_bdaddr(struct hci_dev *hdev);
@@ -88,6 +92,10 @@ int btintel_read_boot_params(struct hci_dev *hdev,
int btintel_download_firmware(struct hci_dev *dev, const struct firmware *fw,
u32 *boot_param);
void btintel_reset_to_bootloader(struct hci_dev *hdev);
+
+int btintel_read_debug_features(struct hci_dev *hdev,
+ struct intel_debug_features *features);
+
#else
static inline int btintel_check_bdaddr(struct hci_dev *hdev)
@@ -186,4 +194,11 @@ static inline int btintel_download_firmware(struct hci_dev *dev,
static inline void btintel_reset_to_bootloader(struct hci_dev *hdev)
{
}
+
+static inline int btintel_read_debug_features(struct hci_dev *hdev,
+ struct intel_debug_features *features)
+{
+ return -EOPNOTSUPP;
+}
+
#endif