.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * Bluetooth HCI UART driver |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2000-2001 Qualcomm Incorporated |
---|
6 | 7 | * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com> |
---|
7 | 8 | * Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org> |
---|
8 | | - * |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
13 | | - * (at your option) any later version. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - * GNU General Public License for more details. |
---|
19 | | - * |
---|
20 | | - * You should have received a copy of the GNU General Public License |
---|
21 | | - * along with this program; if not, write to the Free Software |
---|
22 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
23 | | - * |
---|
24 | 9 | */ |
---|
25 | 10 | |
---|
26 | 11 | #ifndef N_HCI |
---|
.. | .. |
---|
115 | 100 | void hci_uart_unregister_device(struct hci_uart *hu); |
---|
116 | 101 | |
---|
117 | 102 | int hci_uart_tx_wakeup(struct hci_uart *hu); |
---|
| 103 | +int hci_uart_wait_until_sent(struct hci_uart *hu); |
---|
118 | 104 | int hci_uart_init_ready(struct hci_uart *hu); |
---|
119 | 105 | void hci_uart_init_work(struct work_struct *work); |
---|
120 | 106 | void hci_uart_set_baudrate(struct hci_uart *hu, unsigned int speed); |
---|
.. | .. |
---|
157 | 143 | .lsize = 1, \ |
---|
158 | 144 | .maxlen = HCI_MAX_EVENT_SIZE |
---|
159 | 145 | |
---|
| 146 | +#define H4_RECV_ISO \ |
---|
| 147 | + .type = HCI_ISODATA_PKT, \ |
---|
| 148 | + .hlen = HCI_ISO_HDR_SIZE, \ |
---|
| 149 | + .loff = 2, \ |
---|
| 150 | + .lsize = 2, \ |
---|
| 151 | + .maxlen = HCI_MAX_FRAME_SIZE \ |
---|
| 152 | + |
---|
160 | 153 | struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, |
---|
161 | 154 | const unsigned char *buffer, int count, |
---|
162 | 155 | const struct h4_recv_pkt *pkts, int pkts_count); |
---|