Linux Audio

Check our new training course

Linux kernel drivers training

May 6-19, 2025
Register
Loading...
v6.13.7
  1/* SPDX-License-Identifier: GPL-2.0-or-later */
  2/*
  3 *
  4 *  Bluetooth support for Intel devices
  5 *
  6 *  Copyright (C) 2015  Intel Corporation
  7 */
  8
  9/* List of tlv type */
 10enum {
 11	INTEL_TLV_CNVI_TOP = 0x10,
 12	INTEL_TLV_CNVR_TOP,
 13	INTEL_TLV_CNVI_BT,
 14	INTEL_TLV_CNVR_BT,
 15	INTEL_TLV_CNVI_OTP,
 16	INTEL_TLV_CNVR_OTP,
 17	INTEL_TLV_DEV_REV_ID,
 18	INTEL_TLV_USB_VENDOR_ID,
 19	INTEL_TLV_USB_PRODUCT_ID,
 20	INTEL_TLV_PCIE_VENDOR_ID,
 21	INTEL_TLV_PCIE_DEVICE_ID,
 22	INTEL_TLV_PCIE_SUBSYSTEM_ID,
 23	INTEL_TLV_IMAGE_TYPE,
 24	INTEL_TLV_TIME_STAMP,
 25	INTEL_TLV_BUILD_TYPE,
 26	INTEL_TLV_BUILD_NUM,
 27	INTEL_TLV_FW_BUILD_PRODUCT,
 28	INTEL_TLV_FW_BUILD_HW,
 29	INTEL_TLV_FW_STEP,
 30	INTEL_TLV_BT_SPEC,
 31	INTEL_TLV_MFG_NAME,
 32	INTEL_TLV_HCI_REV,
 33	INTEL_TLV_LMP_SUBVER,
 34	INTEL_TLV_OTP_PATCH_VER,
 35	INTEL_TLV_SECURE_BOOT,
 36	INTEL_TLV_KEY_FROM_HDR,
 37	INTEL_TLV_OTP_LOCK,
 38	INTEL_TLV_API_LOCK,
 39	INTEL_TLV_DEBUG_LOCK,
 40	INTEL_TLV_MIN_FW,
 41	INTEL_TLV_LIMITED_CCE,
 42	INTEL_TLV_SBE_TYPE,
 43	INTEL_TLV_OTP_BDADDR,
 44	INTEL_TLV_UNLOCKED_STATE,
 45	INTEL_TLV_GIT_SHA1,
 46	INTEL_TLV_FW_ID = 0x50
 47};
 48
 49struct intel_tlv {
 50	u8 type;
 51	u8 len;
 52	u8 val[];
 53} __packed;
 54
 55#define BTINTEL_CNVI_BLAZARI		0x900
 56#define BTINTEL_CNVI_BLAZARIW		0x901
 57#define BTINTEL_CNVI_GAP		0x910
 58#define BTINTEL_CNVI_BLAZARU		0x930
 59
 60#define BTINTEL_IMG_BOOTLOADER		0x01	/* Bootloader image */
 61#define BTINTEL_IMG_IML			0x02	/* Intermediate image */
 62#define BTINTEL_IMG_OP			0x03	/* Operational image */
 63
 64#define BTINTEL_FWID_MAXLEN 64
 65
 66struct intel_version_tlv {
 67	u32	cnvi_top;
 68	u32	cnvr_top;
 69	u32	cnvi_bt;
 70	u32	cnvr_bt;
 71	u16	dev_rev_id;
 72	u8	img_type;
 73	u16	timestamp;
 74	u8	build_type;
 75	u32	build_num;
 76	u8	secure_boot;
 77	u8	otp_lock;
 78	u8	api_lock;
 79	u8	debug_lock;
 80	u8	min_fw_build_nn;
 81	u8	min_fw_build_cw;
 82	u8	min_fw_build_yy;
 83	u8	limited_cce;
 84	u8	sbe_type;
 85	u32	git_sha1;
 86	u8	fw_id[BTINTEL_FWID_MAXLEN];
 87	bdaddr_t otp_bd_addr;
 88};
 89
 90struct intel_version {
 91	u8 status;
 92	u8 hw_platform;
 93	u8 hw_variant;
 94	u8 hw_revision;
 95	u8 fw_variant;
 96	u8 fw_revision;
 97	u8 fw_build_num;
 98	u8 fw_build_ww;
 99	u8 fw_build_yy;
100	u8 fw_patch_num;
101} __packed;
102
103struct intel_boot_params {
104	__u8     status;
105	__u8     otp_format;
106	__u8     otp_content;
107	__u8     otp_patch;
108	__le16   dev_revid;
109	__u8     secure_boot;
110	__u8     key_from_hdr;
111	__u8     key_type;
112	__u8     otp_lock;
113	__u8     api_lock;
114	__u8     debug_lock;
115	bdaddr_t otp_bdaddr;
116	__u8     min_fw_build_nn;
117	__u8     min_fw_build_cw;
118	__u8     min_fw_build_yy;
119	__u8     limited_cce;
120	__u8     unlocked_state;
121} __packed;
122
123struct intel_bootup {
124	__u8     zero;
125	__u8     num_cmds;
126	__u8     source;
127	__u8     reset_type;
128	__u8     reset_reason;
129	__u8     ddc_status;
130} __packed;
131
132struct intel_secure_send_result {
133	__u8     result;
134	__le16   opcode;
135	__u8     status;
136} __packed;
137
138struct intel_reset {
139	__u8     reset_type;
140	__u8     patch_enable;
141	__u8     ddc_reload;
142	__u8     boot_option;
143	__le32   boot_param;
144} __packed;
145
146struct intel_debug_features {
147	__u8    page1[16];
148} __packed;
149
150struct intel_offload_use_cases {
151	__u8	status;
152	__u8	preset[8];
153} __packed;
154
155#define INTEL_OP_PPAG_CMD		0xFE0B
156struct hci_ppag_enable_cmd {
157	__le32	ppag_enable_flags;
158} __packed;
159
160#define INTEL_TLV_TYPE_ID		0x01
161
162#define INTEL_TLV_SYSTEM_EXCEPTION	0x00
163#define INTEL_TLV_FATAL_EXCEPTION	0x01
164#define INTEL_TLV_DEBUG_EXCEPTION	0x02
165#define INTEL_TLV_TEST_EXCEPTION	0xDE
166
167#define INTEL_HW_PLATFORM(cnvx_bt)	((u8)(((cnvx_bt) & 0x0000ff00) >> 8))
168#define INTEL_HW_VARIANT(cnvx_bt)	((u8)(((cnvx_bt) & 0x003f0000) >> 16))
169#define INTEL_CNVX_TOP_TYPE(cnvx_top)	((cnvx_top) & 0x00000fff)
170#define INTEL_CNVX_TOP_STEP(cnvx_top)	(((cnvx_top) & 0x0f000000) >> 24)
171#define INTEL_CNVX_TOP_PACK_SWAB(t, s)	__swab16(((__u16)(((t) << 4) | (s))))
172
173enum {
174	INTEL_BOOTLOADER,
175	INTEL_DOWNLOADING,
176	INTEL_FIRMWARE_LOADED,
177	INTEL_FIRMWARE_FAILED,
178	INTEL_BOOTING,
179	INTEL_BROKEN_INITIAL_NCMD,
180	INTEL_BROKEN_SHUTDOWN_LED,
181	INTEL_ROM_LEGACY,
182	INTEL_ROM_LEGACY_NO_WBS_SUPPORT,
183	INTEL_ACPI_RESET_ACTIVE,
184	INTEL_WAIT_FOR_D0,
185
186	__INTEL_NUM_FLAGS,
187};
188
189struct btintel_data {
190	DECLARE_BITMAP(flags, __INTEL_NUM_FLAGS);
191	int (*acpi_reset_method)(struct hci_dev *hdev);
192};
193
194#define btintel_set_flag(hdev, nr)					\
195	do {								\
196		struct btintel_data *intel = hci_get_priv((hdev));	\
197		set_bit((nr), intel->flags);				\
198	} while (0)
199
200#define btintel_clear_flag(hdev, nr)					\
201	do {								\
202		struct btintel_data *intel = hci_get_priv((hdev));	\
203		clear_bit((nr), intel->flags);				\
204	} while (0)
205
206#define btintel_wake_up_flag(hdev, nr)					\
207	do {								\
208		struct btintel_data *intel = hci_get_priv((hdev));	\
209		wake_up_bit(intel->flags, (nr));			\
210	} while (0)
211
212#define btintel_get_flag(hdev)						\
213	(((struct btintel_data *)hci_get_priv(hdev))->flags)
214
215#define btintel_test_flag(hdev, nr)	test_bit((nr), btintel_get_flag(hdev))
216#define btintel_test_and_clear_flag(hdev, nr) test_and_clear_bit((nr), btintel_get_flag(hdev))
217#define btintel_wait_on_flag_timeout(hdev, nr, m, to)			\
218		wait_on_bit_timeout(btintel_get_flag(hdev), (nr), m, to)
219
220#if IS_ENABLED(CONFIG_BT_INTEL) || IS_ENABLED(CONFIG_BT_INTEL_PCIE)
221
222int btintel_check_bdaddr(struct hci_dev *hdev);
223int btintel_enter_mfg(struct hci_dev *hdev);
224int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched);
225int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
226int btintel_set_diag(struct hci_dev *hdev, bool enable);
 
 
227
228int btintel_version_info(struct hci_dev *hdev, struct intel_version *ver);
 
 
 
