.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * Bluetooth support for Broadcom devices |
---|
4 | 5 | * |
---|
5 | 6 | * 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 | | - * |
---|
22 | 7 | */ |
---|
23 | 8 | |
---|
24 | 9 | #define BCM_UART_CLOCK_48MHZ 0x01 |
---|
.. | .. |
---|
69 | 54 | int btbcm_check_bdaddr(struct hci_dev *hdev); |
---|
70 | 55 | int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); |
---|
71 | 56 | 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); |
---|
72 | 61 | |
---|
73 | 62 | int btbcm_setup_patchram(struct hci_dev *hdev); |
---|
74 | 63 | int btbcm_setup_apple(struct hci_dev *hdev); |
---|
75 | 64 | |
---|
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); |
---|
79 | 67 | |
---|
80 | 68 | #else |
---|
81 | 69 | |
---|
.. | .. |
---|
85 | 73 | } |
---|
86 | 74 | |
---|
87 | 75 | 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) |
---|
88 | 88 | { |
---|
89 | 89 | return -EOPNOTSUPP; |
---|
90 | 90 | } |
---|
.. | .. |
---|
104 | 104 | return 0; |
---|
105 | 105 | } |
---|
106 | 106 | |
---|
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) |
---|
109 | 108 | { |
---|
110 | 109 | return 0; |
---|
111 | 110 | } |
---|
112 | 111 | |
---|
113 | | -static inline int btbcm_finalize(struct hci_dev *hdev) |
---|
| 112 | +static inline int btbcm_finalize(struct hci_dev *hdev, bool *fw_load_done) |
---|
114 | 113 | { |
---|
115 | 114 | return 0; |
---|
116 | 115 | } |
---|