xref: /linux/include/linux/usb/xhci-dbgp.h (revision e3fa404a)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Standalone xHCI debug capability driver
4  *
5  * Copyright (C) 2016 Intel Corporation
6  *
7  * Author: Lu Baolu <baolu.lu@linux.intel.com>
8  */
9 
10 #ifndef __LINUX_XHCI_DBGP_H
11 #define __LINUX_XHCI_DBGP_H
12 
13 #ifdef CONFIG_EARLY_PRINTK_USB_XDBC
14 int __init early_xdbc_parse_parameter(char *s, int keep_early);
15 int __init early_xdbc_setup_hardware(void);
16 void __init early_xdbc_register_console(void);
17 #else
early_xdbc_setup_hardware(void)18 static inline int __init early_xdbc_setup_hardware(void)
19 {
20 	return -ENODEV;
21 }
early_xdbc_register_console(void)22 static inline void __init early_xdbc_register_console(void)
23 {
24 }
25 #endif /* CONFIG_EARLY_PRINTK_USB_XDBC */
26 #endif /* __LINUX_XHCI_DBGP_H */
27