229int btintel_load_ddc_config(struct hci_dev *hdev, const char *ddc_name);
 
230int btintel_set_event_mask_mfg(struct hci_dev *hdev, bool debug);
231int btintel_read_version(struct hci_dev *hdev, struct intel_version *ver);
 
 
232struct regmap *btintel_regmap_init(struct hci_dev *hdev, u16 opcode_read,
233				   u16 opcode_write);
234int btintel_send_intel_reset(struct hci_dev *hdev, u32 boot_param);
235int btintel_read_boot_params(struct hci_dev *hdev,
236			     struct intel_boot_params *params);
237int btintel_download_firmware(struct hci_dev *dev, struct intel_version *ver,
238			      const struct firmware *fw, u32 *boot_param);
239int btintel_configure_setup(struct hci_dev *hdev, const char *driver_name);
240int btintel_recv_event(struct hci_dev *hdev, struct sk_buff *skb);
241void btintel_bootup(struct hci_dev *hdev, const void *ptr, unsigned int len);
242void btintel_secure_send_result(struct hci_dev *hdev,
243				const void *ptr, unsigned int len);
244int btintel_set_quality_report(struct hci_dev *hdev, bool enable);
245int btintel_version_info_tlv(struct hci_dev *hdev,
246			     struct intel_version_tlv *version);
247int btintel_parse_version_tlv(struct hci_dev *hdev,
248			      struct intel_version_tlv *version,
249			      struct sk_buff *skb);
250void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant);
251int btintel_bootloader_setup_tlv(struct hci_dev *hdev,
252				 struct intel_version_tlv *ver);
253int btintel_shutdown_combined(struct hci_dev *hdev);
254void btintel_hw_error(struct hci_dev *hdev, u8 code);
255void btintel_print_fseq_info(struct hci_dev *hdev);
256int btintel_diagnostics(struct hci_dev *hdev, struct sk_buff *skb);
257#else
258
259static inline int btintel_check_bdaddr(struct hci_dev *hdev)
260{
261	return -EOPNOTSUPP;
262}
263
264static inline int btintel_enter_mfg(struct hci_dev *hdev)
265{
266	return -EOPNOTSUPP;
267}
268
269static inline int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched)
270{
271	return -EOPNOTSUPP;
272}
273
274static inline int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
275{
276	return -EOPNOTSUPP;
277}
278
279static inline int btintel_set_diag(struct hci_dev *hdev, bool enable)
280{
281	return -EOPNOTSUPP;
282}
283
 
 
 
 
 
 
 
 
 
