xref: /OK3568_Linux_fs/kernel/include/linux/usb/xhci-dbgp.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Standalone xHCI debug capability driver
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2016 Intel Corporation
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Author: Lu Baolu <baolu.lu@linux.intel.com>
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify
10*4882a593Smuzhiyun  * it under the terms of the GNU General Public License version 2 as
11*4882a593Smuzhiyun  * published by the Free Software Foundation.
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #ifndef __LINUX_XHCI_DBGP_H
15*4882a593Smuzhiyun #define __LINUX_XHCI_DBGP_H
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #ifdef CONFIG_EARLY_PRINTK_USB_XDBC
18*4882a593Smuzhiyun int __init early_xdbc_parse_parameter(char *s);
19*4882a593Smuzhiyun int __init early_xdbc_setup_hardware(void);
20*4882a593Smuzhiyun void __init early_xdbc_register_console(void);
21*4882a593Smuzhiyun #else
early_xdbc_setup_hardware(void)22*4882a593Smuzhiyun static inline int __init early_xdbc_setup_hardware(void)
23*4882a593Smuzhiyun {
24*4882a593Smuzhiyun 	return -ENODEV;
25*4882a593Smuzhiyun }
early_xdbc_register_console(void)26*4882a593Smuzhiyun static inline void __init early_xdbc_register_console(void)
27*4882a593Smuzhiyun {
28*4882a593Smuzhiyun }
29*4882a593Smuzhiyun #endif /* CONFIG_EARLY_PRINTK_USB_XDBC */
30*4882a593Smuzhiyun #endif /* __LINUX_XHCI_DBGP_H */
31