summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btintel.h
diff options
context:
space:
mode:
authorKiran K <kiran.k@intel.com>2020-11-19 12:39:41 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2020-12-07 16:01:11 +0100
commit9a93b8b8eee4ac971a1ac120a2be7a66b7fa5b68 (patch)
tree90c2563a73e9c0fa79aff01ed0861a7f0e27b21c /drivers/bluetooth/btintel.h
parentBluetooth: btusb: Add *setup* function for new generation Intel controllers (diff)
downloadlinux-9a93b8b8eee4ac971a1ac120a2be7a66b7fa5b68.tar.xz
linux-9a93b8b8eee4ac971a1ac120a2be7a66b7fa5b68.zip
Bluetooth: btusb: Define a function to construct firmware filename
Define a new function to construct firmware/ddc filename for new generation Intel controllers Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/btintel.h')
-rw-r--r--drivers/bluetooth/btintel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h
index 78cc64b42b30..6511b091caf5 100644
--- a/drivers/bluetooth/btintel.h
+++ b/drivers/bluetooth/btintel.h
@@ -132,6 +132,12 @@ struct intel_debug_features {
__u8 page1[16];
} __packed;
+#define INTEL_HW_PLATFORM(cnvx_bt) ((u8)(((cnvx_bt) & 0x0000ff00) >> 8))
+#define INTEL_HW_VARIANT(cnvx_bt) ((u8)(((cnvx_bt) & 0x003f0000) >> 16))
+#define INTEL_CNVX_TOP_TYPE(cnvx_top) ((cnvx_top) & 0x00000fff)
+#define INTEL_CNVX_TOP_STEP(cnvx_top) (((cnvx_top) & 0x0f000000) >> 24)
+#define INTEL_CNVX_TOP_PACK_SWAB(t, s) __swab16(((__u16)(((t) << 4) | (s))))
+
#if IS_ENABLED(CONFIG_BT_INTEL)
int btintel_check_bdaddr(struct hci_dev *hdev);