tuner-xc2028.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. struct xc2028_ctrl *ctrl;
  22. int (*callback) (void *dev, int command, int arg);
  23. };
  24. /* xc2028 commands for callback */
  25. #define XC2028_TUNER_RESET 0
  26. #define XC2028_RESET_CLK 1
  27. #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE))
  28. void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg);
  29. #else
  30. void *xc2028_attach(struct dvb_frontend *fe,
  31. struct xc2028_config *cfg)
  32. {
  33. printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
  34. __FUNCTION__);
  35. return -EINVAL;
  36. }
  37. #endif
  38. #endif /* __TUNER_XC2028_H__ */