xref: /openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.h (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*cabfb09dSAndy Gospodarek /* Broadcom NetXtreme-C/E network driver.
2*cabfb09dSAndy Gospodarek  *
3*cabfb09dSAndy Gospodarek  * Copyright (c) 2017-2018 Broadcom Limited
4*cabfb09dSAndy Gospodarek  *
5*cabfb09dSAndy Gospodarek  * This program is free software; you can redistribute it and/or modify
6*cabfb09dSAndy Gospodarek  * it under the terms of the GNU General Public License as published by
7*cabfb09dSAndy Gospodarek  * the Free Software Foundation.
8*cabfb09dSAndy Gospodarek  */
9*cabfb09dSAndy Gospodarek 
10*cabfb09dSAndy Gospodarek #include "bnxt_hsi.h"
11*cabfb09dSAndy Gospodarek #include "bnxt.h"
12*cabfb09dSAndy Gospodarek 
13*cabfb09dSAndy Gospodarek #ifdef CONFIG_DEBUG_FS
14*cabfb09dSAndy Gospodarek void bnxt_debug_init(void);
15*cabfb09dSAndy Gospodarek void bnxt_debug_exit(void);
16*cabfb09dSAndy Gospodarek void bnxt_debug_dev_init(struct bnxt *bp);
17*cabfb09dSAndy Gospodarek void bnxt_debug_dev_exit(struct bnxt *bp);
18*cabfb09dSAndy Gospodarek #else
bnxt_debug_init(void)19*cabfb09dSAndy Gospodarek static inline void bnxt_debug_init(void) {}
bnxt_debug_exit(void)20*cabfb09dSAndy Gospodarek static inline void bnxt_debug_exit(void) {}
bnxt_debug_dev_init(struct bnxt * bp)21*cabfb09dSAndy Gospodarek static inline void bnxt_debug_dev_init(struct bnxt *bp) {}
bnxt_debug_dev_exit(struct bnxt * bp)22*cabfb09dSAndy Gospodarek static inline void bnxt_debug_dev_exit(struct bnxt *bp) {}
23*cabfb09dSAndy Gospodarek #endif
24