flexcop.h 902 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
  4. * flexcop.h - private header file for all flexcop-chip-source files
  5. * see flexcop.c for copyright information
  6. */
  7. #ifndef __FLEXCOP_H__
  8. #define __FLEXCOP_H__
  9. #define FC_LOG_PREFIX "b2c2-flexcop"
  10. #include "flexcop-common.h"
  11. extern int b2c2_flexcop_debug;
  12. /* debug */
  13. #ifdef CONFIG_DVB_B2C2_FLEXCOP_DEBUG
  14. #define dprintk(level,args...) \
  15. do { if ((b2c2_flexcop_debug & level)) printk(args); } while (0)
  16. #else
  17. #define dprintk(level,args...)
  18. #endif
  19. #define deb_info(args...) dprintk(0x01, args)
  20. #define deb_tuner(args...) dprintk(0x02, args)
  21. #define deb_i2c(args...) dprintk(0x04, args)
  22. #define deb_ts(args...) dprintk(0x08, args)
  23. #define deb_sram(args...) dprintk(0x10, args)
  24. #define deb_rdump(args...) dprintk(0x20, args)
  25. #define deb_i2c_dump(args...) dprintk(0x40, args)
  26. #endif