cxd2880_dvbt.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * cxd2880_dvbt.h
  4. * Sony CXD2880 DVB-T2/T tuner + demodulator driver
  5. * DVB-T related definitions
  6. *
  7. * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
  8. */
  9. #ifndef CXD2880_DVBT_H
  10. #define CXD2880_DVBT_H
  11. #include "cxd2880_common.h"
  12. enum cxd2880_dvbt_constellation {
  13. CXD2880_DVBT_CONSTELLATION_QPSK,
  14. CXD2880_DVBT_CONSTELLATION_16QAM,
  15. CXD2880_DVBT_CONSTELLATION_64QAM,
  16. CXD2880_DVBT_CONSTELLATION_RESERVED_3
  17. };
  18. enum cxd2880_dvbt_hierarchy {
  19. CXD2880_DVBT_HIERARCHY_NON,
  20. CXD2880_DVBT_HIERARCHY_1,
  21. CXD2880_DVBT_HIERARCHY_2,
  22. CXD2880_DVBT_HIERARCHY_4
  23. };
  24. enum cxd2880_dvbt_coderate {
  25. CXD2880_DVBT_CODERATE_1_2,
  26. CXD2880_DVBT_CODERATE_2_3,
  27. CXD2880_DVBT_CODERATE_3_4,
  28. CXD2880_DVBT_CODERATE_5_6,
  29. CXD2880_DVBT_CODERATE_7_8,
  30. CXD2880_DVBT_CODERATE_RESERVED_5,
  31. CXD2880_DVBT_CODERATE_RESERVED_6,
  32. CXD2880_DVBT_CODERATE_RESERVED_7
  33. };
  34. enum cxd2880_dvbt_guard {
  35. CXD2880_DVBT_GUARD_1_32,
  36. CXD2880_DVBT_GUARD_1_16,
  37. CXD2880_DVBT_GUARD_1_8,
  38. CXD2880_DVBT_GUARD_1_4
  39. };
  40. enum cxd2880_dvbt_mode {
  41. CXD2880_DVBT_MODE_2K,
  42. CXD2880_DVBT_MODE_8K,
  43. CXD2880_DVBT_MODE_RESERVED_2,
  44. CXD2880_DVBT_MODE_RESERVED_3
  45. };
  46. enum cxd2880_dvbt_profile {
  47. CXD2880_DVBT_PROFILE_HP = 0,
  48. CXD2880_DVBT_PROFILE_LP
  49. };
  50. struct cxd2880_dvbt_tpsinfo {
  51. enum cxd2880_dvbt_constellation constellation;
  52. enum cxd2880_dvbt_hierarchy hierarchy;
  53. enum cxd2880_dvbt_coderate rate_hp;
  54. enum cxd2880_dvbt_coderate rate_lp;
  55. enum cxd2880_dvbt_guard guard;
  56. enum cxd2880_dvbt_mode mode;
  57. u8 fnum;
  58. u8 length_indicator;
  59. u16 cell_id;
  60. u8 cell_id_ok;
  61. u8 reserved_even;
  62. u8 reserved_odd;
  63. };
  64. #endif