18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * bdc_dbg.h - header for the BDC debug functions 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2014 Broadcom Corporation 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Author: Ashwini Pahuja 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci#ifndef __LINUX_BDC_DBG_H__ 108c2ecf20Sopenharmony_ci#define __LINUX_BDC_DBG_H__ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include "bdc.h" 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifdef CONFIG_USB_GADGET_VERBOSE 158c2ecf20Sopenharmony_civoid bdc_dbg_bd_list(struct bdc *, struct bdc_ep*); 168c2ecf20Sopenharmony_civoid bdc_dbg_srr(struct bdc *, u32); 178c2ecf20Sopenharmony_civoid bdc_dbg_regs(struct bdc *); 188c2ecf20Sopenharmony_civoid bdc_dump_epsts(struct bdc *); 198c2ecf20Sopenharmony_ci#else 208c2ecf20Sopenharmony_cistatic inline void bdc_dbg_regs(struct bdc *bdc) 218c2ecf20Sopenharmony_ci{ } 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_cistatic inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num) 248c2ecf20Sopenharmony_ci{ } 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_cistatic inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep) 278c2ecf20Sopenharmony_ci{ } 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_cistatic inline void bdc_dump_epsts(struct bdc *bdc) 308c2ecf20Sopenharmony_ci{ } 318c2ecf20Sopenharmony_ci#endif /* CONFIG_USB_GADGET_VERBOSE */ 328c2ecf20Sopenharmony_ci#endif /* __LINUX_BDC_DBG_H__ */ 33