libdvbv5: add the private structure to the tree
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 30 Aug 2014 20:29:06 +0000 (17:29 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 30 Aug 2014 20:29:06 +0000 (17:29 -0300)
Changeset b8c9e78 forgot to include dvb-fe-priv.h.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/dvb-fe-priv.h [new file with mode: 0644]

diff --git a/lib/libdvbv5/dvb-fe-priv.h b/lib/libdvbv5/dvb-fe-priv.h
new file mode 100644 (file)
index 0000000..9194431
--- /dev/null
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2011-2014 - Mauro Carvalho Chehab
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ *
+ */
+
+#ifndef __DVB_FE_PRIV_H
+#define __DVB_FE_PRIV_H
+
+#include <libdvbv5/dvb-fe.h>
+
+enum dvbv3_emulation_type {
+       DVBV3_UNKNOWN = -1,
+       DVBV3_QPSK,
+       DVBV3_QAM,
+       DVBV3_OFDM,
+       DVBV3_ATSC,
+};
+
+struct dvb_v5_counters {
+       uint64_t                        pre_bit_count;
+       uint64_t                        pre_bit_error;
+       uint64_t                        post_bit_count;
+       uint64_t                        post_bit_error;
+       uint64_t                        block_count;
+       uint64_t                        block_error;
+};
+
+struct dvb_v5_stats {
+       struct dtv_property             prop[DTV_NUM_STATS_PROPS];
+
+       struct dvb_v5_counters          prev[MAX_DTV_STATS];
+       struct dvb_v5_counters          cur[MAX_DTV_STATS];
+
+       int                             has_post_ber[MAX_DTV_STATS];
+       int                             has_pre_ber[MAX_DTV_STATS];
+       int                             has_per[MAX_DTV_STATS];
+
+       fe_status_t prev_status;
+
+};
+
+struct dvb_v5_fe_parms_priv {
+       /* dvbv_v4_fe_parms should be the first element on this struct */
+       struct dvb_v5_fe_parms          p;
+
+       int                             fd;
+       char                            *fname;
+       int                             n_props;
+       struct dtv_property             dvb_prop[DTV_MAX_COMMAND];
+       struct dvb_v5_stats             stats;
+
+       /* Satellite specific stuff */
+       const struct dvb_sat_lnb        *lnb;
+       int                             high_band;
+       unsigned                        freq_offset;
+};
+
+#endif
\ No newline at end of file