2 * cxd2880_tnrdmd_dvbt_mon.h
3 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
4 * DVB-T monitor interface
6 * Copyright (C) 2016, 2017 Sony Semiconductor Solutions Corporation
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.
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.
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/>.
27 #ifndef CXD2880_TNRDMD_DVBT_MON_H
28 #define CXD2880_TNRDMD_DVBT_MON_H
30 #include "cxd2880_tnrdmd.h"
31 #include "cxd2880_dvbt.h"
33 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_sync_stat(struct cxd2880_tnrdmd
34 *tnr_dmd
, u8
*sync_stat
,
38 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_sync_stat_sub(struct cxd2880_tnrdmd
39 *tnr_dmd
, u8
*sync_stat
,
42 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_mode_guard(struct cxd2880_tnrdmd
44 enum cxd2880_dvbt_mode
46 enum cxd2880_dvbt_guard
49 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_carrier_offset(struct cxd2880_tnrdmd
50 *tnr_dmd
, int *offset
);
52 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_carrier_offset_sub(struct
57 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_pre_viterbiber(struct cxd2880_tnrdmd
60 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_pre_rsber(struct cxd2880_tnrdmd
63 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_tps_info(struct cxd2880_tnrdmd
65 struct cxd2880_dvbt_tpsinfo
68 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_packet_error_number(struct
73 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_spectrum_sense(struct cxd2880_tnrdmd
76 cxd2880_tnrdmd_spectrum_sense
79 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_snr(struct cxd2880_tnrdmd
*tnr_dmd
,
82 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_snr_diver(struct cxd2880_tnrdmd
84 int *snr_main
, int *snr_sub
);
86 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_sampling_offset(struct cxd2880_tnrdmd
89 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub(struct
94 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_quality(struct cxd2880_tnrdmd
*tnr_dmd
,
97 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_per(struct cxd2880_tnrdmd
*tnr_dmd
,
100 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_ssi(struct cxd2880_tnrdmd
*tnr_dmd
,
103 enum cxd2880_ret
cxd2880_tnrdmd_dvbt_mon_ssi_sub(struct cxd2880_tnrdmd
*tnr_dmd
,