Lines Matching +full:- +full:556
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 Copyright (C) 2006-2008, Uri Shkolnik, Anatoly Greenblat
25 #include <media/media-device.h>
33 * Those should match what's used at smscoreapi.c and sms-cards.c
46 #define SMS_FW_DVBT_HCW_55XXX "sms1xxx-hcw-55xxx-dvbt-02.fw"
47 #define SMS_FW_ISDBT_HCW_55XXX "sms1xxx-hcw-55xxx-isdbt-02.fw"
52 #define SMS_FW_DVBT_NOVA_A "sms1xxx-nova-a-dvbt-01.fw"
53 #define SMS_FW_DVBT_NOVA_B "sms1xxx-nova-b-dvbt-01.fw"
54 #define SMS_FW_DVBT_STELLAR "sms1xxx-stellar-dvbt-01.fw"
63 ((((uintptr_t)(addr)) + (SMS_DMA_ALIGNMENT-1)) & ~(SMS_DMA_ALIGNMENT-1))
71 SMS_UNKNOWN_TYPE = -1,
112 /* private members, read-only for clients */
178 /* host <--> device messages */
204 * Used by smsdvb-sysfs to know the root node for debugfs
300 MSG_SMS_UPDATE_MEM_REQ = 556,
571 (ptr)->msg_type = type; \
572 (ptr)->msg_src_id = src; \
573 (ptr)->msg_dst_id = dst; \
574 (ptr)->msg_length = len; \
575 (ptr)->msg_flags = 0; \
592 DEVICE_MODE_NONE = -1,
640 u16 chip_model; /* e.g. 0x1102 for SMS-1102 "Nova" */
641 u8 step; /* 0 - step A */
642 u8 metal_fix; /* 0 - Metal 0 */
677 u32 is_rf_locked; /* 0 - not locked, 1 - locked */
678 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
679 u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
683 u32 ber; /* Post Viterbi ber [1E-5] */
686 0xFFFFFFFF indicate N/A, valid only for DVB-T/H */
687 u32 MFER; /* DVB-H frame error rate in percentage,
688 0xFFFFFFFF indicate N/A, valid only for DVB-H */
695 u32 bandwidth; /* bandwidth in MHz, valid only for DVB-T/H */
696 u32 transmission_mode; /* Transmission Mode, for DAB modes 1-4,
697 for DVB-T/H FFT mode carriers in Kilos */
699 valid only for DVB-T/H */
701 SMSHOSTLIB_GUARD_INTERVALS_ET, valid only for DVB-T/H */
703 valid only for DVB-T/H */
705 SMSHOSTLIB_CODE_RATE_ET, valid only for DVB-T/H */
707 valid only for DVB-T/H */
709 SMSHOSTLIB_CONSTELLATION_ET, valid only for DVB-T/H */
711 /* Burst parameters, valid only for DVB-H */
713 valid only for DVB-H */
715 valid only for DVB-H */
717 valid only for DVB-H */
719 as calculated by demodulator, valid only for DVB-H */
721 valid only for DVB-H */
723 valid only for DVB-H */
725 valid only for DVB-H */
727 transport-stream packets */
728 u32 total_ts_packets; /* Total number of transport-stream packets */
742 /* DAB/T-DMB */
743 u32 pre_ber; /* DAB/T-DMB only: Pre Viterbi ber [1E-5] */
745 /* DVB-H TPS parameters */
748 u32 dvbh_srv_ind_hp; /* DVB-H service indication info, bit 1 -
749 Time Slicing indicator, bit 0 - MPE-FEC indicator */
750 u32 dvbh_srv_ind_lp; /* DVB-H service indication info, bit 1 -
751 Time Slicing indicator, bit 0 - MPE-FEC indicator */
753 u32 num_mpe_received; /* DVB-H, Num MPE section received */
770 /* Per-layer information */
775 u32 ber; /* Post Viterbi ber [1E-5], 0xFFFFFFFF indicate N/A */
778 u32 pre_ber; /* Pre Viterbi ber [1E-5], 0xFFFFFFFF indicate N/A */
780 u32 error_ts_packets; /* Number of erroneous transport-stream packets */
781 u32 total_ts_packets; /* Total number of transport-stream packets */
802 u32 is_rf_locked; /* 0 - not locked, 1 - locked */
803 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
804 u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
815 u32 transmission_mode; /* ISDB-T transmission mode */
816 u32 modem_state; /* 0 - Acquisition, 1 - Locked */
818 u32 system_type; /* ISDB-T system type (ISDB-T / ISDB-Tsb) */
819 u32 partial_reception; /* TRUE - partial reception, FALSE otherwise */
820 u32 num_of_layers; /* Number of ISDB-T layers in the network */
822 /* Per-layer information */
825 /* Per-layer statistics, see sms_isdbt_layer_stats */
844 u32 is_rf_locked; /* 0 - not locked, 1 - locked */
845 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
846 u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
857 u32 transmission_mode; /* ISDB-T transmission mode */
858 u32 modem_state; /* 0 - Acquisition, 1 - Locked */
860 u32 system_type; /* ISDB-T system type (ISDB-T / ISDB-Tsb) */
861 u32 partial_reception; /* TRUE - partial reception, FALSE otherwise */
862 u32 num_of_layers; /* Number of ISDB-T layers in the network */
864 u32 segment_number; /* Segment number for ISDB-Tsb */
865 u32 tune_bw; /* Tuned bandwidth - BW_ISDBT_1SEG / BW_ISDBT_3SEG */
867 /* Per-layer information */
870 /* Per-layer statistics, see sms_isdbt_layer_stats */
873 u32 reserved1; /* Was sms_to_host_tx_errors - obsolete . */
882 u32 fw_errors_counter; /* Application errors - should be always zero */
883 u8 FwErrorsHistoryArr[8]; /* Last FW errors IDs - first is most recent, last is oldest */
912 #define CORRECT_STAT_RSSI(_stat) ((_stat).RSSI *= -1)
913 #define CORRECT_STAT_BANDWIDTH(_stat) (_stat.bandwidth = 8 - _stat.bandwidth)
935 /* DVB-H TPS parameters */
938 u32 dvbh_srv_ind_hp; /* DVB-H service indication info, bit 1 -
939 Time Slicing indicator, bit 0 - MPE-FEC indicator */
940 u32 dvbh_srv_ind_lp; /* DVB-H service indication info, bit 1 -
941 Time Slicing indicator, bit 0 - MPE-FEC indicator */
942 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
946 u32 is_rf_locked; /* 0 - not locked, 1 - locked */
947 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
948 u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
952 u32 ber; /* Post Viterbi ber [1E-5] */
957 u32 MFER; /* DVB-H frame error rate in percentage,
958 0xFFFFFFFF indicate N/A, valid only for DVB-H */
963 transport-stream packets */
964 u32 total_ts_packets; /* Total number of transport-stream packets */
972 u32 is_rf_locked; /* 0 - not locked, 1 - locked */
973 u32 is_demod_locked; /* 0 - not locked, 1 - locked */
974 u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
978 u32 ber; /* Post Viterbi ber [1E-5] */
983 u32 MFER; /* DVB-H frame error rate in percentage,
984 0xFFFFFFFF indicate N/A, valid only for DVB-H */
989 transport-stream packets */
990 u32 total_ts_packets; /* Total number of transport-stream packets */
1011 /* Burst parameters, valid only for DVB-H */
1024 /* Burst parameters, valid only for DVB-H */
1142 /* ------------------------------------------------------------------------ */