summaryrefstree
path: root/kernel/drivers/media/tdmb/mtv319/mtv319_ficdec_internal.h
blob: e0c0a77226b69c017304d56584f32062cee8b671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
/*
 *
 * File name: mtv319_ficdec_internal.h
 *
 * Description : RAONTECH TV  FIC Decoder internal header file.
 *
 * Copyright (C) (2013, RAONTECH)
 *
 * 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.
 *
 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
 * kind, whether express or implied; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef __MTV319_FICDEC_INTERNAL_H__
#define __MTV319_FICDEC_INTERNAL_H__

/********************/
/*   Header Files   */
/********************/
#include "mtv319_ficdec.h"


#define RTV_FAIL       (-1)
#define RTV_UNLOCK     (-10)
#define RTV_OK         0
#define RTV_SCAN_OK    1
#define RTV_LOCK_CHECK 10
#define RTV_NOTHING    2


#define FIC_GOING       0
#define FIC_LABEL       0x01
#define FIC_APP_TYPE    0x10
#define FIC_DONE        0x11
#define FIC_CRC_ERR       0x44
#define FIC_SEMI_DONE	0x55




/**************************/
/*     FIC Definition     */
/**************************/
#define MSC_STREAM_AUDIO   0x00
#define MSC_STREAM_DATA    0x01
#define FIDC               0x02
#define MSC_PACKET_DATA    0x03

/* Ensemble, service, service component label number */
#define LABEL_NUM          17

/* maximum service component number in Ensemble channel */
#define MAX_SERV_COMP      64

/* maximum service component number in one service */
#define MAX_SUB_CH_NUM     12

/* maximum service number in one ensemble */
#define MAX_SERVICE_NUM    64

/*maximum number of user applications */
#define USER_APP_NUM       6

/* get FIC Time information complete */
#define ALL_FLAG_MATCH	   0x11

/* get FIC type0 extension10 complete */
#define TIME_FLAG          0x01

/* get FIC type0 extension9 complete */
#define LTO_FLAG           0x10

#define Unspec_DATA        0
#define TMC_Type           1
#define EWS_Type           2
#define ITTS_Type          3
#define Paging_Type        4
#define TDC_Type           5
#define KDMB_Type          24
#define	Em_IP_Type         59
#define	MOT_Type           60
#define	PS_noDSCTy         61

/****************************/
/*    FIC Data structure    */
/****************************/
/*! Date and Time information for Application user */
struct DATE_TIME_INFO {
	U32 MJD;
	U8  LSI;
	U8  conf_ind;
	U8  utc_flag;
	U8  apm_flag;
	U8  time_flag;
	U8  get_flag;
	U16 years;
	U8  months_dec;
	char months_ste[4];
	char weeks[4];
	U8  days;
	U8  hours;
	U8  minutes;
	U8  seconds;
	U16 milliseconds;
	U8  LTO;          /*Local Time Offset */
};

/*! Service Component Descriptor for Application user */
struct SVR_COM_DESP {
	S32 BIT_RATE;
	S32 P_L;
	S32 START_Addr;
	S32 SUB_CH_Size;
	U8  TMID;
	U8  ASCTy;
	U8  SubChid;
	U8  P_S;
	U8  CA_flag;
	U8  DSCTy;
	U8  FIDCid;
	U8  TCid;
	U8  Ext;
	U16 SCid;
	U8  DG_flag;
	U16 Packet_add;
	U16 CA_Org;
	U8  FEC_scheme;
	U8	language;
	U8  charset;
	char Label[LABEL_NUM];
	U32 Sid;
	U8  SCidS;
	U8  Num_User_App;
	U16 User_APP_Type[USER_APP_NUM];
	U8  User_APP_data_length[USER_APP_NUM];
	U8  User_APP_data[USER_APP_NUM][24];
};

/*! Service Descriptor for Application user */
struct SERVICE_DESC {
	/*MCI Information*/
	U32 Sid;
	U8  Country_id;
	U32 Service_ref;
	U8  ECC;
	U8  Local_flag;
	U8  CAID;
	U8  Num_ser_comp;
	U8  P_D;
	/*SI Information */
	U8  label_flag;
	U8  charset;
	char  Label[LABEL_NUM];
	/*Program type */
	U8 int_code;
	U8  ser_comp_num[MAX_SUB_CH_NUM];
};

/*! FIDC Descriptor for Application user */
struct FIDC_EWS_Region {
	U8  Sub_Region[11];
};

struct FIDC_DESC {
	U8  EWS_current_segmemt;
	U8  EWS_total_segmemt;
	U8  EWS_Message_ID;
	S8  EWS_category[4];
	U8  EWS_priority;
	U32 EWS_time_MJD;
	U8  EWS_time_Hours;
	U8  EWS_time_Minutes;
	U8  EWS_region_form;
	U8  EWS_region_num;
	U8  EWS_Rev;
	struct FIDC_EWS_Region  EWS_Region[15];
	U8  EWS_short_sentence[409];
};

