bdc_dbg.h 763 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * bdc_dbg.h - header for the BDC debug functions
  4. *
  5. * Copyright (C) 2014 Broadcom Corporation
  6. *
  7. * Author: Ashwini Pahuja
  8. */
  9. #ifndef __LINUX_BDC_DBG_H__
  10. #define __LINUX_BDC_DBG_H__
  11. #include "bdc.h"
  12. #ifdef CONFIG_USB_GADGET_VERBOSE
  13. void bdc_dbg_bd_list(struct bdc *, struct bdc_ep*);
  14. void bdc_dbg_srr(struct bdc *, u32);
  15. void bdc_dbg_regs(struct bdc *);
  16. void bdc_dump_epsts(struct bdc *);
  17. #else
  18. static inline void bdc_dbg_regs(struct bdc *bdc)
  19. { }
  20. static inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num)
  21. { }
  22. static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep)
  23. { }
  24. static inline void bdc_dump_epsts(struct bdc *bdc)
  25. { }
  26. #endif /* CONFIG_USB_GADGET_VERBOSE */
  27. #endif /* __LINUX_BDC_DBG_H__ */