xref: /openbmc/linux/drivers/usb/gadget/udc/bdc/bdc_dbg.h (revision 799a545b)
1 /*
2  * bdc_dbg.h - header for the BDC debug functions
3  *
4  * Copyright (C) 2014 Broadcom Corporation
5  *
6  * Author: Ashwini Pahuja
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License as published by the
10  * Free Software Foundation; either version 2 of the License, or (at your
11  * option) any later version.
12  *
13  */
14 #ifndef __LINUX_BDC_DBG_H__
15 #define __LINUX_BDC_DBG_H__
16 
17 #include "bdc.h"
18 
19 #ifdef CONFIG_USB_GADGET_VERBOSE
20 void bdc_dbg_bd_list(struct bdc *, struct bdc_ep*);
21 void bdc_dbg_srr(struct bdc *, u32);
22 void bdc_dbg_regs(struct bdc *);
23 void bdc_dump_epsts(struct bdc *);
24 #else
25 static inline void bdc_dbg_regs(struct bdc *bdc)
26 { }
27 
28 static inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num)
29 { }
30 
31 static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep)
32 { }
33 
34 static inline void bdc_dump_epsts(struct bdc *bdc)
35 { }
36 #endif /* CONFIG_USB_GADGET_VERBOSE */
37 #endif /* __LINUX_BDC_DBG_H__ */
38