/*! Ensemble Descriptor for Application user */
struct ENSEMBLE_DESC {
	/*COMMON Information*/
	U32 svr_num;
	U32 svr_comp_num;
	U32 label_num;
	/*MCI Information*/
	U16 id;
	U8  change_flag;
	U8  Alarm_flag;
	/*SI Information*/
	U8  charset;
	char  Label[LABEL_NUM];
	U32 freq;
	U8  label_flag;

	struct DATE_TIME_INFO date_time_info;
	struct SERVICE_DESC svr_desc[MAX_SERVICE_NUM];
	struct SVR_COM_DESP svr_comp[MAX_SERV_COMP];
	struct FIDC_DESC fidc_desc;

};


/*****************/
/*    EXTERNS    */
/*****************/
extern char *PROGRAM_TYPE_CODE16[32];
extern char *USER_APP_TYPE_CODE[11];
extern char *FIDC_EXT_CODE[3];
extern char *ASCTy[3];
extern char *DSCTy[11];
extern char *ANNOUNCEMENT_TYPE_CODE[12];
extern S32 SUBCH_UEP_TABLE[64][3];
extern char *WEEK_TABLE[8];
extern char *MONTH_TABLE[12];
extern struct ENSEMBLE_DESC ENS_DESC, NEXT_ENS_DESC;
extern struct ENSEMBLE_DESC ENS_DESC1, NEXT_ENS_DESC1;
extern struct ENSEMBLE_DESC ENS_DESC2, NEXT_ENS_DESC2;
extern char *EWS_CATEGORY[67][3];
extern char *EWS_PRIORITY_TABLE[4];
extern char *EWS_REGION_FORM_TABLE[4];
extern char *EWS_OFFICIAL_ORGANIZATION_TABLE[4];



/********************/
/*  FIC Definition  */
/********************/
#define PN_FIB_END_MARKER (0xFF)

/****************************/
/*   FIC Parser function    */
/****************************/
/* S32  FIB_Init_Dec(U8 *); */
S32  MCI_SI_DEC(U8 fic_cmd);
S32  SI_LABEL_DEC1(U8 fic_cmd);
S32  SI_LABEL_DEC2(U8 fic_cmd);
S32  FIDC_DEC(U8 fic_cmd);
S32  CA_DEC(U8 fic_cmd);
S32  RESERVED1(U8 fic_cmd);
S32  RESERVED2(U8 fic_cmd);
S32  RESERVED3(U8 fic_cmd);

/*****************************/
/*  FIG Data Type structure  */
/*****************************/
struct FIG_DATA {
	U8 type;
	U8 length;
	U8 *data;
	U8 byte_cnt;
	U8 bit_cnt;
};

/****************************/
/*  FIG type 0 data field   */
/****************************/
struct FIG_TYPE0 {
	U8 C_N;
	U8 OE;
	U8 P_D;
	U8 Ext;
};

/* Ensemble Information */
struct FIG_TYPE0_Ext0 {
	U16 Eid;
	U8  Country_ID;
	U32 Ensemble_Ref;
	U8  Change_flag;
	U8  AI_flag;
	U8  CIF_Count0;
	U8  CIF_Count1;
	U8  Occurence_Change;
};

/* Structure of the sub-channel organization field */
struct FIG_TYPE0_Ext1 {
	U8  SubChid;
	U32 StartAdd;
	U8  S_L_form;
	U32 Size_Protection;
	U8  Table_sw;
	U8  Table_index;
	U8  Option;
	U8  Protection_Level;
	U32 Sub_ch_size;
};

/* Structure of the service organization field */
struct FIG_TYPE0_Ext2_ser_comp_des {
	U8  TMID;
	U8  ASCTy;
	U8  SubChid;
	U8  P_S;
	U8  CA_flag;
	U8  DSCTy;
	U8  FIDCid;
	U8  TCid;
	U8  Ext;
	U16 SCid;
};

/* Basic service and service component definition structure  */
struct FIG_TYPE0_Ext2 {
	U32 Sid;
	U8  Country_id;
	U32 Service_ref;
	U8  ECC;
	U8  Local_flag;
	U8  CAID;
	U8  Num_ser_comp;
	struct FIG_TYPE0_Ext2_ser_comp_des svr_comp_des[MAX_SERV_COMP];
};

/* Structure of the service component in packet mode */
struct FIG_TYPE0_Ext3 {
	U16 SCid;
	U8  CA_Org_flag;
	U8  DG_flag;
	U8  DSCTy;
	U8  SubChid;
	U16 Packet_add;
	U16 CA_Org;
};

