fc0011.h 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef LINUX_FC0011_H_
  2. #define LINUX_FC0011_H_
  3. #include "dvb_frontend.h"
  4. /** struct fc0011_config - fc0011 hardware config
  5. *
  6. * @i2c_address: I2C bus address.
  7. */
  8. struct fc0011_config {
  9. u8 i2c_address;
  10. };
  11. /** enum fc0011_fe_callback_commands - Frontend callbacks
  12. *
  13. * @FC0011_FE_CALLBACK_POWER: Power on tuner hardware.
  14. * @FC0011_FE_CALLBACK_RESET: Request a tuner reset.
  15. */
  16. enum fc0011_fe_callback_commands {
  17. FC0011_FE_CALLBACK_POWER,
  18. FC0011_FE_CALLBACK_RESET,
  19. };
  20. #if defined(CONFIG_MEDIA_TUNER_FC0011) ||\
  21. defined(CONFIG_MEDIA_TUNER_FC0011_MODULE)
  22. struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
  23. struct i2c_adapter *i2c,
  24. const struct fc0011_config *config);
  25. #else
  26. static inline
  27. struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
  28. struct i2c_adapter *i2c,
  29. const struct fc0011_config *config)
  30. {
  31. dev_err(&i2c->dev, "fc0011 driver disabled in Kconfig\n");
  32. return NULL;
  33. }
  34. #endif
  35. #endif /* LINUX_FC0011_H_ */