]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.h
This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator. It includes the...
[mirror_ubuntu-artful-kernel.git] / drivers / media / dvb-frontends / cxd2880 / cxd2880_tnrdmd_dvbt_mon.h
1 /*
2 * cxd2880_tnrdmd_dvbt_mon.h
3 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
4 * DVB-T monitor interface
5 *
6 * Copyright (C) 2016, 2017 Sony Semiconductor Solutions Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; version 2 of the License.
11 *
12 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
15 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
16 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, see <http://www.gnu.org/licenses/>.
25 */
26
27 #ifndef CXD2880_TNRDMD_DVBT_MON_H
28 #define CXD2880_TNRDMD_DVBT_MON_H
29
30 #include "cxd2880_tnrdmd.h"
31 #include "cxd2880_dvbt.h"
32
33 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_sync_stat(struct cxd2880_tnrdmd
34 *tnr_dmd, u8 *sync_stat,
35 u8 *ts_lock_stat,
36 u8 *unlock_detected);
37
38 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_sync_stat_sub(struct cxd2880_tnrdmd
39 *tnr_dmd, u8 *sync_stat,
40 u8 *unlock_detected);
41
42 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_mode_guard(struct cxd2880_tnrdmd
43 *tnr_dmd,
44 enum cxd2880_dvbt_mode
45 *mode,
46 enum cxd2880_dvbt_guard
47 *guard);
48
49 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_carrier_offset(struct cxd2880_tnrdmd
50 *tnr_dmd, int *offset);
51
52 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_carrier_offset_sub(struct
53 cxd2880_tnrdmd
54 *tnr_dmd,
55 int *offset);
56
57 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_pre_viterbiber(struct cxd2880_tnrdmd
58 *tnr_dmd, u32 *ber);
59
60 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_pre_rsber(struct cxd2880_tnrdmd
61 *tnr_dmd, u32 *ber);
62
63 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_tps_info(struct cxd2880_tnrdmd
64 *tnr_dmd,
65 struct cxd2880_dvbt_tpsinfo
66 *info);
67
68 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_packet_error_number(struct
69 cxd2880_tnrdmd
70 *tnr_dmd,
71 u32 *pen);
72
73 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_spectrum_sense(struct cxd2880_tnrdmd
74 *tnr_dmd,
75 enum
76 cxd2880_tnrdmd_spectrum_sense
77 *sense);
78
79 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_snr(struct cxd2880_tnrdmd *tnr_dmd,
80 int *snr);
81
82 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_snr_diver(struct cxd2880_tnrdmd
83 *tnr_dmd, int *snr,
84 int *snr_main, int *snr_sub);
85
86 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_sampling_offset(struct cxd2880_tnrdmd
87 *tnr_dmd, int *ppm);
88
89 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub(struct
90 cxd2880_tnrdmd
91 *tnr_dmd,
92 int *ppm);
93
94 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_quality(struct cxd2880_tnrdmd *tnr_dmd,
95 u8 *quality);
96
97 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_per(struct cxd2880_tnrdmd *tnr_dmd,
98 u32 *per);
99
100 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_ssi(struct cxd2880_tnrdmd *tnr_dmd,
101 u8 *ssi);
102
103 enum cxd2880_ret cxd2880_tnrdmd_dvbt_mon_ssi_sub(struct cxd2880_tnrdmd *tnr_dmd,
104 u8 *ssi);
105
106 #endif