rtl2830.h 995 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Realtek RTL2830 DVB-T demodulator driver
  4. *
  5. * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
  6. */
  7. #ifndef RTL2830_H
  8. #define RTL2830_H
  9. #include <linux/dvb/frontend.h>
  10. /**
  11. * struct rtl2830_platform_data - Platform data for the rtl2830 driver
  12. * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000).
  13. * @spec_inv: Spectrum inversion.
  14. * @vtop: AGC take-over point.
  15. * @krf: AGC ratio.
  16. * @agc_targ_val: AGC.
  17. * @get_dvb_frontend: Get DVB frontend.
  18. * @get_i2c_adapter: Get I2C adapter.
  19. * @pid_filter: Set PID to PID filter.
  20. * @pid_filter_ctrl: Control PID filter.
  21. */
  22. struct rtl2830_platform_data {
  23. u32 clk;
  24. bool spec_inv;
  25. u8 vtop;
  26. u8 krf;
  27. u8 agc_targ_val;
  28. struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
  29. struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
  30. int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
  31. int (*pid_filter_ctrl)(struct dvb_frontend *, int);
  32. };
  33. #endif /* RTL2830_H */