/* SPDX-License-Identifier: GPL-2.0-only */ /* * include/media/si476x-platform.h -- Definitions of the data formats * returned by debugfs hooks * * Copyright (C) 2013 Andrey Smirnov * * Author: Andrey Smirnov <[email protected]> */ #ifndef __SI476X_REPORTS_H__ #define __SI476X_REPORTS_H__ /** * struct si476x_rsq_status - structure containing received signal * quality * @multhint: Multipath Detect High. * true - Indicatedes that the value is below * FM_RSQ_MULTIPATH_HIGH_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_MULTIPATH_HIGH_THRESHOLD * @multlint: Multipath Detect Low. * true - Indicatedes that the value is below * FM_RSQ_MULTIPATH_LOW_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_MULTIPATH_LOW_THRESHOLD * @snrhint: SNR Detect High. * true - Indicatedes that the value is below * FM_RSQ_SNR_HIGH_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_SNR_HIGH_THRESHOLD * @snrlint: SNR Detect Low. * true - Indicatedes that the value is below * FM_RSQ_SNR_LOW_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_SNR_LOW_THRESHOLD * @rssihint: RSSI Detect High. * true - Indicatedes that the value is below * FM_RSQ_RSSI_HIGH_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_RSSI_HIGH_THRESHOLD * @rssilint: RSSI Detect Low. * true - Indicatedes that the value is below * FM_RSQ_RSSI_LOW_THRESHOLD * false - Indicatedes that the value is above * FM_RSQ_RSSI_LOW_THRESHOLD * @bltf: Band Limit. * Set if seek command hits the band limit or wrapped to * the original frequency. * @snr_ready: SNR measurement in progress. * @rssiready: RSSI measurement in progress. * @afcrl: Set if FREQOFF >= MAX_TUNE_ERROR * @valid: Set if the channel is valid * rssi < FM_VALID_RSSI_THRESHOLD * snr < FM_VALID_SNR_THRESHOLD * tune_error < FM_VALID_MAX_TUNE_ERROR * @readfreq: Current tuned frequency. * @freqoff: Signed frequency offset. * @rssi: Received Signal Strength Indicator(dBuV). * @snr: RF SNR Indicator(dB). * @lassi: * @hassi: Low/High side Adjacent(100 kHz) Channel Strength Indicator * @mult: Multipath indicator * @dev: Who knows? But values may vary. * @readantcap: Antenna tuning capacity value. * @assi: Adjacent Channel(+/- 200kHz) Strength Indicator * @usn: Ultrasonic Noise Inticator in -DBFS */ struct si476x_rsq_status_report { … } __packed; /** * si476x_acf_status_report - ACF report results * * @blend_int: If set, indicates that stereo separation has crossed * below the blend threshold as set by FM_ACF_BLEND_THRESHOLD * @hblend_int: If set, indicates that HiBlend cutoff frequency is * lower than threshold as set by FM_ACF_HBLEND_THRESHOLD * @hicut_int: If set, indicates that HiCut cutoff frequency is lower * than the threshold set by ACF_ */ struct si476x_acf_status_report { … } __packed; enum si476x_fmagc { … }; struct si476x_agc_status_report { … } __packed; struct si476x_rds_blockcount_report { … } __packed; #endif /* __SI476X_REPORTS_H__ */