tuner-xc2028.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* tuner-xc2028
  2. *
  3. * Copyright (c) 2007 Mauro Carvalho Chehab (mchehab@infradead.org)
  4. * This code is placed under the terms of the GNU General Public License v2
  5. */
  6. #ifndef __TUNER_XC2028_H__
  7. #define __TUNER_XC2028_H__
  8. #include "dvb_frontend.h"
  9. #define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw"
  10. struct xc2028_ctrl {
  11. char *fname;
  12. int max_len;
  13. unsigned int scode_table;
  14. unsigned int mts :1;
  15. unsigned int d2633:1;
  16. };
  17. struct xc2028_config {
  18. struct i2c_adapter *i2c_adap;
  19. u8 i2c_addr;
  20. void *video_dev;
  21. int (*callback) (void *dev, int command, int arg);
  22. };
  23. /* xc2028 commands for callback */
  24. #define XC2028_TUNER_RESET 0
  25. #define XC2028_RESET_CLK 1
  26. #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE))
  27. void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg);
  28. #else
  29. void *xc2028_attach(struct dvb_frontend *fe,
  30. struct xc2028_config *cfg)
  31. {
  32. printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
  33. __FUNCTION__);
  34. return -EINVAL;
  35. }
  36. #endif
  37. #endif /* __TUNER_XC2028_H__ */