1 /* SPDX-License-Identifier: GPL-2.0 */
3 * cxd2880_tnrdmd_dvbt2_mon.h
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5 * DVB-T2 monitor interface
7 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
10 #ifndef CXD2880_TNRDMD_DVBT2_MON_H
11 #define CXD2880_TNRDMD_DVBT2_MON_H
13 #include "cxd2880_tnrdmd.h"
14 #include "cxd2880_dvbt2.h"
16 int cxd2880_tnrdmd_dvbt2_mon_sync_stat(struct cxd2880_tnrdmd
17 *tnr_dmd
, u8
*sync_stat
,
21 int cxd2880_tnrdmd_dvbt2_mon_sync_stat_sub(struct cxd2880_tnrdmd
26 int cxd2880_tnrdmd_dvbt2_mon_carrier_offset(struct cxd2880_tnrdmd
27 *tnr_dmd
, int *offset
);
29 int cxd2880_tnrdmd_dvbt2_mon_carrier_offset_sub(struct
34 int cxd2880_tnrdmd_dvbt2_mon_l1_pre(struct cxd2880_tnrdmd
*tnr_dmd
,
35 struct cxd2880_dvbt2_l1pre
38 int cxd2880_tnrdmd_dvbt2_mon_version(struct cxd2880_tnrdmd
40 enum cxd2880_dvbt2_version
43 int cxd2880_tnrdmd_dvbt2_mon_ofdm(struct cxd2880_tnrdmd
*tnr_dmd
,
44 struct cxd2880_dvbt2_ofdm
*ofdm
);
46 int cxd2880_tnrdmd_dvbt2_mon_data_plps(struct cxd2880_tnrdmd
47 *tnr_dmd
, u8
*plp_ids
,
50 int cxd2880_tnrdmd_dvbt2_mon_active_plp(struct cxd2880_tnrdmd
53 cxd2880_dvbt2_plp_btype
55 struct cxd2880_dvbt2_plp
58 int cxd2880_tnrdmd_dvbt2_mon_data_plp_error(struct cxd2880_tnrdmd
62 int cxd2880_tnrdmd_dvbt2_mon_l1_change(struct cxd2880_tnrdmd
63 *tnr_dmd
, u8
*l1_change
);
65 int cxd2880_tnrdmd_dvbt2_mon_l1_post(struct cxd2880_tnrdmd
67 struct cxd2880_dvbt2_l1post
70 int cxd2880_tnrdmd_dvbt2_mon_bbheader(struct cxd2880_tnrdmd
72 enum cxd2880_dvbt2_plp_btype
74 struct cxd2880_dvbt2_bbheader
77 int cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate(struct cxd2880_tnrdmd
80 cxd2880_dvbt2_plp_btype
84 int cxd2880_tnrdmd_dvbt2_mon_spectrum_sense(struct cxd2880_tnrdmd
87 cxd2880_tnrdmd_spectrum_sense
90 int cxd2880_tnrdmd_dvbt2_mon_snr(struct cxd2880_tnrdmd
*tnr_dmd
,
93 int cxd2880_tnrdmd_dvbt2_mon_snr_diver(struct cxd2880_tnrdmd
98 int cxd2880_tnrdmd_dvbt2_mon_packet_error_number(struct
103 int cxd2880_tnrdmd_dvbt2_mon_sampling_offset(struct cxd2880_tnrdmd
106 int cxd2880_tnrdmd_dvbt2_mon_sampling_offset_sub(struct
111 int cxd2880_tnrdmd_dvbt2_mon_qam(struct cxd2880_tnrdmd
*tnr_dmd
,
112 enum cxd2880_dvbt2_plp_btype type
,
113 enum cxd2880_dvbt2_plp_constell
116 int cxd2880_tnrdmd_dvbt2_mon_code_rate(struct cxd2880_tnrdmd
118 enum cxd2880_dvbt2_plp_btype
121 cxd2880_dvbt2_plp_code_rate
124 int cxd2880_tnrdmd_dvbt2_mon_profile(struct cxd2880_tnrdmd
126 enum cxd2880_dvbt2_profile
129 int cxd2880_tnrdmd_dvbt2_mon_ssi(struct cxd2880_tnrdmd
*tnr_dmd
,
132 int cxd2880_tnrdmd_dvbt2_mon_ssi_sub(struct cxd2880_tnrdmd