/* Structure of the service component field in Stream mode or FIC */
struct FIG_TYPE0_Ext4 {
	U8  M_F;
	U8  SubChid;
	U8  FIDCid;
	U16 CA_Org;
};

/* Structure of the service component language field */
struct FIG_TYPE0_Ext5 {
	U8  L_S_flag;
	U8  MSC_FIC_flag;
	U8  SubChid;
	U8  FIDCid;
	U16 SCid;
	U8  Language;
};

/* Service Linking Information */
struct FIG_TYPE0_Ext6 {
	U8  id_list_flag;
	U8  LA;
	U8  S_H;
	U8  ILS;
	U32 LSN;
	U8  id_list_usage;
	U8  idLQ;
	U8  Shd;
	U8  Num_ids;
	U16 id[12];
	U8  ECC[12];
	U32 Sid[12];
};

/* Structure of the service component global definition field */
struct FIG_TYPE0_Ext8 {
	U32 Sid;
	U8  Ext_flag;
	U8  SCidS;
	U8  L_S_flag;
	U8  MSC_FIC_flag;
	U8  SubChid;
	U8  FIDCid;
	U32 SCid;
};

/* Structure of Country, LTO International field */
struct FIG_TYPE0_Ext9 {
	U8  Ext_flag;
	U8  LTO_unique;
	U8  Ensemble_LTO;
	U8  Ensemble_ECC;
	U8  Inter_Table_ID;
	U8  NumOfSubField;
	U8  Num_Ser[6];
	U8  LTO[6];
	U8  ECC[6];
	U32 Sid[6][3];
};

/* Structure of the data and time field */
struct FIG_TYPE0_Ext10 {
	U32 MJD;
	U8  LSI;
	U8  Conf_ind;
	U8  UTC_flag;
	U32 UTC;
	U8  Hours;
	U8  Minutes;
	U8  Seconds;
	U16 Milliseconds;
};

/* Structure of the Region Definition */
struct FIG_TYPE0_Ext11 {
	U8  GATy;
	U8  G_E_flag;
	U8  Upper_part;
	U8  Lower_part;
	U8  length_TII_list;
	U8  Mainid[12];
	U8  Length_Subid_list;
	U8  Subid[36];
	U32 Latitude_Coarse;
	U32 Longitude_coarse;
	U32 Extent_Latitude;
	U32 Extent_Longitude;
};

/* Structure of the User Application Information */
struct FIG_TYPE0_Ext13 {
	U32 Sid;
	U8  SCidS;
	U8  Num_User_App;
	U16 User_APP_Type[6];
	U8  User_APP_data_length[6];
	U8  CA_flag;
	U8  CA_Org_flag;
	U8  X_PAD_App_Ty;
	U8  DG_flag;
	U8  DSCTy;
	U16 CA_Org;
	U8  User_APP_data[6][23];
};

/* FEC sub-channel organization */
struct FIG_TYPE0_Ext14 {
	U8  SubChid;
	U8  FEC_scheme;
};

/* Program Number structure  */
struct FIG_TYPE0_Ext16 {
	U16 Sid;
	U16 PNum;
	U8  Continuation_flag;
	U8  Update_flag;
	U16 New_Sid;
	U16 New_PNum;
};

/*	Program Type structure	*/
struct FIG_TYPE0_Ext17 {
	U16 Sid;
	U8  S_D;
	U8  P_S;
	U8  L_flag;
	U8  CC_flag;
	U8  Language;
	U8  Int_code;
	U8  Comp_code;
};

/* Announcement support */
struct FIG_TYPE0_Ext18 {
	U16 Sid;
	U16 ASU_flags;
	U8  Num_clusters;
	U8  Cluster_ID[23];
};

/* Announcement switching */
struct FIG_TYPE0_Ext19 {
	U8  Cluster_ID;
	U16 ASW_flags;
	U8  New_flag;
	U8  Region_flag;
	U8  SubChid;
	U8  Regionid_Lower_Part;
};

/* Frequency Information */
struct FIG_TYPE0_Ext21 {
	U16 ResionID;
	U8  Length_of_FI_list;
	U16 id_field;
	U8  R_M;
	U8  Continuity_flag;
	U8  Length_Freq_list;
	U8  Control_field[5];
	U8  id_field2[4];
	U32 Freq_a[5];
	U8  Freq_b[17];
	U16 Freq_c[8];
	U16 Freq_d[7];
};

/* Transmitter Identification Information (TII) database */
struct FIG_TYPE0_Ext22 {
	U8  M_S;
	U8  Mainid;
	U32 Latitude_coarse;
	U32 Longitude_coarse;
	U8  Latitude_fine;
	U8  Longitude_fine;
	U8  Num_Subid_fields;
	U8  Subid[4];
	U16 TD[4];
	U16 Latitude_offset[4];
	U16 Longitude_offset[4];
};

