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 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License version 2 as 11 * published by the Free Software Foundation. 12 */ 13 14 #ifndef __LINUX_XHCI_DBGP_H 15 #define __LINUX_XHCI_DBGP_H 16 17 #ifdef CONFIG_EARLY_PRINTK_USB_XDBC 18 int __init early_xdbc_parse_parameter(char *s, int keep_early); 19 int __init early_xdbc_setup_hardware(void); 20 void __init early_xdbc_register_console(void); 21 #else early_xdbc_setup_hardware(void)22static inline int __init early_xdbc_setup_hardware(void) 23 { 24 return -ENODEV; 25 } early_xdbc_register_console(void)26static inline void __init early_xdbc_register_console(void) 27 { 28 } 29 #endif /* CONFIG_EARLY_PRINTK_USB_XDBC */ 30 #endif /* __LINUX_XHCI_DBGP_H */ 31