27 #ifndef STV0367_PRIV_H
28 #define STV0367_PRIV_H
42 #define ABS(X) ((X) < 0 ? (-1 * (X)) : (X))
43 #define MAX(X, Y) ((X) >= (Y) ? (X) : (Y))
44 #define MIN(X, Y) ((X) <= (Y) ? (X) : (Y))
45 #define INRANGE(X, Y, Z) \
46 ((((X) <= (Y)) && ((Y) <= (Z))) || \
47 (((Z) <= (Y)) && ((Y) <= (X))) ? 1 : 0)
50 #define MAKEWORD(X, Y) (((X) << 8) + (Y))
53 #define LSB(X) (((X) & 0xff))
54 #define MSB(Y) (((Y) >> 8) & 0xff)
55 #define MMSB(Y)(((Y) >> 16) & 0xff)
95 enum FE_TER_Rate_TPS {
110 enum FE_TER_Hierarchy_Alpha {
111 FE_TER_HIER_ALPHA_NONE,
125 enum fe_stv0367_ter_spec {
126 FE_TER_INVERSION_NONE = 0,
127 FE_TER_INVERSION = 1,
128 FE_TER_INVERSION_AUTO = 2,
129 FE_TER_INVERSION_UNK = 4
141 enum FE_TER_FECRate {
142 FE_TER_FEC_NONE = 0x00,
143 FE_TER_FEC_ALL = 0xFF,
145 FE_TER_FEC_2_3 = (1 << 1),
146 FE_TER_FEC_3_4 = (1 << 2),
147 FE_TER_FEC_4_5 = (1 << 3),
148 FE_TER_FEC_5_6 = (1 << 4),
149 FE_TER_FEC_6_7 = (1 << 5),
150 FE_TER_FEC_7_8 = (1 << 6),
151 FE_TER_FEC_8_9 = (1 << 7)
182 FE_CAB_FEC_B = (1 << 1),
183 FE_CAB_FEC_C = (1 << 2)