/* Other Ensemble Service */
struct FIG_TYPE0_Ext24 {
	U32 Sid;
	U8  CAid;
	U8  Number_Eids;
	U16 Eid[12];
};

/* Other Ensemble Announcement support */
struct FIG_TYPE0_Ext25 {
	U32 Sid;
	U32 ASU_flag;
	U8  Number_Eids;
	U8  Eid[12];
};

/* Other Ensemble Announcement switching */
struct FIG_TYPE0_Ext26 {
	U8  Cluster_id_Current_Ensemble;
	U32 Asw_flags;
	U8  New_flag;
	U8  Region_flag;
	U8  Region_id_current_Ensemble;
	U32 Eid_Other_Ensemble;
	U8  Cluster_id_other_Ensemble;
	U8  Region_id_Oter_Ensemble;
};

/* FM Announcement support */
struct FIG_TYPE0_Ext27 {
	U32 Sid;
	U8  Number_PI_Code;
	U32 PI[12];
};

/* FM Announcement switching */
struct FIG_TYPE0_Ext28 {
	U8  Cluster_id_Current_Ensemble;
	U8  New_flag;
	U8  Region_id_Current_Ensemble;
	U32 PI;
};

/* FIC re-direction */
struct FIG_TYPE0_Ext31 {
	U32 FIG0_flag_field;
	U8  FIG1_flag_field;
	U8  FIG2_flag_field;
};

/****************************/
/*  FIG type 5 data field   */
/****************************/
struct FIG_TYPE5 {
	U8 D1;
	U8 D2;
	U8 TCid;
	U8 Ext;
};

/* Paging */
struct FIG_TPE5_Ext0 {
	U8  SubChid;
	U16 Packet_add;
	U8  F1;
	U8  F2;
	U16 LFN;
	U8  F3;
	U16 Time;
	U8  CAid;
	U16 CA_Org;
	U32 Paging_user_group;
};

/* TMC */
struct FIG_TYPE5_Ext1 {
	U32 TMC_User_Message[30];
	U16 TMC_System_Message[30];
};

/* EWS */
struct FIG_EWS_Region {
	U8  Sub_Region[11];
};

struct FIG_TYPE5_Ext2 {
	U8  current_segmemt;
	U8  total_segmemt;
	U8  Message_ID;
	S8  category[4];
	U8  priority;
	U32 time_MJD;
	U8  time_Hours;
	U8  time_Minutes;
	U8  region_form;
	U8  region_num;
	U8  Rev;
	struct FIG_EWS_Region Region[15];
	U8  data[409];
};

/****************************/
/*  FIG type 6 data field   */
/****************************/
struct FIG_TYPE6 {
	U8  C_N;
	U8  OE;
	U8  P_D;
	U8  LEF;
	U8  ShortCASysId;
	U32 Sid;
	U16 CASysId;
	U16 CAIntChar;
};

/***************************/
/*  Function declarations  */
/***************************/

/* FIG TYPE 0 function */
S32 Get_FIG0_EXT0(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT1(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT2(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT3(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT4(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT5(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT6(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT7(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT8(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT9(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT10(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT11(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT12(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT13(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT14(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT15(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT16(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT17(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT18(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT19(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT20(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT21(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT22(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT23(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT24(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT25(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT26(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT27(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT28(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT29(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT30(U8 fic_cmd, U8 P_D, U8 C_N);
S32 Get_FIG0_EXT31(U8 fic_cmd, U8 P_D, U8 C_N);

/* FIG TYPE 1 function */
S32 Get_FIG1_EXT0(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT1(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT2(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT3(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT4(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT5(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT6(U8 fic_cmd, U8 Char_Set);
S32 Get_FIG1_EXT7(U8 fic_cmd, U8 Char_Set);

/* FIG TYPE 2 function */
S32 Get_FIG2_EXT0(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT1(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT2(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT3(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT4(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT5(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT6(U8 fic_cmd, U8 Seg_Index);
S32 Get_FIG2_EXT7(U8 fic_cmd, U8 Seg_Index);

/* FIG TYPE 5 function */
S32 Get_FIG5_EXT0(U8 D1, U8 D2, U8 fic_cmd, U8 TCid);
S32 Get_FIG5_EXT1(U8 D1, U8 D2, U8 fic_cmd, U8 TCid);
S32 Get_FIG5_EXT2(U8 D1, U8 D2, U8 fic_cmd, U8 TCid);



U8 GET_SUBCH_INFO(struct FIG_TYPE0_Ext1 *type0_ext1
		, S32 *BIT_RATE, S32 *SUB_CH_Size, S32 *P_L);
U8 GET_DATE_TIME(struct DATE_TIME_INFO *time_desc);
U8 GET_EWS_TIME(struct DATE_TIME_INFO *time_desc);



#endif /* __MTV319_FICDEC_INTERNAL_H__ */