summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt.h
blob: 76a1acc346ef4cedf1810970091bd4a6a9b1617c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * cxd2880_dvbt.h
 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
 * DVB-T related definitions
 *
 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
 */

#ifndef CXD2880_DVBT_H
#define CXD2880_DVBT_H

#include "cxd2880_common.h"

enum cxd2880_dvbt_constellation {
	CXD2880_DVBT_CONSTELLATION_QPSK,
	CXD2880_DVBT_CONSTELLATION_16QAM,
	CXD2880_DVBT_CONSTELLATION_64QAM,
	CXD2880_DVBT_CONSTELLATION_RESERVED_3
};

enum cxd2880_dvbt_hierarchy {
	CXD2880_DVBT_HIERARCHY_NON,
	CXD2880_DVBT_HIERARCHY_1,
	CXD2880_DVBT_HIERARCHY_2,
	CXD2880_DVBT_HIERARCHY_4
};

enum cxd2880_dvbt_coderate {
	CXD2880_DVBT_CODERATE_1_2,
	CXD2880_DVBT_CODERATE_2_3,
	CXD2880_DVBT_CODERATE_3_4,
	CXD2880_DVBT_CODERATE_5_6,
	CXD2880_DVBT_CODERATE_7_8,
	CXD2880_DVBT_CODERATE_RESERVED_5,
	CXD2880_DVBT_CODERATE_RESERVED_6,
	CXD2880_DVBT_CODERATE_RESERVED_7
};

enum cxd2880_dvbt_guard {
	CXD2880_DVBT_GUARD_1_32,
	CXD2880_DVBT_GUARD_1_16,
	CXD2880_DVBT_GUARD_1_8,
	CXD2880_DVBT_GUARD_1_4
};

enum cxd2880_dvbt_mode {
	CXD2880_DVBT_MODE_2K,
	CXD2880_DVBT_MODE_8K,
	CXD2880_DVBT_MODE_RESERVED_2,
	CXD2880_DVBT_MODE_RESERVED_3
};

enum cxd2880_dvbt_profile {
	CXD2880_DVBT_PROFILE_HP = 0,
	CXD2880_DVBT_PROFILE_LP
};

struct cxd2880_dvbt_tpsinfo {
	enum cxd2880_dvbt_constellation constellation;
	enum cxd2880_dvbt_hierarchy hierarchy;
	enum cxd2880_dvbt_coderate rate_hp;
	enum cxd2880_dvbt_coderate rate_lp;
	enum cxd2880_dvbt_guard guard;
	enum cxd2880_dvbt_mode mode;
	u8 fnum;
	u8 length_indicator;
	u16 cell_id;
	u8 cell_id_ok;
	u8 reserved_even;
	u8 reserved_odd;
};

#endif