drxk.h 848 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _DRXK_H_
  2. #define _DRXK_H_
  3. #include <linux/types.h>
  4. #include <linux/i2c.h>
  5. /**
  6. * struct drxk_config - Configure the initial parameters for DRX-K
  7. *
  8. * adr: I2C Address of the DRX-K
  9. * single_master: Device is on the single master mode
  10. * no_i2c_bridge: Don't switch the I2C bridge to talk with tuner
  11. * antenna_uses_gpio: Use GPIO to control the antenna
  12. * antenna_dvbc: GPIO for changing antenna to DVB-C
  13. * antenna_dvbt: GPIO for changing antenna to DVB-T
  14. * microcode_name: Name of the firmware file with the microcode
  15. */
  16. struct drxk_config {
  17. u8 adr;
  18. bool single_master;
  19. bool no_i2c_bridge;
  20. bool antenna_uses_gpio;
  21. u16 antenna_dvbc, antenna_dvbt;
  22. const char *microcode_name;
  23. };
  24. extern struct dvb_frontend *drxk_attach(const struct drxk_config *config,
  25. struct i2c_adapter *i2c,
  26. struct dvb_frontend **fe_t);
  27. #endif