rtl2830_priv.h 829 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_PRIV_H
  8. #define RTL2830_PRIV_H
  9. #include <media/dvb_frontend.h>
  10. #include <media/dvb_math.h>
  11. #include "rtl2830.h"
  12. #include <linux/i2c-mux.h>
  13. #include <linux/math64.h>
  14. #include <linux/regmap.h>
  15. #include <linux/bitops.h>
  16. struct rtl2830_dev {
  17. struct rtl2830_platform_data *pdata;
  18. struct i2c_client *client;
  19. struct regmap *regmap;
  20. struct i2c_mux_core *muxc;
  21. struct dvb_frontend fe;
  22. bool sleeping;
  23. unsigned long filters;
  24. enum fe_status fe_status;
  25. u64 post_bit_error_prev; /* for old DVBv3 read_ber() calculation */
  26. u64 post_bit_error;
  27. u64 post_bit_count;
  28. };
  29. struct rtl2830_reg_val_mask {
  30. u16 reg;
  31. u8 val;
  32. u8 mask;
  33. };
  34. #endif /* RTL2830_PRIV_H */