hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/bluetooth/btbcm.h
....@@ -1,24 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 *
34 * Bluetooth support for Broadcom devices
45 *
56 * Copyright (C) 2015 Intel Corporation
6
- *
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
- *
227 */
238
249 #define BCM_UART_CLOCK_48MHZ 0x01
....@@ -69,13 +54,16 @@
6954 int btbcm_check_bdaddr(struct hci_dev *hdev);
7055 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
7156 int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw);
57
+int btbcm_read_pcm_int_params(struct hci_dev *hdev,
58
+ struct bcm_set_pcm_int_params *params);
59
+int btbcm_write_pcm_int_params(struct hci_dev *hdev,
60
+ const struct bcm_set_pcm_int_params *params);
7261
7362 int btbcm_setup_patchram(struct hci_dev *hdev);
7463 int btbcm_setup_apple(struct hci_dev *hdev);
7564
76
-int btbcm_initialize(struct hci_dev *hdev, char *fw_name, size_t len,
77
- bool reinit);
78
-int btbcm_finalize(struct hci_dev *hdev);
65
+int btbcm_initialize(struct hci_dev *hdev, bool *fw_load_done);
66
+int btbcm_finalize(struct hci_dev *hdev, bool *fw_load_done);
7967
8068 #else
8169
....@@ -85,6 +73,18 @@
8573 }
8674
8775 static inline int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
76
+{
77
+ return -EOPNOTSUPP;
78
+}
79
+
80
+static inline int btbcm_read_pcm_int_params(struct hci_dev *hdev,
81
+ struct bcm_set_pcm_int_params *params)
82
+{
83
+ return -EOPNOTSUPP;
84
+}
85
+
86
+static inline int btbcm_write_pcm_int_params(struct hci_dev *hdev,
87
+ const struct bcm_set_pcm_int_params *params)
8888 {
8989 return -EOPNOTSUPP;
9090 }
....@@ -104,13 +104,12 @@
104104 return 0;
105105 }
106106
107
-static inline int btbcm_initialize(struct hci_dev *hdev, char *fw_name,
108
- size_t len, bool reinit)
107
+static inline int btbcm_initialize(struct hci_dev *hdev, bool *fw_load_done)
109108 {
110109 return 0;
111110 }
112111
113
-static inline int btbcm_finalize(struct hci_dev *hdev)
112
+static inline int btbcm_finalize(struct hci_dev *hdev, bool *fw_load_done)
114113 {
115114 return 0;
116115 }