284static inline int btintel_version_info(struct hci_dev *hdev,
285				       struct intel_version *ver)
286{
287	return -EOPNOTSUPP;
288}
289
 
 
 
 
 
 
 
 
 
 
 
 
290static inline int btintel_load_ddc_config(struct hci_dev *hdev,
291					  const char *ddc_name)
292{
293	return -EOPNOTSUPP;
294}
295
 
 
 
 
 
296static inline int btintel_set_event_mask_mfg(struct hci_dev *hdev, bool debug)
297{
298	return -EOPNOTSUPP;
299}
300
301static inline int btintel_read_version(struct hci_dev *hdev,
302				       struct intel_version *ver)
303{
304	return -EOPNOTSUPP;
305}
306
 
 
 
 
 
 
307static inline struct regmap *btintel_regmap_init(struct hci_dev *hdev,
308						 u16 opcode_read,
309						 u16 opcode_write)
310{
311	return ERR_PTR(-EINVAL);
312}
313
314static inline int btintel_send_intel_reset(struct hci_dev *hdev,
315					   u32 reset_param)
316{
317	return -EOPNOTSUPP;
318}
319
320static inline int btintel_read_boot_params(struct hci_dev *hdev,
321					   struct intel_boot_params *params)
322{
323	return -EOPNOTSUPP;
324}
325
326static inline int btintel_download_firmware(struct hci_dev *dev,
327					    const struct firmware *fw,
328					    u32 *boot_param)
329{
330	return -EOPNOTSUPP;
331}
332
333static inline int btintel_configure_setup(struct hci_dev *hdev,
334					  const char *driver_name)
335{
336	return -ENODEV;
337}
338
339static inline void btintel_bootup(struct hci_dev *hdev,
340				  const void *ptr, unsigned int len)
341{
 
342}
343
344static inline void btintel_secure_send_result(struct hci_dev *hdev,
345				const void *ptr, unsigned int len)
346{
347}
348
349static inline int btintel_set_quality_report(struct hci_dev *hdev, bool enable)
350{
351	return -ENODEV;
352}
353
354static inline int btintel_version_info_tlv(struct hci_dev *hdev,
355					   struct intel_version_tlv *version)
356{
357	return -EOPNOTSUPP;
358}
359
360static inline int btintel_parse_version_tlv(struct hci_dev *hdev,
361					    struct intel_version_tlv *version,
362					    struct sk_buff *skb)
363{
364	return -EOPNOTSUPP;
365}
366
367static inline void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant)
368
369{
370}
371
372static inline int btintel_bootloader_setup_tlv(struct hci_dev *hdev,
373					       struct intel_version_tlv *ver)
374{
375	return -ENODEV;
376}
377
378static inline int btintel_shutdown_combined(struct hci_dev *hdev)
379{
380	return -ENODEV;
381}
382
383static inline void btintel_hw_error(struct hci_dev *hdev, u8 code)
384{
385}
386
387static inline void btintel_print_fseq_info(struct hci_dev *hdev)
388{
389}
390
391static inline int btintel_diagnostics(struct hci_dev *hdev, struct sk_buff *skb)
392{
393	return -EOPNOTSUPP;
394}
395#endif
v5.14.15
  1/* SPDX-License-Identifier: GPL-2.0-or-later */
  2/*
  3 *
  4 *  Bluetooth support for Intel devices
  5 *
  6 *  Copyright (C) 2015  Intel Corporation
  7 */
  8
  9/* List of tlv type */
 10enum {
 11	INTEL_TLV_CNVI_TOP = 0x10,
 12	INTEL_TLV_CNVR_TOP,
 13	INTEL_TLV_CNVI_BT,
 14	INTEL_TLV_CNVR_BT,
 15	INTEL_TLV_CNVI_OTP,
 16	INTEL_TLV_CNVR_OTP,
 17	INTEL_TLV_DEV_REV_ID,
 18	INTEL_TLV_USB_VENDOR_ID,
 19	INTEL_TLV_USB_PRODUCT_ID,
 20	INTEL_TLV_PCIE_VENDOR_ID,
 21	INTEL_TLV_PCIE_DEVICE_ID,
 22	INTEL_TLV_PCIE_SUBSYSTEM_ID,
 23	INTEL_TLV_IMAGE_TYPE,
 24	INTEL_TLV_TIME_STAMP,
 25	INTEL_TLV_BUILD_TYPE,
 26	INTEL_TLV_BUILD_NUM,
 27	INTEL_TLV_FW_BUILD_PRODUCT,
 28	INTEL_TLV_FW_BUILD_HW,
 29	INTEL_TLV_FW_STEP,
 30	INTEL_TLV_BT_SPEC,
 31	INTEL_TLV_MFG_NAME,
 32	INTEL_TLV_HCI_REV,
 33	INTEL_TLV_LMP_SUBVER,
 34	INTEL_TLV_OTP_PATCH_VER,
 35	INTEL_TLV_SECURE_BOOT,
 36	INTEL_TLV_KEY_FROM_HDR,
 37	INTEL_TLV_OTP_LOCK,
 38	INTEL_TLV_API_LOCK,
 39	INTEL_TLV_DEBUG_LOCK,
 40	INTEL_TLV_MIN_FW,
 41	INTEL_TLV_LIMITED_CCE,
 42	INTEL_TLV_SBE_TYPE,
 43	INTEL_TLV_OTP_BDADDR,
 44	INTEL_TLV_UNLOCKED_STATE
 
 
 45};
 46
 47struct intel_tlv {
 48	u8 type;
 49	u8 len;
 50	u8 val[];
 51} __packed;
 52
 
 
 
 
 
 
 
 
 
 
 
 53struct intel_version_tlv {
 54	u32	cnvi_top;
 55	u32	cnvr_top;
 56	u32	cnvi_bt;
 57	u32	cnvr_bt;
 58	u16	dev_rev_id;
 59	u8	img_type;
 60	u16	timestamp;
 61	u8	build_type;
 62	u32	build_num;
 63	u8	secure_boot;
 64	u8	otp_lock;
 65	u8	api_lock;
 66	u8	debug_lock;
 67	u8	min_fw_build_nn;
 68	u8	min_fw_build_cw;
 69	u8	min_fw_build_yy;
 70	u8	limited_cce;
 71	u8	sbe_type;
 
 
 72	bdaddr_t otp_bd_addr;
 73};
 74
 75struct intel_version {
 76	u8 status;
 77	u8 hw_platform;
 78	u8 hw_variant;
 79	u8 hw_revision;
 80	u8 fw_variant;
 81	u8 fw_revision;
 82	u8 fw_build_num;
 83	u8 fw_build_ww;
 84	u8 fw_build_yy;
 85	u8 fw_patch_num;
 86} __packed;
 87
 88struct intel_boot_params {
 89	__u8     status;
 90	__u8     otp_format;
 91	__u8     otp_content;
 92	__u8     otp_patch;
 93	__le16   dev_revid;
 94	__u8     secure_boot;
 95	__u8     key_from_hdr;
 96	__u8     key_type;
 97	__u8     otp_lock;
 98	__u8     api_lock;
 99	__u8     debug_lock;
100	bdaddr_t otp_bdaddr;
101	__u8     min_fw_build_nn;
102	__u8     min_fw_build_cw;
103	__u8     min_fw_build_yy;
104	__u8     limited_cce;
105	__u8     unlocked_state;
106} __packed;
107
108struct intel_bootup {
109	__u8     zero;
110	__u8     num_cmds;
111	__u8     source;
112	__u8     reset_type;
113	__u8     reset_reason;
114	__u8     ddc_status;
115} __packed;
116
117struct intel_secure_send_result {
118	__u8     result;
119	__le16   opcode;
120	__u8     status;
121} __packed;
122
123struct intel_reset {
124	__u8     reset_type;
125	__u8     patch_enable;
126	__u8     ddc_reload;
127	__u8     boot_option;
128	__le32   boot_param;
129} __packed;
130
131struct intel_debug_features {
132	__u8    page1[16];
133} __packed;
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135#define INTEL_HW_PLATFORM(cnvx_bt)	((u8)(((cnvx_bt) & 0x0000ff00) >> 8))
136#define INTEL_HW_VARIANT(cnvx_bt)	((u8)(((cnvx_bt) & 0x003f0000) >> 16))
137#define INTEL_CNVX_TOP_TYPE(cnvx_top)	((cnvx_top) & 0x00000fff)
138#define INTEL_CNVX_TOP_STEP(cnvx_top)	(((cnvx_top) & 0x0f000000) >> 24)
139#define INTEL_CNVX_TOP_PACK_SWAB(t, s)	__swab16(((__u16)(((t) << 4) | (s))))
140
141#if IS_ENABLED(CONFIG_BT_INTEL)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
143int btintel_check_bdaddr(struct hci_dev *hdev);
144int btintel_enter_mfg(struct hci_dev *hdev);
145int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched);
146int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
147int btintel_set_diag(struct hci_dev *hdev, bool enable);
148int btintel_set_diag_mfg(struct hci_dev *hdev, bool enable);
149void btintel_hw_error(struct hci_dev *hdev, u8 code);
150
151int btintel_version_info(struct hci_dev *hdev, struct intel_version *ver);
152int btintel_version_info_tlv(struct hci_dev *hdev, struct intel_version_tlv *version);
153int btintel_secure_send(struct hci_dev *hdev, u8 fragment_type, u32 plen,
154			const void *param);
155int btintel_load_ddc_config(struct hci_dev *hdev, const char *ddc_name);
156int btintel_set_event_mask(struct hci_dev *hdev, bool debug);
157int btintel_set_event_mask_mfg(struct hci_dev *hdev, bool debug);
158int btintel_read_version(struct hci_dev *hdev, struct intel_version *ver);
159int btintel_read_version_tlv(struct hci_dev *hdev, struct intel_version_tlv *ver);
160
161struct regmap *btintel_regmap_init(struct hci_dev *hdev, u16 opcode_read,
162				   u16 opcode_write);
163int btintel_send_intel_reset(struct hci_dev *hdev, u32 boot_param);
164int btintel_read_boot_params(struct hci_dev *hdev,
165			     struct intel_boot_params *params);
166int btintel_download_firmware(struct hci_dev *dev, struct intel_version *ver,
167			      const struct firmware *fw, u32 *boot_param);
168int btintel_download_firmware_newgen(struct hci_dev *hdev,
169				     struct intel_version_tlv *ver,
170				     const struct firmware *fw,
171				     u32 *boot_param, u8 hw_variant,
172				     u8 sbe_type);
173void btintel_reset_to_bootloader(struct hci_dev *hdev);
174int btintel_read_debug_features(struct hci_dev *hdev,
175				struct intel_debug_features *features);
176int btintel_set_debug_features(struct hci_dev *hdev,
177			       const struct intel_debug_features *features);
 
 
 
 
 
 
 
 
178#else
179
180static inline int btintel_check_bdaddr(struct hci_dev *hdev)
181{
182	return -EOPNOTSUPP;
183}
184
185static inline int btintel_enter_mfg(struct hci_dev *hdev)
186{
187	return -EOPNOTSUPP;
188}
189
190static inline int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched)
191{
192	return -EOPNOTSUPP;
193}
194
195static inline int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
196{
197	return -EOPNOTSUPP;
198}
199
200static inline int btintel_set_diag(struct hci_dev *hdev, bool enable)
201{
202	return -EOPNOTSUPP;
203}
204
205static inline int btintel_set_diag_mfg(struct hci_dev *hdev, bool enable)
206{
207	return -EOPNOTSUPP;
208}
209
210static inline void btintel_hw_error(struct hci_dev *hdev, u8 code)
211{
212}
213
214static inline int btintel_version_info(struct hci_dev *hdev,
215				       struct intel_version *ver)
216{
217	return -EOPNOTSUPP;
218}
219
220static inline int btintel_version_info_tlv(struct hci_dev *hdev,
221					   struct intel_version_tlv *version)
222{
223	return -EOPNOTSUPP;
224}
225
226static inline int btintel_secure_send(struct hci_dev *hdev, u8 fragment_type,
227				      u32 plen, const void *param)
228{
229	return -EOPNOTSUPP;
230}
231
232static inline int btintel_load_ddc_config(struct hci_dev *hdev,
233					  const char *ddc_name)
234{
235	return -EOPNOTSUPP;
236}
237
238static inline int btintel_set_event_mask(struct hci_dev *hdev, bool debug)
239{
240	return -EOPNOTSUPP;
241}
242
243static inline int btintel_set_event_mask_mfg(struct hci_dev *hdev, bool debug)
244{
245	return -EOPNOTSUPP;
246}
247
248static inline int btintel_read_version(struct hci_dev *hdev,
249				       struct intel_version *ver)
250{
251	return -EOPNOTSUPP;
252}
253
254static inline int btintel_read_version_tlv(struct hci_dev *hdev,
255					   struct intel_version_tlv *ver)
256{
257	return -EOPNOTSUPP;
258}
259
260static inline struct regmap *btintel_regmap_init(struct hci_dev *hdev,
261						 u16 opcode_read,
262						 u16 opcode_write)
263{
264	return ERR_PTR(-EINVAL);
265}
266
267static inline int btintel_send_intel_reset(struct hci_dev *hdev,
268					   u32 reset_param)
269{
270	return -EOPNOTSUPP;
271}
272
273static inline int btintel_read_boot_params(struct hci_dev *hdev,
274					   struct intel_boot_params *params)
275{
276	return -EOPNOTSUPP;
277}
278
279static inline int btintel_download_firmware(struct hci_dev *dev,
280					    const struct firmware *fw,
281					    u32 *boot_param)
282{
283	return -EOPNOTSUPP;
284}
285
286static inline int btintel_download_firmware_newgen(struct hci_dev *hdev,
287						   const struct firmware *fw,
288						   u32 *boot_param,
289						   u8 hw_variant, u8 sbe_type)
 
 
 
 
290{
291	return -EOPNOTSUPP;
292}
293
294static inline void btintel_reset_to_bootloader(struct hci_dev *hdev)
 
295{
296}
297
298static inline int btintel_read_debug_features(struct hci_dev *hdev,
299					      struct intel_debug_features *features)
 
 
 
 
 
300{
301	return -EOPNOTSUPP;
302}
303
304static inline int btintel_set_debug_features(struct hci_dev *hdev,
305					     const struct intel_debug_features *features)
 
306{
307	return -EOPNOTSUPP;
308}
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310#endif