blob: 1029d307410eb4b9bd445af116ccd9f5ea7eccab [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35/*******************************************************************************
36* Modification Notice:
37* --------------------------
38* This software is modified by MediaTek Inc. and the information contained
39* herein is confidential. The software may not be copied and the information
40* contained herein may not be used or disclosed except with the written
41* permission of MediaTek Inc. (C) 2001
42*
43*******************************************************************************/
44
45/*******************************************************************************
46 * Filename:
47 * ---------
48 * ft_msg.h
49 *
50 * Project:
51 * --------
52 * MAUI
53 *
54 * Description:
55 * ------------
56 * Messages definition of FT task
57 *
58 * Author:
59 * -------
60 * -------
61 *
62 *==============================================================================
63 * HISTORY
64 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
65 *------------------------------------------------------------------------------
66 * removed!
67 * removed!
68 * removed!
69 *
70 * removed!
71 * removed!
72 *
73 * removed!
74 * removed!
75 * removed!
76 *
77 * removed!
78 * removed!
79 * removed!
80 * removed!
81 *
82 * removed!
83 * removed!
84 * removed!
85 * removed!
86 * removed!
87 * removed!
88 *
89 * removed!
90 * removed!
91 *
92 * removed!
93 * removed!
94 * removed!
95 * removed!
96 * removed!
97 * removed!
98 *
99 * removed!
100 * removed!
101 * removed!
102 * removed!
103 * removed!
104 *
105 * removed!
106 * removed!
107 * removed!
108 *
109 * removed!
110 * removed!
111 * removed!
112 *
113 * removed!
114 * removed!
115 * removed!
116 *
117 * removed!
118 * removed!
119 * removed!
120 * removed!
121 * removed!
122 * removed!
123 * removed!
124 *
125 * removed!
126 * removed!
127 * removed!
128 *
129 * removed!
130 * removed!
131 * removed!
132 *
133 * removed!
134 * removed!
135 * removed!
136 *
137 * removed!
138 * removed!
139 * removed!
140 *
141 * removed!
142 * removed!
143 * removed!
144 *
145 * removed!
146 * removed!
147 *
148 * removed!
149 * removed!
150 * removed!
151 *
152 * removed!
153 * removed!
154 * removed!
155 *
156 * removed!
157 * removed!
158 * removed!
159 *
160 * removed!
161 * removed!
162 * removed!
163 *
164 * removed!
165 * removed!
166 * removed!
167 *
168 * removed!
169 * removed!
170 * removed!
171 *
172 * removed!
173 * removed!
174 * removed!
175 *
176 * removed!
177 * removed!
178 * removed!
179 *
180 * removed!
181 * removed!
182 * removed!
183 *
184 * removed!
185 * removed!
186 * removed!
187 *
188 * removed!
189 * removed!
190 * removed!
191 *
192 * removed!
193 * removed!
194 * removed!
195 *
196 * removed!
197 * removed!
198 * removed!
199 *
200 * removed!
201 * removed!
202 * removed!
203 *
204 * removed!
205 * removed!
206 * removed!
207 *
208 * removed!
209 * removed!
210 * removed!
211 *
212 * removed!
213 * removed!
214 * removed!
215 *
216 * removed!
217 * removed!
218 * removed!
219 *
220 * removed!
221 * removed!
222 * removed!
223 *
224 * removed!
225 * removed!
226 * removed!
227 *
228 * removed!
229 * removed!
230 * removed!
231 *
232 * removed!
233 * removed!
234 * removed!
235 *
236 * removed!
237 * removed!
238 * removed!
239 *
240 * removed!
241 * removed!
242 * removed!
243 *
244 * removed!
245 * removed!
246 * removed!
247 *
248 * removed!
249 * removed!
250 * removed!
251 *
252 * removed!
253 * removed!
254 * removed!
255 *
256 * removed!
257 * removed!
258 * removed!
259 *
260 * removed!
261 * removed!
262 * removed!
263 *
264 * removed!
265 * removed!
266 * removed!
267 *
268 * removed!
269 * removed!
270 * removed!
271 *
272 * removed!
273 * removed!
274 * removed!
275 *
276 * removed!
277 * removed!
278 * removed!
279 *
280 * removed!
281 * removed!
282 * removed!
283 *
284 * removed!
285 * removed!
286 * removed!
287 *
288 * removed!
289 * removed!
290 * removed!
291 *
292 * removed!
293 * removed!
294 * removed!
295 *
296 * removed!
297 * removed!
298 * removed!
299 *
300 * removed!
301 * removed!
302 * removed!
303 *
304 * removed!
305 * removed!
306 * removed!
307 *
308 * removed!
309 * removed!
310 * removed!
311 *
312 * removed!
313 * removed!
314 * removed!
315 *
316 * removed!
317 * removed!
318 * removed!
319 *
320 * removed!
321 * removed!
322 * removed!
323 *
324 * removed!
325 * removed!
326 * removed!
327 *
328 * removed!
329 * removed!
330 * removed!
331 *
332 * removed!
333 * removed!
334 * removed!
335 *
336 * removed!
337 * removed!
338 * removed!
339 *
340 * removed!
341 * removed!
342 * removed!
343 *
344 * removed!
345 * removed!
346 * removed!
347 *
348 * removed!
349 * removed!
350 * removed!
351 *
352 * removed!
353 * removed!
354 * removed!
355 *
356 * removed!
357 * removed!
358 * removed!
359 *
360 * removed!
361 * removed!
362 * removed!
363 *
364 * removed!
365 * removed!
366 * removed!
367 *
368 * removed!
369 * removed!
370 * removed!
371 *
372 * removed!
373 * removed!
374 * removed!
375 *
376 * removed!
377 * removed!
378 * removed!
379 *
380 * removed!
381 * removed!
382 * removed!
383 *
384 * removed!
385 * removed!
386 * removed!
387 *
388 * removed!
389 * removed!
390 * removed!
391 *
392 * removed!
393 * removed!
394 * removed!
395 *
396 * removed!
397 * removed!
398 * removed!
399 *
400 * removed!
401 * removed!
402 * removed!
403 *
404 * removed!
405 * removed!
406 * removed!
407 *
408 * removed!
409 * removed!
410 * removed!
411 *
412 * removed!
413 * removed!
414 * removed!
415 *
416 *
417 * removed!
418 * removed!
419 * removed!
420 *
421 * removed!
422 * removed!
423 * removed!
424 *
425 * removed!
426 * removed!
427 * removed!
428 *
429 * removed!
430 * removed!
431 * removed!
432 *
433 * removed!
434 * removed!
435 * removed!
436 *
437 * removed!
438 * removed!
439 * removed!
440 *
441 * removed!
442 * removed!
443 * removed!
444 *
445 * removed!
446 * removed!
447 * removed!
448 *
449 * removed!
450 * removed!
451 * removed!
452 *
453 * removed!
454 * removed!
455 * removed!
456 *
457 * removed!
458 * removed!
459 * removed!
460 *
461 * removed!
462 * removed!
463 * removed!
464 *
465 *
466 * removed!
467 * removed!
468 * removed!
469 *
470 * removed!
471 * removed!
472 * removed!
473 *
474 * removed!
475 * removed!
476 * removed!
477 *
478 * removed!
479 * removed!
480 * removed!
481 *
482 * removed!
483 * removed!
484 * removed!
485 *
486 * removed!
487 * removed!
488 * removed!
489 *
490 * removed!
491 * removed!
492 * removed!
493 *
494 * removed!
495 * removed!
496 * removed!
497 *
498 * removed!
499 * removed!
500 * removed!
501 *
502 * removed!
503 * removed!
504 * removed!
505 * removed!
506 * removed!
507 * removed!
508 * removed!
509 * removed!
510 * removed!
511 *
512 * removed!
513 * removed!
514 * removed!
515 *
516 * removed!
517 * removed!
518 * removed!
519 *
520 * removed!
521 * removed!
522 * removed!
523 *
524 * removed!
525 * removed!
526 * removed!
527 *
528 * removed!
529 * removed!
530 * removed!
531 *
532 * removed!
533 * removed!
534 * removed!
535 *
536 * removed!
537 * removed!
538 * removed!
539 *
540 * removed!
541 * removed!
542 * removed!
543 *
544 * removed!
545 * removed!
546 * removed!
547 *
548 * removed!
549 * removed!
550 * removed!
551 *
552 * removed!
553 * removed!
554 * removed!
555 *
556 * removed!
557 * removed!
558 * removed!
559 *
560 * removed!
561 * removed!
562 * removed!
563 *
564 * removed!
565 * removed!
566 * removed!
567 *
568 * removed!
569 * removed!
570 * removed!
571 *
572 * removed!
573 * removed!
574 * removed!
575 *
576 * removed!
577 * removed!
578 * removed!
579 *
580 * removed!
581 * removed!
582 * removed!
583 *
584 * removed!
585 * removed!
586 * removed!
587 *
588 * removed!
589 * removed!
590 * removed!
591 *
592 * removed!
593 * removed!
594 * removed!
595 *
596 * removed!
597 * removed!
598 * removed!
599 *
600 * removed!
601 * removed!
602 * removed!
603 *
604 * removed!
605 * removed!
606 * removed!
607 *
608 * removed!
609 * removed!
610 * removed!
611 *
612 * removed!
613 * removed!
614 * removed!
615 *
616 * removed!
617 * removed!
618 * removed!
619 *
620 * removed!
621 * removed!
622 * removed!
623 *
624 * removed!
625 * removed!
626 * removed!
627 *
628 * removed!
629 * removed!
630 * removed!
631 *
632 * removed!
633 * removed!
634 * removed!
635 *
636 * removed!
637 * removed!
638 * removed!
639 *
640 * removed!
641 * removed!
642 * removed!
643 *
644 * removed!
645 * removed!
646 * removed!
647 *
648 * removed!
649 * removed!
650 * removed!
651 *
652 * removed!
653 * removed!
654 * removed!
655 *
656 * removed!
657 * removed!
658 * removed!
659 *
660 * removed!
661 * removed!
662 * removed!
663 *
664 * removed!
665 * removed!
666 * removed!
667 *
668 * removed!
669 * removed!
670 * removed!
671 *
672 * removed!
673 * removed!
674 * removed!
675 *
676 * removed!
677 * removed!
678 * removed!
679 *
680 * removed!
681 * removed!
682 * removed!
683 *
684 * removed!
685 * removed!
686 * removed!
687 *
688 * removed!
689 * removed!
690 * removed!
691 *
692 * removed!
693 * removed!
694 * removed!
695 *
696 * removed!
697 * removed!
698 * removed!
699 *
700 * removed!
701 * removed!
702 * removed!
703 *
704 * removed!
705 * removed!
706 * removed!
707 *
708 * removed!
709 * removed!
710 * removed!
711 *
712 * removed!
713 * removed!
714 * removed!
715 *
716 * removed!
717 * removed!
718 * removed!
719 *
720 * removed!
721 * removed!
722 * removed!
723 *
724 * removed!
725 * removed!
726 * removed!
727 *
728 * removed!
729 * removed!
730 * removed!
731 *
732 * removed!
733 * removed!
734 * removed!
735 *
736 * removed!
737 * removed!
738 * removed!
739 *
740 * removed!
741 * removed!
742 * removed!
743 *
744 * removed!
745 * removed!
746 * removed!
747 *
748 * removed!
749 * removed!
750 * removed!
751 *
752 * removed!
753 * removed!
754 * removed!
755 *
756 * removed!
757 * removed!
758 * removed!
759 *
760 * removed!
761 * removed!
762 * removed!
763 *
764 * removed!
765 * removed!
766 * removed!
767 *
768 * removed!
769 * removed!
770 * removed!
771 *
772 * removed!
773 * removed!
774 * removed!
775 *
776 * removed!
777 * removed!
778 * removed!
779 *
780 * removed!
781 * removed!
782 * removed!
783 *
784 * removed!
785 * removed!
786 * removed!
787 *
788 * removed!
789 * removed!
790 * removed!
791 *
792 * removed!
793 * removed!
794 * removed!
795 *
796 * removed!
797 * removed!
798 * removed!
799 *
800 * removed!
801 * removed!
802 * removed!
803 *
804 * removed!
805 * removed!
806 * removed!
807 *
808 * removed!
809 * removed!
810 * removed!
811 *
812 * removed!
813 * removed!
814 * removed!
815 *
816 * removed!
817 * removed!
818 * removed!
819 *
820 * removed!
821 * removed!
822 * removed!
823 *
824 * removed!
825 * removed!
826 * removed!
827 *
828 * removed!
829 * removed!
830 * removed!
831 *
832 * removed!
833 * removed!
834 * removed!
835 *
836 * removed!
837 * removed!
838 * removed!
839 *
840 * removed!
841 * removed!
842 * removed!
843 *
844 * removed!
845 * removed!
846 * removed!
847 *
848 * removed!
849 * removed!
850 * removed!
851 *
852 * removed!
853 * removed!
854 * removed!
855 *
856 * removed!
857 * removed!
858 * removed!
859 * removed!
860 * removed!
861 * removed!
862 * removed!
863 * removed!
864 * removed!
865 * removed!
866 * removed!
867 * removed!
868 * removed!
869 * removed!
870 * removed!
871 * removed!
872 * removed!
873 * removed!
874 * removed!
875 * removed!
876 * removed!
877 * removed!
878 * removed!
879 * removed!
880 * removed!
881 * removed!
882 * removed!
883 * removed!
884 * removed!
885 * removed!
886 * removed!
887 * removed!
888 * removed!
889 * removed!
890 * removed!
891 * removed!
892 * removed!
893 * removed!
894 * removed!
895 * removed!
896 * removed!
897 * removed!
898 * removed!
899 * removed!
900 * removed!
901 * removed!
902 * removed!
903 * removed!
904 * removed!
905 * removed!
906 * removed!
907 * removed!
908 * removed!
909 * removed!
910 * removed!
911 * removed!
912 * removed!
913 * removed!
914 * removed!
915 * removed!
916 * removed!
917 * removed!
918 * removed!
919 * removed!
920 * removed!
921 * removed!
922 * removed!
923 * removed!
924 * removed!
925 * removed!
926 * removed!
927 * removed!
928 * removed!
929 * removed!
930 * removed!
931 * removed!
932 * removed!
933 * removed!
934 * removed!
935 * removed!
936 * removed!
937 * removed!
938 * removed!
939 * removed!
940 * removed!
941 * removed!
942 * removed!
943 * removed!
944 * removed!
945 * removed!
946 * removed!
947 * removed!
948 * removed!
949 * removed!
950 * removed!
951 * removed!
952 * removed!
953 * removed!
954 * removed!
955 * removed!
956 * removed!
957 * removed!
958 * removed!
959 * removed!
960 * removed!
961 * removed!
962 * removed!
963 * removed!
964 * removed!
965 * removed!
966 * removed!
967 * removed!
968 * removed!
969 * removed!
970 * removed!
971 * removed!
972 * removed!
973 * removed!
974 * removed!
975 * removed!
976 * removed!
977 * removed!
978 * removed!
979 * removed!
980 * removed!
981 * removed!
982 * removed!
983 * removed!
984 * removed!
985 * removed!
986 * removed!
987 * removed!
988 * removed!
989 * removed!
990 * removed!
991 * removed!
992 * removed!
993 * removed!
994 * removed!
995 * removed!
996 * removed!
997 * removed!
998 * removed!
999 * removed!
1000 * removed!
1001 * removed!
1002 * removed!
1003 * removed!
1004 * removed!
1005 * removed!
1006 * removed!
1007 * removed!
1008 * removed!
1009 * removed!
1010 * removed!
1011 * removed!
1012 * removed!
1013 * removed!
1014 * removed!
1015 * removed!
1016 * removed!
1017 * removed!
1018 * removed!
1019 * removed!
1020 * removed!
1021 * removed!
1022 *
1023 *------------------------------------------------------------------------------
1024 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
1025 *==============================================================================
1026 *******************************************************************************/
1027
1028#ifndef FT_MSG_H
1029#define FT_MSG_H
1030
1031
1032#include "kal_public_api.h"
1033#ifndef L1_SIM
1034#include "med_struct.h"
1035#include "fs_type.h"
1036#endif // #ifndef L1_SIM
1037#include "kal_general_types.h"
1038#include "ft_msg_common.h"
1039
1040/*******************************************************************************
1041*
1042* Message structures defined for NVRAM Interface
1043*
1044*******************************************************************************/
1045#ifndef L1_SIM
1046typedef struct {
1047 FT_HDR
1048 kal_uint32 dummy;
1049} FT_NVRAM_GET_DISK_INFO_REQ;
1050
1051typedef struct {
1052 FT_HDR
1053 kal_uint8 status;
1054 kal_uint32 diskfilesize;
1055 kal_uint32 freespace;
1056 kal_uint32 overhead;
1057} FT_NVRAM_GET_DISK_INFO_CNF;
1058
1059typedef struct
1060{
1061 FT_HDR
1062 kal_uint8 poweron_mode;
1063}ft_nvram_startup_req_struct_T;
1064
1065typedef struct
1066{
1067 FT_HDR
1068 kal_uint8 status;
1069}ft_nvram_startup_cnf_struct_T;
1070
1071typedef struct
1072{
1073 FT_HDR
1074 kal_uint8 reset_category;
1075 kal_uint16 file_idx;
1076}ft_nvram_reset_req_struct_T;
1077
1078typedef struct
1079{
1080 FT_HDR
1081 kal_uint8 status;
1082}ft_nvram_reset_cnf_struct_T;
1083
1084/********************************************
1085* Generic Primitives for READ/WRITE NVRAM
1086********************************************/
1087typedef struct
1088{
1089 FT_HDR
1090 kal_uint16 file_idx;
1091 kal_uint16 para;
1092 kal_uint8 status;
1093} ft_nvram_read_cnf_struct_T;
1094
1095typedef struct
1096{
1097 FT_HDR
1098 kal_uint16 file_idx;
1099 kal_uint16 para;
1100 kal_uint8 ciphered_data_valid;
1101 kal_uint8 ciphered_data[4];
1102} ft_nvram_read_req_struct_T;
1103
1104typedef struct
1105{
1106 FT_HDR
1107 kal_uint16 file_idx;
1108 kal_uint16 para;
1109 kal_uint16 rec_amount; /* total record to read */
1110 kal_uint8 *buffer; /* buffer to fill in data */
1111 kal_uint32 buf_size; /* buffer size */
1112
1113} ft_nvram_read_sm_req_struct_T;
1114
1115
1116typedef struct
1117{
1118 FT_HDR
1119 kal_uint16 file_idx;
1120 kal_uint16 para;
1121 kal_uint8 status;
1122} ft_nvram_write_cnf_struct_T;
1123
1124typedef struct
1125{
1126 FT_HDR
1127 kal_uint16 file_idx;
1128 kal_uint16 para;
1129 kal_uint8 msg_num;
1130 kal_uint8 msg_idx;
1131} ft_nvram_write_req_struct_T;
1132
1133typedef struct {
1134 FT_HDR
1135 kal_uint8 lock_en;
1136} ft_nvram_lock_req_struct_T;
1137
1138typedef struct {
1139 FT_HDR
1140 kal_uint8 status;
1141} ft_nvram_lock_cnf_struct_T;
1142
1143/*******************************************************************************
1144*
1145* Message structures defined for BaseBand Interface
1146*
1147*******************************************************************************/
1148typedef enum
1149{
1150 FT_MT_UNKNOWN =0,
1151 FT_MT6305,
1152 FT_MT6318,
1153 FT_MT6326,
1154 FT_PMIC_END
1155}ft_PMICType;
1156
1157typedef enum
1158{
1159 FT_BaseBandReg = 0,
1160 FT_PMICReg
1161}ft_RegisterType;
1162typedef struct
1163{
1164 FT_HDR
1165 kal_uint32 addr;
1166} ft_RegisterRead_req_T;
1167
1168typedef struct
1169{
1170 FT_HDR
1171 kal_uint16 value;
1172 kal_uint8 status;
1173} ft_RegisterRead_cnf_T;
1174
1175typedef struct
1176{
1177 FT_HDR
1178 kal_uint32 addr;
1179 kal_uint16 value;
1180} ft_RegisterWrite_req_T;
1181
1182typedef struct
1183{
1184 FT_HDR
1185 kal_uint8 status;
1186} ft_RegisterWrite_cnf_T;
1187typedef struct
1188{
1189 FT_HDR
1190 kal_uint32 addr;
1191} ft_PMICRegisterRead_req_T;
1192typedef struct
1193{
1194 FT_HDR
1195 kal_uint16 value;
1196 kal_uint8 status;
1197} ft_PMICRegisterRead_cnf_T;
1198typedef struct
1199{
1200 FT_HDR
1201 kal_uint32 addr;
1202 kal_uint16 value;
1203} ft_PMICRegisterWrite_req_T;
1204typedef struct
1205{
1206 FT_HDR
1207 kal_uint8 status;
1208} ft_PMICRegisterWrite_cnf_T;
1209
1210typedef struct
1211{
1212 FT_HDR
1213 kal_uint8 Sel;
1214 kal_uint16 Meacount;
1215} ft_FtADC_GetMeaData_req_T;
1216typedef struct
1217{
1218 FT_HDR
1219 kal_uint32 value;
1220 kal_uint8 status;
1221} ft_FtADC_GetMeaData_cnf_T;
1222
1223/*******************************************************************************
1224*
1225* Message structures defined for FAT Interface
1226*
1227*******************************************************************************/
1228
1229#define FT_FAT_ERR_PATH_TOO_LONG -500
1230#define FT_FAT_ERR_PATH_RESTRICTION -501
1231#define FT_FAT_ERR_DIR_NOT_EXIST -502
1232#define FT_FAT_ERR_ACTION_NOT_SUPPORT - 503
1233
1234typedef enum {
1235 FT_FAT_OP_OPEN = 1
1236 ,FT_FAT_OP_READ = 2
1237 ,FT_FAT_OP_WRITE = 4
1238 ,FT_FAT_OP_CLOSE = 8
1239 ,FT_FAT_OP_FILESIZE
1240 ,FT_FAT_OP_DELETE
1241 ,FT_FAT_OP_MOVE
1242 ,FT_FAT_OP_FIND_FILE
1243 ,FT_FAT_OP_FIND_FILE_RECURSIVE
1244 ,FT_FAT_OP_FIND_DIR_RECURSIVE
1245 ,FT_FAT_OP_GET_DISK_INFO
1246 ,FT_FAT_OP_RMDIR
1247 ,FT_FAT_OP_GET_DRIVE_TYPE
1248 ,FT_FAT_OP_END
1249}FT_FAT_OP;
1250
1251typedef struct
1252{
1253 FT_HDR
1254 FT_FAT_OP fat_op;
1255 FS_HANDLE fs_handle;
1256 kal_int32 offset;
1257 kal_uint8 last_frame;
1258 kal_int32 status;
1259
1260}FT_FAT_OPERATION;
1261
1262typedef struct {
1263 kal_uint32 Type;
1264 kal_uint32 SectorsPerCluster;
1265 kal_uint32 TotalClusters;
1266 kal_uint32 FreeClusters;
1267}FT_FAT_DiskInfo_T;
1268
1269typedef struct {
1270 kal_int32 filesize;
1271}FT_FAT_FILESIZE;
1272#endif // #ifndef L1_SIM
1273/*******************************************************************************
1274*
1275* Message structures defined for Version Info Interface
1276*
1277*******************************************************************************/
1278
1279typedef struct {
1280 FT_HDR
1281}FT_VER_INFO_REQ;
1282
1283typedef struct {
1284 FT_HDR
1285 kal_uint8 bb_chip[64];
1286 kal_uint8 eco_ver[4];
1287 kal_uint8 dsp_fw[64];
1288 kal_uint8 dsp_patch[64];
1289 kal_uint8 sw_ver[64];
1290 kal_uint8 hw_ver[64];
1291 kal_uint8 melody_ver[64];
1292 kal_uint8 sw_flavor[64];
1293}FT_VER_INFO_CNF;
1294
1295/*******************************************************************************
1296*
1297* Message structures defined for ready confirm
1298*
1299*******************************************************************************/
1300
1301typedef struct {
1302 FT_HDR
1303 kal_uint32 dummy; // extend alignment to 4 bytes
1304}FT_IS_ALIVE_REQ;
1305
1306typedef struct {
1307 FT_HDR
1308 kal_uint32 dummy; // extend alignment to 4 bytes
1309}FT_IS_ALIVE_CNF;
1310
1311
1312/*******************************************************************************
1313*
1314* Message structures defined for SLA
1315*
1316*******************************************************************************/
1317
1318typedef struct {
1319 FT_HDR
1320 kal_uint32 dummy; // extend alignment to 4 bytes
1321}FT_GET_SLA_STATUS_REQ;
1322
1323typedef struct {
1324 FT_HDR
1325 kal_uint16 sla_config;
1326 kal_uint16 sla_verified;
1327}FT_GET_SLA_STATUS_CNF;
1328
1329typedef struct {
1330 FT_HDR
1331 kal_uint32 sla_ver_from_pc;
1332}FT_CHECK_SLA_VER_REQ;
1333
1334typedef struct {
1335 FT_HDR
1336 kal_uint32 status;
1337}FT_CHECK_SLA_VER_CNF;
1338
1339#define RND_BUF_LEN 16
1340typedef struct {
1341 FT_HDR
1342 kal_uint8 rand_num[RND_BUF_LEN];
1343 kal_uint32 rand_num_len;
1344 kal_uint8 cust_para[256];
1345 kal_int32 status;
1346}FT_GET_SLA_PARA_CNF;
1347
1348typedef struct {
1349 FT_HDR
1350 kal_uint8 encrypted[256];
1351 kal_uint32 encrypted_len;
1352}FT_VERIFY_SLA_RND_REQ;
1353
1354typedef struct {
1355 FT_HDR
1356 kal_int32 status;
1357}FT_VERIFY_SLA_RND_CNF;
1358
1359typedef struct {
1360 FT_HDR
1361 kal_uint16 deniedMsgId;
1362 kal_uint32 status;
1363}FT_DENIED_MSG_ID_CNF;
1364
1365/*******************************************************************************
1366*
1367* Message structures defined for power off command
1368*
1369*******************************************************************************/
1370#ifndef L1_SIM
1371typedef struct {
1372 FT_HDR
1373 kal_uint32 dummy; // extend alignment to 4 bytes
1374}FT_POWER_OFF_REQ;
1375#endif // #ifndef L1_SIM
1376/*******************************************************************************
1377*
1378* Message structures defined for checking META_DLL version
1379*
1380*******************************************************************************/
1381
1382typedef struct {
1383 FT_HDR
1384 kal_uint32 meta_ver_from_pc;
1385 kal_uint8 dummy[256];
1386}FT_CHECK_META_VER_REQ;
1387
1388typedef struct {
1389 FT_HDR
1390 kal_uint32 meta_ver_required_by_target;
1391 kal_uint8 dummy[256];
1392}FT_CHECK_META_VER_CNF;
1393#ifndef L1_SIM
1394typedef struct {
1395 LOCAL_PARA_HDR
1396 kal_uint8 lid_count;
1397}ft_cal_data_add_one_req_struct;
1398
1399typedef struct {
1400 LOCAL_PARA_HDR
1401 kal_uint8 status;
1402}ft_cal_data_add_one_cnf_struct;
1403
1404typedef struct {
1405 kal_uint16 lid;
1406 kal_uint16 rid;
1407}FT_CAL_DATA_CHECK_REQ_T;
1408#endif // #ifndef L1_SIM
1409
1410/*******************************************************************************
1411*
1412* Message structures defined for L4 AT command Interface
1413*
1414*******************************************************************************/
1415
1416typedef struct {
1417 FT_HDR
1418 kal_uint32 type;
1419}FT_L4_ATCMD_REQ;
1420
1421typedef struct {
1422 FT_HDR
1423 kal_uint32 type;
1424 kal_uint32 status;
1425}FT_L4_ATCMD_CNF;
1426#ifndef L1_SIM
1427#include "ft_msg_fta.h"
1428#include "ft_msg_ftc.h"
1429#include "ft_msg_misc.h"
1430#include "ft_msg_misc_ex.h"
1431#endif // #ifndef L1_SIM
1432#include "ft_msg_util.h"
1433#include "ft_msg_l1rf.h"
1434#include "ft_msg_ul1rf.h"
1435#include "ft_msg_lterf.h"
1436#include "ft_msg_mmrf.h"
1437#endif
1438