| 1 |
/* Reduced from linux 5.3.11: drivers/net/wireless/ath/ath10k/usb.c */ |
| 2 |
|
| 3 |
/* The original file has this licence header. */ |
| 4 |
|
| 5 |
// SPDX-License-Identifier: ISC |
| 6 |
/* |
| 7 |
* Copyright (c) 2007-2011 Atheros Communications Inc. |
| 8 |
* Copyright (c) 2011-2012,2017 Qualcomm Atheros, Inc. |
| 9 |
* Copyright (c) 2016-2017 Erik Stromdahl <[email protected]> |
| 10 |
*/ |
| 11 |
|
| 12 |
/* Adapted from include/linux/compiler_attributes.h. */ |
| 13 |
#define __printf(a, b) __attribute__((__format__(printf, a, b))) |
| 14 |
|
| 15 |
/* From drivers/net/wireless/ath/ath10k/core.h. */ |
| 16 |
|
| 17 |
struct ath10k; |
| 18 |
|
| 19 |
/* From drivers/net/wireless/ath/ath10k/debug.h. */ |
| 20 |
|
| 21 |
enum ath10k_debug_mask { |
| 22 |
/* [...other values removed...] */ |
| 23 |
ATH10K_DBG_USB_BULK = 0x00080000, |
| 24 |
}; |
| 25 |
|
| 26 |
extern unsigned int ath10k_debug_mask; |
| 27 |
|
| 28 |
__printf(3, 4) void __ath10k_dbg(struct ath10k *ar, |
| 29 |
enum ath10k_debug_mask mask, |
| 30 |
const char *fmt, ...); |
| 31 |
|
| 32 |
static void ath10k_usb_hif_tx_sg(struct ath10k *ar) |
| 33 |
{ |
| 34 |
if (ath10k_debug_mask & ATH10K_DBG_USB_BULK) |
| 35 |
__ath10k_dbg(ar, ATH10K_DBG_USB_BULK, "usb bulk transmit failed: %d\n", 42); |
| 36 |
} |