bdc_dbg.h 984 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #include "bdc.h"
  17. #ifdef CONFIG_USB_GADGET_VERBOSE
  18. void bdc_dbg_bd_list(struct bdc *, struct bdc_ep*);
  19. void bdc_dbg_srr(struct bdc *, u32);
  20. void bdc_dbg_regs(struct bdc *);
  21. void bdc_dump_epsts(struct bdc *);
  22. #else
  23. static inline void bdc_dbg_regs(struct bdc *bdc)
  24. { }
  25. static inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num)
  26. { }
  27. static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep)
  28. { }
  29. static inline void bdc_dump_epsts(struct bdc *bdc)
  30. { }
  31. #endif /* CONFIG_USB_GADGET_VERBOSE */
  32. #endif /* __LINUX_BDC_DBG_H__ */