ps_public_struct.h 55.4 KB
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 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 * ps_public_struct.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   This file contains the ABM network internal APIs 
 *   and these APIs can only be used by MMI CBM and DA
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/
#ifndef _PS_PUBLIC_STRUCT_H_
#define _PS_PUBLIC_STRUCT_H_

//#include "kal_non_specific_general_types.h"
#include "ps_public_enum.h"
#include "sim_ps_enum.h"
#include "sim_public_enum.h"

#if defined(__PLMN_LIST_WITH_CELL_INFO__)
#include "l3_inc_enums.h"
#endif

#if ( !defined(__L1_STANDALONE__) && !defined(__MAUI_BASIC__))
    #include "mcd_l4_common.h"
#else
#include "kal_general_types.h"

extern kal_uint32 l4_pun_src_buff[180];
extern kal_uint32 l4_pun_dest_buff[200];
typedef struct _l4_addr_bcd_struct
{
	kal_uint8 addr_length;
	kal_uint8 addr_bcd[41];
} l4_addr_bcd_struct;


typedef struct _l4_name_struct
{
	kal_uint8 name_length;
	kal_uint8 name_dcs;
	kal_uint8 name[42];
} l4_name_struct;


typedef struct _l4_csd_name_struct
{
	kal_uint8 name_length;
	kal_uint8 name_dcs;
	kal_uint8 name[32];
} l4_csd_name_struct;

#endif /* ( !defined(__L1_STANDALONE__) && !defined(__MAUI_BASIC__)) */

//#include "pwic.h"
//#include "pmic6318_sw.h"

/*#if defined(__VOIP__) || defined(__VIDEO_CALL_SUPPORT__)
#include "custom_voip_config.h"
#endif*/

/* WIFI test*/
#include "wndrv_ft_types.h"
#ifdef __MULTI_LEVEL_BACKLIGHT_SUPPORT__
#include "custom_hw_default.h"
#endif

typedef struct l4c_result_struct
{
   kal_uint8   flag;    /*l4c_result_enum*/
   kal_uint16   cause;

} l4c_result_struct;

typedef struct
{
   kal_uint32	total_rx_data;
   kal_uint32	total_tx_data;
   kal_uint32	last_rx_data;
   kal_uint32	last_tx_data;
} l4c_gprs_statistics_info_struct;

typedef struct
{
    kal_uint8 apn[MAX_APN_LEN];
} l4c_tcm_acl_entry_struct;

typedef struct
{
    kal_uint8               context_id;
    kal_uint8               apn_length;
    kal_uint8               apn [ MAX_APN_LEN ];
    kal_uint8               dcomp_algo;      /*atci_dcomp_algo_enum*/
    kal_uint8               hcomp_algo;      /*atci_hcomp_algo_enum*/
    pdp_addr_type_enum      pdp_type;        /*pdp_type_enum*/
    pdp_addr_len_enum       pdp_addr_len;
    kal_uint8               addr_val[ MAX_PDP_ADDR_LEN ];
} l4c_prim_pdp_info_struct;

typedef struct
{
    kal_uint8     context_id;      /* child context */
    kal_uint8     prim_context_id;  /* parent context */
    kal_uint8     dcomp_algo;     /* atci_dcomp_algo_enum */
    kal_uint8     hcomp_algo;     /* atci_hcomp_algo_enum */
} l4c_sec_pdp_info_struct;

typedef struct {
    kal_uint8 pfi;
    kal_uint8 epi;
    kal_uint8 src_addr_sb_net_mask_len;
    kal_uint8 src_addr_sb_net_mask[8];
    kal_bool   prot_number_present;
    kal_uint8  prot_number_next_hdr;
    kal_uint8 dst_port_len;
    kal_uint16 dst_port_range[2];
    kal_uint8 src_port_len;
    kal_uint16 src_port_range[2];
    kal_bool   ipsec_spi_present;
    kal_uint32 ipsec_spi;
    kal_uint8 tos_len;
    kal_uint8 tos_traffic_class_mask[2];
    kal_bool   flow_label_present;
    kal_uint32 flow_label;
} l4c_pf_struct;

typedef struct
{
   kal_uint8 context_id;
   kal_uint8 tot_pf_count;
   l4c_pf_struct pf[8]; //mtk02126 8 is the max number of packet filters in 27.007 v 7.05 
} l4c_tft_struct;

typedef struct
{
    atci_qos_enum            qos_type;          /*atci_qos_enum*/
    kal_uint8                context_id;
    delay_class_enum         delay_class;       /*delay_class_enum*/
    reliability_class_enum   reliability_class; /*reliability_class_enum*/
    peak_throughput_class    peak_throughput;   /*peak_throughput_class*/
    precedence_class_enum    precedence_class;  /*precedence_class_enum*/
    mean_throughput_enum     mean_throughput;   /*mean_throughput_enum*/
} l4c_qos_struct;

typedef struct
{
    atci_qos_enum            qos_type;          /*atci_qos_enum*/
    kal_uint8                context_id;
    kal_uint8 traffic_class;
    kal_uint8 delivery_order;
    kal_uint8 delivery_of_err_sdu;
    kal_uint8 max_sdu_size;
    kal_uint8 max_bitrate_up_lnk;
    kal_uint8 max_bitrate_down_lnk;
    kal_uint8 residual_bit_err_rate;
    kal_uint8 sdu_err_ratio;
    kal_uint8 transfer_delay;
    kal_uint8 traffic_hndl_priority;
    kal_uint8 guarntd_bit_rate_up_lnk;
    kal_uint8 guarntd_bit_rate_down_lnk;
    kal_uint8 signalling_indication;
    kal_uint8 source_statistics_descriptor;
    kal_uint8 ext_max_bitrate_down_lnk;
    kal_uint8 ext_guarntd_bit_rate_down_lnk;
    kal_uint8 ext_max_bitrate_up_lnk;
    kal_uint8 ext_guarntd_bit_rate_up_lnk;
} l4c_eqos_struct;

typedef struct
{
    kal_uint8 authentication_type;
    kal_uint8 user_name[MAX_GPRS_USER_NAME_LEN];
    kal_uint8 password[MAX_GPRS_PASSWORD_LEN];
    kal_uint8 dns[MAX_GPRS_IP_ADDR];
    kal_uint8 sec_dns[MAX_GPRS_IP_ADDR];
    kal_uint8 apn[MAX_GPRS_APN_LEN];
    kal_uint8 apn_length;
   
    //nvram_editor_qos_struct req_qos;
    kal_uint8 dcomp_algo; // Fixed value: SND_NO_DCOMP
    kal_uint8 hcomp_algo; // Fixed value: SND_NO_PCOMP
    kal_uint8 pdp_type; // Fixed value: IPV4_ADDR_TYPE 0x21 for IPv4
    kal_uint8 pdp_addr_len; // Fixed value: NULL_PDP_ADDR_LEN = 0x01, if use fixed IP address, this should be IPV4_ADDR_LEN = 0x04
    kal_uint8 pdp_addr_val[MAX_GPRS_IP_ADDR]; // should be all 0
} l4c_gprs_account_info_struct; //10A_DA_Revise, new gprs account struct, mtk02285

typedef struct
{
   kal_uint8 call_id;
   kal_uint8 call_state;
   kal_uint8 mpty;
   kal_uint8 number[MAX_CC_ADDR_LEN];
} l4c_call_list_entry_struct;

typedef struct
{
   kal_uint8 length;
   l4c_call_list_entry_struct list[L4C_MAX_CALL_LIST_LEN];
} l4c_call_list_struct;

typedef struct
{
   kal_uint8 type;
   kal_uint8 length;
   kal_uint8 number[MAX_CC_ADDR_LEN];
} l4c_number_struct;

typedef struct
{
   kal_uint8 type;
   kal_uint8 length;
   kal_uint8 number[MAX_CC_ADDR_LEN];
} l4c_sub_addr_struct;

typedef struct {
   kal_uint8 bs_code;
   kal_uint8 ss_status;
   kal_uint8 no_reply_timer;
   kal_uint8 subaddress_flag;
   kal_char address[MAX_CC_ADDR_LEN];
   kal_char subaddress[MAX_CC_SUB_ADDR_LEN];
} forwarding_list_struct;

typedef struct {
   kal_uint8 bs_code;
   kal_uint8 ss_status;
} barring_list_struct;

typedef struct {
   kal_uint8 ss_status;
   kal_uint8 subaddress_flag;
   l4_addr_bcd_struct address;
   l4_addr_bcd_struct subaddress;
   kal_uint8 bs_code;
} ccbs_list_struct;

typedef struct
{
    kal_bool cug_flag;
    kal_uint8 clir_flag;
    kal_uint8 call_type;
    csmss_string_op_enum opcode;
    l4c_number_struct addr;
} l4c_ss_string_info_struct;

typedef struct {
    kal_uint8 icon_attr;
    kal_uint8 icon_id;
} sat_icon_struct;

typedef struct {
    kal_uint8 length;
    kal_uint8 procomm[256];
    rsat_config_enum is_wait_for_rsp;
} sat_procomm_struct;

typedef struct {
    kal_uint8 p_class;
    kal_uint8 d_class;
    kal_uint8 r_class;
    kal_uint8 peak_rate;
    kal_uint8 mean_rate;
    kal_uint8 proto_type;
} sat_gprs_bearer_para_struct;

typedef struct {
    kal_uint8 speed;
    kal_uint8 service_name;
    kal_uint8 ce;
} sat_csd_bearer_para_struct;

//agps begin
/* OCTET STRING Ext-GeographicalInformation */
typedef struct L4C_SS_Ext_GeographicalInformation
{
   kal_uint8 numOctets;
   kal_uint8 stringData[20];
}
L4C_SS_Ext_GeographicalInformation;

/* OCTET STRING DecipheringKeys */
typedef struct L4C_SS_DecipheringKeys
{
   kal_uint8 numOctets;
   kal_uint8 stringData[15];
}
L4C_SS_DecipheringKeys;

/* OCTET STRING Add-GeographicalInformation */
typedef struct L4C_SS_Add_GeographicalInformation
{
   kal_uint8 numOctets;
   kal_uint8 stringData[91];
}
L4C_SS_Add_GeographicalInformation;

/* BIT STRING DeferredLocationEventType */
#define   L4C_SS_DeferredLocationEventType_msAvailable   0x00000001

#define   L4C_SS_DeferredLocationEventType_enteringIntoArea   0x00000002

#define   L4C_SS_DeferredLocationEventType_leavingFromArea   0x00000004

#define   L4C_SS_DeferredLocationEventType_beingInsideArea   0x00000008

typedef struct L4C_SS_DeferredLocationEventType
{
   kal_uint8 numBits;
   kal_uint8 stringData[2];
}
L4C_SS_DeferredLocationEventType;

/* OCTET STRING AddressString */
typedef struct L4C_SS_AddressString
{
   kal_uint8 numOctets;
   kal_uint8 stringData[20];
}
L4C_SS_AddressString;

typedef L4C_SS_AddressString L4C_SS_ISDN_AddressString;

typedef struct
{
	kal_uint32		valueLen;
	kal_uint8  	*value;
}L4C_LCS_applib2_UnKnowExtensionItem;

typedef struct
{
	kal_uint32						valueLen;		// Extension Number
	L4C_LCS_applib2_UnKnowExtensionItem		*value;		// Point to the first 
}L4C_LCS_applib2_UnKnowExtensionItemArray;

/* SEQUENCE PrivateExtension */
typedef struct L4C_SS_PrivateExtension
{
   L4C_LCS_applib2_UnKnowExtensionItemArray	UnKnowItem;
}
L4C_SS_PrivateExtension;

/* SEQUENCE OF PrivateExtensionList */
typedef struct L4C_SS_PrivateExtensionList	
{	
   kal_uint8 numElements;	
	
   L4C_SS_PrivateExtension element[10];	
}	
L4C_SS_PrivateExtensionList;

/* SEQUENCE ExtensionContainer */
typedef struct L4C_SS_ExtensionContainer
{
   kal_uint8 validity;

   #define L4C_SS_ExtensionContainer_privateExtensionList_valid 0x02
   #define L4C_SS_ExtensionContainer_pcs_Extensions_valid 0x01

   L4C_SS_PrivateExtensionList privateExtensionList; /* OPTIONAL */
}
L4C_SS_ExtensionContainer;

/* OCTET STRING USSD-DataCodingScheme */
typedef struct L4C_SS_USSD_DataCodingScheme
{
   kal_uint8 numOctets;
   kal_uint8 stringData[1];
}
L4C_SS_USSD_DataCodingScheme;

/* OCTET STRING USSD-String */
typedef struct L4C_SS_USSD_String
{
   kal_uint8 numOctets;
   kal_uint8 stringData[160];
}
L4C_SS_USSD_String;

/* DEFINED NameString */
typedef L4C_SS_USSD_String L4C_SS_NameString;

/* DEFINED RequestorIDString */
typedef L4C_SS_USSD_String L4C_SS_RequestorIDString;

/* SEQUENCE LCSClientName */
typedef struct L4C_SS_LCSClientName
{
   kal_uint8 validity;

   #define L4C_SS_LCSClientName_lcs_FormatIndicator_valid 0x01

   L4C_SS_USSD_DataCodingScheme dataCodingScheme; /* MANDATORY */
   L4C_SS_NameString nameString; /* MANDATORY */

   kal_uint8 lcs_FormatIndicator; /* OPTIONAL */ /* L4C_SS_LCS_FormatIndicator */
}
L4C_SS_LCSClientName;

/* SEQUENCE LCSRequestorID */
typedef struct L4C_SS_LCSRequestorID
{
   kal_uint8 validity;

   #define L4C_SS_LCSRequestorID_lcs_FormatIndicator_valid 0x01

   L4C_SS_USSD_DataCodingScheme dataCodingScheme; /* MANDATORY */
   L4C_SS_RequestorIDString requestorIDString; /* MANDATORY */

   kal_uint8 lcs_FormatIndicator; /* OPTIONAL */ /* L4C_SS_LCS_FormatIndicator */
}
L4C_SS_LCSRequestorID;

/* DEFINED LCSCodewordString */
typedef L4C_SS_USSD_String L4C_SS_LCSCodewordString;

/* SEQUENCE LCSCodeword */
typedef struct L4C_SS_LCSCodeword
{
   L4C_SS_USSD_DataCodingScheme dataCodingScheme; /* MANDATORY */
   L4C_SS_LCSCodewordString lcsCodewordString; /* MANDATORY */
}
L4C_SS_LCSCodeword;

/* INTEGER LCSServiceTypeID */
typedef kal_uint8 L4C_SS_LCSServiceTypeID;

/* INTEGER AgeOfLocationInformation */
typedef kal_uint16 L4C_SS_AgeOfLocationInformation;

/* SEQUENCE LocationNotificationRes */
typedef struct L4C_SS_LocationNotificationRes
{
   kal_uint8 validity;

   #define L4C_SS_LocationNotificationRes_verificationResponse_valid 0x01

   kal_uint8 verificationResponse; /* OPTIONAL */ /* L4C_SS_VerificationResponse */
}
L4C_SS_LocationNotificationRes;

/* OCTET STRING LCS-ReferenceNumber */
typedef struct L4C_SS_LCS_ReferenceNumber
{
   kal_uint8 numOctets;
   kal_uint8 stringData[1];
}
L4C_SS_LCS_ReferenceNumber;

/* OCTET STRING GSN-Address */
typedef struct L4C_SS_GSN_Address
{
   kal_uint8 numOctets;
   kal_uint8 stringData[17];
}
L4C_SS_GSN_Address;

/* SEQUENCE LCS-AreaEventReportArg */
typedef struct L4C_SS_LCS_AreaEventReportArg
{
   kal_uint8 validity;

   #define L4C_SS_LCS_AreaEventReportArg_r_gmlc_address_valid 0x01

   L4C_SS_LCS_ReferenceNumber referenceNumber; /* MANDATORY */
   L4C_SS_GSN_Address h_gmlc_address; /* MANDATORY */
   L4C_SS_GSN_Address r_gmlc_address; /* OPTIONAL */
}
L4C_SS_LCS_AreaEventReportArg;

typedef struct L4C_SS_LCS_AreaEventCancellationArg
{
   L4C_SS_LCS_ReferenceNumber referenceNumber; /* MANDATORY */
   L4C_SS_GSN_Address h_gmlc_address; /* MANDATORY */
}
L4C_SS_LCS_AreaEventCancellationArg;

/* OCTET STRING AreaIdentification */
typedef struct L4C_SS_AreaIdentification
{
   kal_uint8 numOctets;
   kal_uint8 stringData[7];
}
L4C_SS_AreaIdentification;

/* SEQUENCE Area */
typedef struct L4C_SS_Area
{
   kal_uint8 areaType; /* MANDATORY */ /* L4C_SS_AreaType */
   L4C_SS_AreaIdentification areaIdentification; /* MANDATORY */
}
L4C_SS_Area;

/* SEQUENCE OF AreaList */
typedef struct L4C_SS_AreaList	
{	
   kal_uint8 numElements;
	
   L4C_SS_Area element[10];	
}	
L4C_SS_AreaList;

/* SEQUENCE AreaDefinition */
typedef struct L4C_SS_AreaDefinition
{
   L4C_SS_AreaList areaList; /* MANDATORY */
}
L4C_SS_AreaDefinition;

/* INTEGER IntervalTime */
typedef kal_uint16 L4C_SS_IntervalTime;

/* SEQUENCE AreaEventInfo */
typedef struct L4C_SS_AreaEventInfo
{
   kal_uint8 validity;

   #define L4C_SS_AreaEventInfo_occurrenceInfo_valid 0x02
   #define L4C_SS_AreaEventInfo_intervalTime_valid 0x01

   L4C_SS_AreaDefinition areaDefinition; /* MANDATORY */
   kal_uint8 occurrenceInfo; /* OPTIONAL */ /* L4C_SS_OccurrenceInfo */
   L4C_SS_IntervalTime intervalTime; /* OPTIONAL */
}
L4C_SS_AreaEventInfo;

/* SEQUENCE LCS-AreaEventRequestArg */
typedef struct L4C_SS_LCS_AreaEventRequestArg
{
   kal_uint8 validity;

   #define L4C_SS_LCS_AreaEventRequestArg_r_gmlc_address_valid 0x01

   L4C_SS_LCS_ReferenceNumber referenceNumber; /* MANDATORY */
   L4C_SS_GSN_Address h_gmlc_address; /* MANDATORY */
   L4C_SS_GSN_Address r_gmlc_address; /* OPTIONAL */
   L4C_SS_DeferredLocationEventType deferredLocationEventType; /* MANDATORY */
   L4C_SS_AreaEventInfo areaEventInfo; /* MANDATORY */
}
L4C_SS_LCS_AreaEventRequestArg;

/* SEQUENCE ResponseTime */
typedef struct L4C_SS_ResponseTime
{
   kal_uint8 responseTimeCategory; /* MANDATORY */ /* L4C_SS_ResponseTimeCategory */
}
L4C_SS_ResponseTime;

/* OCTET STRING Vertical-Accuracy */
typedef struct L4C_SS_Vertical_Accuracy
{
   kal_uint8 numOctets;
   kal_uint8 stringData[1];
}
L4C_SS_Vertical_Accuracy;

/* OCTET STRING Horizontal-Accuracy */
typedef struct L4C_SS_Horizontal_Accuracy
{
   kal_uint8 numOctets;
   kal_uint8 stringData[1];
}
L4C_SS_Horizontal_Accuracy;

/* SEQUENCE LCS-QoS */
typedef struct L4C_SS_LCS_QoS
{
   kal_uint8 validity;

   #define L4C_SS_LCS_QoS_horizontal_accuracy_valid 0x10
   #define L4C_SS_LCS_QoS_verticalCoordinateRequest_valid 0x08
   #define L4C_SS_LCS_QoS_vertical_accuracy_valid 0x04
   #define L4C_SS_LCS_QoS_responseTime_valid 0x02
   #define L4C_SS_LCS_QoS_extensionContainer_valid 0x01

   L4C_SS_Horizontal_Accuracy horizontal_accuracy; /* OPTIONAL */
   kal_int8 verticalCoordinateRequest; /* OPTIONAL */
   L4C_SS_Vertical_Accuracy vertical_accuracy; /* OPTIONAL */
   L4C_SS_ResponseTime responseTime; /* OPTIONAL */
   L4C_SS_ExtensionContainer extensionContainer; /* OPTIONAL */
}
L4C_SS_LCS_QoS;

/* BIT STRING SupportedGADShapes */
#define   L4C_SS_SupportedGADShapes_ellipsoidPoint   0x00000001

#define   L4C_SS_SupportedGADShapes_ellipsoidPointWithUncertaintyCircle   0x00000002

#define   L4C_SS_SupportedGADShapes_ellipsoidPointWithUncertaintyEllipse   0x00000004

#define   L4C_SS_SupportedGADShapes_polygon   0x00000008

#define   L4C_SS_SupportedGADShapes_ellipsoidPointWithAltitude   0x00000010

#define   L4C_SS_SupportedGADShapes_ellipsoidPointWithAltitudeAndUncertaintyElipsoid   0x00000020

#define   L4C_SS_SupportedGADShapes_ellipsoidArc   0x00000040

typedef struct L4C_SS_SupportedGADShapes
{
   kal_uint8 numBits;
   kal_uint8 stringData[2];
}
L4C_SS_SupportedGADShapes;

/* OCTET STRING GPSAssistanceData */
typedef struct L4C_SS_GPSAssistanceData
{
   kal_uint8 numOctets;
   kal_uint8 stringData[38];
}
L4C_SS_GPSAssistanceData;

/* SEQUENCE LCSClientExternalID */
typedef struct L4C_SS_LCSClientExternalID
{
   kal_uint8 validity;

   #define L4C_SS_LCSClientExternalID_externalAddress_valid 0x02
   #define L4C_SS_LCSClientExternalID_extensionContainer_valid 0x01

   L4C_SS_ISDN_AddressString externalAddress; /* OPTIONAL */
   L4C_SS_ExtensionContainer extensionContainer; /* OPTIONAL */
}
L4C_SS_LCSClientExternalID;

/* SEQUENCE LocationType */
typedef struct L4C_SS_LocationType
{
   kal_uint8 validity;

   #define L4C_SS_LocationType_deferredLocationEventType_valid 0x01

   kal_uint8 locationEstimateType; /* MANDATORY */ /* L4C_SS_LocationEstimateType */

   L4C_SS_DeferredLocationEventType deferredLocationEventType; /* OPTIONAL */
}
L4C_SS_LocationType;

/* SEQUENCE LCS-MOLRArg */
typedef struct L4C_SS_LCS_MOLRArg
{
   kal_uint16 validity;

   #define L4C_SS_LCS_MOLRArg_locationMethod_valid 0x0200
   #define L4C_SS_LCS_MOLRArg_lcs_QoS_valid 0x0100
   #define L4C_SS_LCS_MOLRArg_lcsClientExternalID_valid 0x0080
   #define L4C_SS_LCS_MOLRArg_mlc_Number_valid 0x0040
   #define L4C_SS_LCS_MOLRArg_gpsAssistanceData_valid 0x0020
   #define L4C_SS_LCS_MOLRArg_supportedGADShapes_valid 0x0010
   #define L4C_SS_LCS_MOLRArg_lcsServiceTypeID_valid 0x0008
   #define L4C_SS_LCS_MOLRArg_ageOfLocationInfo_valid 0x0004
   #define L4C_SS_LCS_MOLRArg_locationType_valid 0x0002
   #define L4C_SS_LCS_MOLRArg_pseudonymIndicator_valid 0x0001

   kal_uint8 molr_Type; /* MANDATORY */ /* L4C_SS_MOLR_Type */
   kal_uint8 locationMethod; /* OPTIONAL */ /* L4C_SS_LocationMethod */
   L4C_SS_LCS_QoS lcs_QoS; /* OPTIONAL */
   L4C_SS_LCSClientExternalID lcsClientExternalID; /* OPTIONAL */
   L4C_SS_ISDN_AddressString mlc_Number; /* OPTIONAL */
   L4C_SS_GPSAssistanceData gpsAssistanceData; /* OPTIONAL */

   L4C_SS_SupportedGADShapes supportedGADShapes; /* OPTIONAL */

   L4C_SS_LCSServiceTypeID lcsServiceTypeID; /* OPTIONAL */
   L4C_SS_AgeOfLocationInformation ageOfLocationInfo; /* OPTIONAL */
   L4C_SS_LocationType locationType; /* OPTIONAL */
   kal_uint8 pseudonymIndicator; /* OPTIONAL */
}
L4C_SS_LCS_MOLRArg;

/* SEQUENCE LocationNotificationArg */
typedef struct L4C_SS_LocationNotificationArg
{
   kal_uint8 validity;

   #define L4C_SS_LocationNotificationArg_lcsClientExternalID_valid 0x10
   #define L4C_SS_LocationNotificationArg_lcsClientName_valid 0x08
   #define L4C_SS_LocationNotificationArg_lcsRequestorID_valid 0x04
   #define L4C_SS_LocationNotificationArg_lcsCodeword_valid 0x02
   #define L4C_SS_LocationNotificationArg_lcsServiceTypeID_valid 0x01

   kal_uint8 notificationType; /* MANDATORY */ /* L4C_SS_NotificationToMSUser */
   L4C_SS_LocationType locationType; /* MANDATORY */
   L4C_SS_LCSClientExternalID lcsClientExternalID; /* OPTIONAL */
   L4C_SS_LCSClientName lcsClientName; /* OPTIONAL */

   L4C_SS_LCSRequestorID lcsRequestorID; /* OPTIONAL */
   L4C_SS_LCSCodeword lcsCodeword; /* OPTIONAL */
   L4C_SS_LCSServiceTypeID lcsServiceTypeID; /* OPTIONAL */
}
L4C_SS_LocationNotificationArg;

/* SEQUENCE LCS-MOLRRes */
typedef struct L4C_SS_LCS_MOLRRes
{
   kal_uint8 validity;

   #define L4C_SS_LCS_MOLRRes_locationEstimate_valid 0x04
   #define L4C_SS_LCS_MOLRRes_decipheringKeys_valid 0x02
   #define L4C_SS_LCS_MOLRRes_add_LocationEstimate_valid 0x01

   L4C_SS_Ext_GeographicalInformation locationEstimate; /* OPTIONAL */
   L4C_SS_DecipheringKeys decipheringKeys; /* OPTIONAL */

   L4C_SS_Add_GeographicalInformation add_LocationEstimate; /* OPTIONAL */
}
L4C_SS_LCS_MOLRRes;
//agps end

//eq begin
typedef struct {
		
    kal_uint32 PWM1_freq_Level_Info[5];
	kal_uint32 PWM1_duty_Level_Info[5]; 
	kal_uint32 PWM2_freq_Level_Info[5]; 
	kal_uint32 PWM2_duty_Level_Info[5];
	kal_uint32 PWM3_freq_Level_Info[5]; 
	kal_uint32 PWM3_duty_Level_Info[5]; 

	kal_uint8   MainLCD_Contrast_Level_Info[15];
	kal_uint8   MainLCD_Bias_Level_Info[5];
	kal_uint8   MainLCD_Linerate_Level_Info[5];
	kal_uint8   MainLCD_Temp_Level_Info[5];
   
	kal_uint8   SubLCD_Contrast_Level_Info[15];
	kal_uint8   SubLCD_Bias_Level_Info[5];
	kal_uint8   SubLCD_Linerate_Level_Info[5];
	kal_uint8   SubLCD_Temp_Level_Info[5];

	kal_uint32   Battery_Level_Info[10];

#ifdef __MULTI_LEVEL_BACKLIGHT_SUPPORT__
        kal_uint32 bl_PWM_freq_Level_Info[PWM_MAX_BACKLIGHT_LEVEL]; 
	kal_uint32 bl_PWM_duty_Level_Info[PWM_MAX_BACKLIGHT_LEVEL]; 
#endif
}
l4c_hw_profile_struct;

typedef struct {
    kal_uint8 rtc_sec;
    kal_uint8 rtc_min;
    kal_uint8 rtc_hour;
    kal_uint8 rtc_day;
    kal_uint8 rtc_mon;
    kal_uint8 rtc_wday;
    kal_uint8 rtc_year;
} rtc_format_struct;

typedef struct {
    kal_uint8 alarm_format;
    kal_uint8 alarm_index;
    kal_uint8 type;
    kal_uint8 text[30];
    kal_uint8 recurr;
    rtc_format_struct data_time;
} rtc_alarm_info_struct;

typedef struct mmi_at_alarm_info_struct
{
   kal_uint8 alarm_index;
   kal_uint8 recurr;
   rtc_format_struct date_time;
} mmi_at_alarm_info_struct;

typedef enum{
    VT_EM_REVERSE_INVALID = -1,
    VT_EM_REVERSE_DATA = 0,
    VT_EM_REVERSE_NULL
}vt_em_reverse_channel_data_type;

typedef enum{
    VT_EM_AL_INVALID = -1,
    VT_EM_AL2_WITH_SEQUENCE_NUMBER = 0,
    VT_EM_AL2_WITHOUT_SEQUENCE_NUMBER,
    VT_EM_AL3_CONTROL_FIELD_SIZE_0,
    VT_EM_AL3_CONTROL_FIELD_SIZE_1,
    VT_EM_AL3_CONTROL_FIELD_SIZE_2
}vt_em_al_choice;

typedef enum{
    VT_EM_MUX_LEVEL_INVALID = -1,
    VT_EM_MUX_LEVEL_0 = 0,
    VT_EM_MUX_LEVEL_1,
    VT_EM_MUX_LEVEL_1_WITH_DOUBLE_FLAG,
    VT_EM_MUX_LEVEL_2,
    VT_EM_MUX_LEVEL_2_WITH_OPTIONAL_HEADER,
    VT_EM_MUX_LEVEL_3,
    VT_EM_MUX_LEVEL_3_WITH_OPTIONAL_HEADER
}vt_em_mux_level_choice;

typedef enum{
    VT_EM_WNSRP_INVALID = -1,
    VT_EM_WNSRP_OFF = 0,
    VT_EM_WNSRP_ON
}vt_em_wnsrp_choice;

typedef enum{
    VT_EM_CODEC_INVALID = -1,
    VT_EM_CODEC_MPEG4_H263 = 0,
    VT_EM_CODEC_H263_MPEG4
}vt_em_video_codec_preference_choice;

typedef enum{
    VT_EM_AUTO_DROP_INVALID = -1,
    VT_EM_DISABLE_AUTO_DROP_IF_CHANNEL_FAIL = 0,
    VT_EM_ENABLE_AUTO_DROP_IF_CHANNEL_FAIL
}vt_em_auto_drop_if_channel_fail_choice;

typedef enum{
    VT_EM_TERMINAL_TYPE_INVALID = -1,
    VT_EM_TERMINAL_TYPE_NORMAL = 0,
    VT_EM_TERMINAL_TYPE_MASTER,
    VT_EM_TERMINAL_TYPE_SLAVE
}vt_em_terminal_type_choice;

typedef struct{
    vt_em_mux_level_choice mux_level_choice;
    vt_em_wnsrp_choice  wnsrp_choice;
    vt_em_al_choice audio_al_choice;
    vt_em_al_choice video_al_choice;
    vt_em_reverse_channel_data_type video_reverse_data_type_choice;
    vt_em_video_codec_preference_choice video_codec_preference_choice;
    vt_em_auto_drop_if_channel_fail_choice auto_drop_if_channel_fail_choice;
    vt_em_terminal_type_choice  terminal_type_choice;
    kal_int32 timer_T101; //default =  -1  (if its value equals -1, no change should be made) 
    kal_int32 timer_T109; //default =  -1  (if its value equals -1, no change should be made) 
    kal_int32 timer_T401; //default =  -1  (if its value equals -1, no change should be made) 
    kal_int32   user_specified_1; //default =  -1  (if its value equals -1, no change should be made) 
    kal_int32   user_specified_2; //default =  -1  (if its value equals -1, no change should be made) 
    kal_uint8   user_specified_3[64]; //get input length by strlen() (end by EOF)
}vt_em_config_struct;

typedef struct
{			
	kal_uint8	mcc[3];	//MCC
	kal_uint8	mnc[3];	//MNC
	kal_uint8	lac[2];	//LAC
	kal_uint16	cell_id;	 //cell ID
	kal_uint8	nc_info_index; // index in rlc array to acquire the corresponding arfcn, bsic, rxlevel...
    kal_uint8       rac;//RAC EM_RAC
#ifdef __PS_SERVICE__
    /*091014 WISDOM_EM Michael Shuang NMO*/
    kal_uint8 nmo;
#endif
    kal_uint8 supported_Band;
} rr_em_lai_info_struct;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif

typedef struct
{
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
    kal_uint8 unused;
}pmu6223_config_param_struct;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif

typedef struct
{
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
    kal_uint8 unused;
}pmu6238_config_param_struct;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
typedef struct
{
    //pmu6326_read_reg_struct read_reg;
    //pmu6326_write_reg_struct write_reg;
    kal_uint8 unused;
}pmu6326_config_param_struct;
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif

typedef struct
{
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
    kal_uint8 unused;
}pmic_config_param_struct;

typedef struct
{
    kal_uint8	ref_count; 
    kal_uint16	msg_len;
    
    kal_uint16 arfcn;    /* input */
    kal_int16 afc;       /* input */
    kal_uint8 band;      /* input */
    kal_int8   tsc;      /* input */
    kal_int8   pcl;      /* input */
    kal_uint8   pattern; /* input */
}rf_test_gsm_tx_test_struct, l4cl1_em_rf_test_gsm_tx_test_req_struct;

typedef struct
{
    kal_uint8	ref_count; 
    kal_uint16	msg_len;
    
    kal_int16 arfcn;      /* input */
    kal_int16 gain;       /* input */
    kal_uint8 band;       /* input */
    kal_uint8  pattern;   /* input */
}rf_test_gsm_rx_test_struct, l4cl1_em_rf_test_gsm_rx_test_req_struct;

typedef struct
{
    kal_uint8	ref_count; 
    kal_uint16	msg_len;

    kal_uint8 band;                /* input */   
    kal_int16 arfcn_in;            /* input */
    kal_int16 arfcn_out[20];       /* output */
    kal_int16 power[20];           /* output */    
}rf_test_gsm_power_scan_struct, 
l4cl1_em_rf_test_gsm_power_scan_req_struct, 
l4cl1_em_rf_test_gsm_power_scan_cnf_struct;

typedef struct
{
    rf_test_gsm_tx_test_struct gsm_tx_test;
    rf_test_gsm_rx_test_struct gsm_rx_test;   
    rf_test_gsm_power_scan_struct gsm_power_scan;    
}rf_test_gsm_param_struct;

typedef struct
{
    kal_uint8 mono_enable;    /* input */
}fm_radio_mono_struct;
  
typedef struct
{
    kal_uint8 stereo_enable;  /* input */
    kal_uint8 sblend_onoff;    /* input */
}fm_radio_stereo_struct;

typedef struct
{
    kal_uint8 level;                  /* input */   
}fm_radio_rssi_struct;

typedef struct
{
    kal_uint8 item_value;          /* input */   
}fm_radio_if_count_delta_struct;

typedef struct
{
    fm_radio_mono_struct fm_radio_mono;
    fm_radio_stereo_struct fm_radio_stereo;   
    fm_radio_rssi_struct fm_radio_rssi;    
    fm_radio_if_count_delta_struct fm_radio_if;
}fm_radio_config_param_struct;

typedef struct
{
    kal_uint8 ich;    /* output */
    kal_uint8 qch;   /* output */
}rf_test_wifi_tx_get_dac_offset_struct;

typedef struct
{
    kal_uint8 contry_code[2];   /* input */
    kal_uint32 ch_freq;               /* input */
    kal_uint8 tx_rate;  /* input */    
    kal_uint8 tx_ant;                /* input */
    kal_uint8 gain;                   /* input */
    wndrv_test_bandwidth_enum txBw;
    wndrv_test_guard_intval_enum txGI;
    wndrv_test_mode_sel_enum txMode;
}rf_test_wifi_tx_common_struct;

typedef struct
{
    kal_uint8 contry_code[2];      /* input */
    kal_uint32 ch_freq;                 /* input */
    kal_uint8 tx_rate;  /* input */
    kal_uint8 tx_ant;                     /* input */
    kal_uint8 gain;                        /* input */
    kal_uint32 pkt_count;             /* input */
    kal_uint32 pkt_interval;         /* input */
    kal_uint32 pkt_length;             /* input */
    kal_uint8 tx_pattern;               /* input */
    kal_bool short_peramble;       /* input */
    kal_uint8 mac_header[24];     /* input */
    wndrv_test_bandwidth_enum txBw;                       /* input */
    wndrv_test_guard_intval_enum txGI;                         /* input */
    wndrv_test_mode_sel_enum txMode;                 /* input */
}rf_test_wifi_tx_cont_pkt_struct;

typedef struct
{
    kal_uint32 ch_freq;                     /* input */
    kal_uint32 pau_total;                  /* output -- pau_rx_ptk_count */
    kal_uint32 pau_err;                    /* output -- pau_crc_err_count */
    kal_uint32 pau_ccca;                  /* output -- pau_cca_count */
    kal_uint32 pau_fifo_full;            /* output -- pau_rx_fifo_full_count */
    kal_uint32 int_ok;                      /* int_rx_ok_num */
    kal_uint32 int_err;                     /* int_crc_err_num */
    kal_uint32 rssi_mean;                /* int_rssi_mean */
    kal_uint32 rssi_max;                  /* int_rssi_max */
    kal_uint32 rssi_min;                    /* int_rssi_min */
    kal_uint32 rssi_variance;            /* int_rssi_variance */
    kal_uint32 int_long_preamble;    /* int_long_preamble_num */
    kal_uint32 int_short_preamble;   /* int_short_preamble_num */
    wndrv_test_bandwidth_enum   rxBw;                         /* input */ 
}rf_test_wifi_rx_cont_pkt_struct;

typedef struct
{
    kal_uint8 pwr_mgt;     /* input */
}rf_test_wifi_power_save_struct;

typedef struct
{
    kal_uint32 mcr_index;
    kal_uint32 mcr32;
}rf_test_wifi_reg_mcr32_write_struct;

typedef struct
{
    kal_uint32 mcr_index;  /* input */
    kal_uint32 mcr32;         /* output */
}rf_test_wifi_reg_mcr32_read_struct;

typedef struct
{
    kal_uint32 mcr_index;  /* input */
    kal_uint16 mcr16;         /* input */
}rf_test_wifi_reg_mcr16_write_struct;

typedef struct
{
    kal_uint32 mcr_index;      /* intput */
    kal_uint16 mcr16;             /* output */
}rf_test_wifi_reg_mcr16_read_struct;

typedef struct
{
    kal_uint32 bbcr_index;   /* intput */
    kal_uint8 bbcr;              /* intput */
}rf_test_wifi_reg_bbcr_write_struct;

typedef struct
{
    kal_uint32 bbcr_index;    /* intput */
    kal_uint8 bbcr;               /* output */
}rf_test_wifi_reg_bbcr_read_struct;

typedef struct
{
    kal_uint32 eeprom_index;   /* intput */
    kal_uint16 eeprom;              /* intput */
}rf_test_wifi_reg_eeprom_write_struct;

typedef struct
{
    kal_uint32 eeprom_index;      /* intput */
    kal_uint16 eeprom;                 /* output */
}rf_test_wifi_reg_eeprom_read_struct;

typedef struct
{
    kal_uint32 efuse_index; /* intput */
    kal_uint32 efuse; /* intput */
}rf_test_wifi_reg_efuse_write_struct;

typedef struct
{
    kal_uint32 efuse_index; /* intput */
    kal_uint32 efuse; /* intput */
}rf_test_wifi_reg_efuse_read_struct;

typedef struct
{
    rf_test_wifi_tx_get_dac_offset_struct wifi_get_dac;
    rf_test_wifi_tx_common_struct wifi_tx_common;
    rf_test_wifi_tx_cont_pkt_struct wifi_tx_cont_pkt;
    rf_test_wifi_rx_cont_pkt_struct wifi_rx_cont_pkt;
    rf_test_wifi_power_save_struct wifi_power_save;
    rf_test_wifi_reg_mcr32_write_struct wifi_mcr32_write;
    rf_test_wifi_reg_mcr32_read_struct wifi_mcr32_read;
    rf_test_wifi_reg_mcr16_write_struct wifi_mcr16_write;
    rf_test_wifi_reg_mcr16_read_struct wifi_mcr16_read;
    rf_test_wifi_reg_bbcr_write_struct wifi_bbcr_write;
    rf_test_wifi_reg_bbcr_read_struct wifi_bbcr_read;
    rf_test_wifi_reg_eeprom_write_struct wifi_eeprom_write;
    rf_test_wifi_reg_eeprom_read_struct wifi_eeprom_read;
    rf_test_wifi_reg_efuse_write_struct wifi_efuse_write;
    rf_test_wifi_reg_efuse_read_struct  wifi_efuse_read;
}rf_test_wifi_param_struct;


//eq end

typedef struct 
{
    kal_uint8 addr_length;
    kal_uint8 addr_bcd[11];
}l4c_sms_addr_struct;

typedef struct 
{
	l4c_sms_addr_struct          sca;
	kal_uint8	tpdu[176];
	kal_uint8 pdu_len;
	kal_uint8 tpdu_len;
}l4c_usm_cmgw_struct;

typedef struct 
{
	kal_uint8 mode;
	kal_uint8	mt;
	kal_uint8 bm;
	kal_uint8 ds;
	kal_uint8 bfr;
}l4c_usm_cnmi_struct;

typedef struct 
{
	kal_uint16	reply_index;
	kal_uint16	data_len;
	kal_uint8		length;
	kal_uint8		pdu[176];
}l4c_usm_cmss_struct;

typedef struct {
   l4_name_struct name;
   l4c_number_struct number_info;
} l4c_sms_mailbox_info_struct;

typedef struct {
    kal_uint8  line_no; /* Number of Line*/
    kal_uint8  msp_no;
    kal_uint8  waiting_num;
    kal_uint8  ind_type;
    kal_bool   is_show_num;
    kal_bool   is_clear;
    kal_bool   is_from_storage;
} l4csmsal_msg_waiting_ind_ext_struct;

typedef struct {
   kal_uint16 mid[40];      // = [SMSAL_MMI_CBMI_MAX_ENTRY]
   kal_uint16 dcs[30];      // = [SMSAL_CB_MAX_ENTRY]
   kal_uint16 mir[60];      // = [SMSAL_CB_MAX_ENTRY*2]
   kal_uint8 mid_mask[40];  // = [SMSAL_MMI_CBMI_MAX_ENTRY]
   kal_uint8 mir_mask[30];  // = [SMSAL_CB_MAX_ENTRY]
   kal_uint8 dcs_mask[30];  // = [SMSAL_CB_MAX_ENTRY]
   kal_uint8 para_ind; /* used in set_cb_mode_req only */

   kal_bool is_all_language_on;

   /* used in get_cb_mode_cnf */
   kal_bool     is_cb_ready;
   kal_bool     is_sim_change;
} l4c_cb_info_struct;

typedef struct {
    kal_uint16 ref; /* concat. message reference*/
    kal_uint8 total_seg; /* total segments*/
    kal_uint8 seg; /* indicate which segment*/
} smsal_concat_struct;

typedef struct {
    kal_uint8 mem1; /* Storage type for Memory1*/
    kal_uint8 mem2; /* Storage type for Memory2*/
    kal_uint8 mem3; /* Storage type for Memory3*/
    kal_uint16 used1;
    kal_uint16 used2;
    kal_uint16 used3;
    kal_uint16 total1;
    kal_uint16 total2;
    kal_uint16 total3;
} smsal_prefer_storage_struct;

/* Message Waiting Indication Status */
typedef struct
{
#ifdef __REL6__
    kal_uint8 mbi_id[5]; //5 = NUM_OF_MSG_WAITING_TYPE
#else
   kal_uint8 mbi_id[4]; //4 = NUM_OF_MSG_WAITING_TYPE
#endif
} smsal_mbi_struct;

typedef struct {
    kal_uint8  mti; /* smsal_mti_enum */
    kal_uint8  status; /* Status of message*/
    kal_uint8  storage_type;
    kal_uint16 index; /* Index of message*/
} smsal_inbox_struct;

typedef struct {
    kal_uint16 msg_count; /* Message Count*/
    smsal_inbox_struct inbox_list[40];
} smsal_inbox_list_struct;

typedef struct {
    kal_uint8  mti; /* smsal_mti_enum */
    kal_uint8  status; /* Status of message*/
    kal_uint8  storage_type;
    kal_uint16 index; /* Index of message*/
} smsal_outbox_struct;

typedef struct {
    kal_uint16 msg_count; /* Message Count*/
    smsal_outbox_struct outbox_list[40];
} smsal_outbox_list_struct;

// Enhanced Voice Mail Information
typedef struct
{
    kal_uint16  id;

    kal_uint8   msg_len_insec;
    kal_uint8   msg_retention_day;  // max 31

    kal_uint8   priority;

    kal_uint8   msg_ext_flg;

    l4_addr_bcd_struct   calling_line_addr;

    kal_uint8   msg_ext_len;
    kal_uint8   *msg_ext_data;
}smsal_evmi_msg_struct;

typedef struct {
    kal_uint8 addr_length;
    kal_uint8 addr_bcd[11];
} sms_addr_struct;

typedef struct {
   kal_uint8 storage;
   kal_uint8 type;
   kal_uint8 num_index; 
   kal_uint8 aas_id;
   kal_uint16 index;
   kal_uint16 record_index;
   l4c_number_struct tel;
   l4_name_struct alpha_id;
} l4c_phb_entry_struct;

typedef struct {
#if defined(__VOIP__) || defined(__VIDEO_CALL_SUPPORT__)
   kal_uint8 address_type;
   union
   {
      l4c_number_struct tel;
      kal_uint8 uri[VOIP_URI_LEN];
   } address;
#else
   l4c_number_struct tel;
#endif /* defined(__VOIP__) || defined(__VIDEO_CALL_SUPPORT__) */
   l4_name_struct alpha_id;
   rtc_format_struct time;
   kal_uint8 count;
   kal_uint8 call_status;
   kal_int32 call_duration;
} l4c_phb_ln_entry_struct;

typedef struct { 
    kal_uint16 record_size;   /* size of record in storage */
    kal_uint16 record_num;    /* rec number */
    kal_uint8  alpha_length;  /* alpha length */
    kal_uint8 occurrence;
    kal_bool is_support;      /* to indicate the EF is supported or not */
} l4c_phb_desc_struct;

typedef struct {
    kal_uint8 ref_count;
    kal_uint16 msg_len;
    l4c_phb_desc_struct desc[PHB_TYPE_TOTAL];
} l4cphb_startup_begin_ind_struct;

typedef l4_name_struct phb_sne_struct;
typedef l4_name_struct phb_aas_struct;
typedef l4_name_struct phb_gas_struct;

typedef struct {
    kal_uint8 email_length;
    kal_uint16 record_index; /* Record index in physical storage*/
    kal_uint16 adn_record_index; /* adn record index */
    kal_uint8 email_address[PHB_MAX_EMAIL_LENGTH]; /* email address */
} phb_email_struct;

typedef struct
{
    kal_uint8 gas_id[PHB_MAX_ASSOCIATE_GRP];
} phb_grp_struct;

typedef struct
{
    kal_uint8 ctrl_info;
    kal_uint8 hidden_info;
} phb_pbc_struct;

typedef union {
    phb_sne_struct sne;
    phb_aas_struct aas;
    phb_gas_struct gas;
    phb_grp_struct grp;
    phb_email_struct email;
    phb_pbc_struct pbc;
} l4c_phb_usim_field;

typedef struct {
    l4c_phb_usim_field field;
} l4c_phb_usim_entry;

typedef struct {
   kal_uint8 storage;
   kal_uint8 type;
   kal_uint16 index;
   kal_uint16 record_index;
   l4_addr_bcd_struct tel;
   l4_name_struct alpha_id;
} l4c_phb_bcd_entry_struct;


typedef struct
{
	kal_uint16 num_of_entry;
	l4c_phb_bcd_entry_struct	phb_entry[1000/NVRAM_PHB_SIZE];
} l4c_phb_entries_struct;

/* for AT/MMI */
typedef struct {
   kal_uint8   plmn_id[7];
   kal_uint8   status; /*l4c_cops_status_enum*/
} l4c_plmn_info_struct;

#if defined(__PLMN_LIST_WITH_CELL_INFO__)
typedef struct {
    kal_uint16       arfcn;
    kal_int16        rxlev;
    kal_uint8        bsic;
    kal_uint8        la_code[2];
    kal_uint16       cell_id;
}l4c_location_cell_info_struct;
#endif

typedef struct {
   kal_uint8   plmn_id[7];
   kal_uint8   status; /*l4c_cops_status_enum*/
   kal_uint8 rat;
   kal_uint8 lac[2];
   #if defined(__PLMN_LIST_WITH_CELL_INFO__)
   l4c_location_cell_info_struct cell_list[MAX_NUM_CELL_PER_PLMN];
   #endif
} l4c_rat_plmn_info_struct;

typedef struct l4c_nw_time_zone_time_struct
{
	kal_uint8 year;
	kal_uint8 month;
	kal_uint8 day;
	kal_uint8 hour;
	kal_uint8 min;
	kal_uint8 sec;
	kal_uint8 time_zone;
} l4c_nw_time_zone_time_struct;

//mtk01616_080301: NOTE! this structure should sync with rac_ecc_number_struct
typedef struct l4c_rac_ecc_number_struct
{
	kal_uint8          category;
	l4_addr_bcd_struct	tel_number;
} l4c_rac_ecc_number_struct;

//mtk02374
typedef struct {
    kal_uint8 chv1_count;
    kal_uint8 chv2_count;
    kal_uint8 ubchv1_count;
    kal_uint8 ubchv2_count;
    kal_uint8 is_chv1_enabled;
    kal_uint8 is_chv1_verified;
    kal_uint8 is_chv2_enabled;
    kal_uint8 is_chv2_verified;
    kal_uint8 chv_key_ref[2];
} sim_chv_info_struct;

typedef struct {
    kal_uint8 chv1_status;
    kal_uint8 chv2_status;
    kal_uint8 ubchv1_status;
    kal_uint8 ubchv2_status;
} sim_chv_status_struct;

typedef struct {
    kal_uint8 ecc[3];
    kal_uint8 esc; // emergency service category //
    kal_uint8 name_length;
    kal_uint8 name_dcs;
    kal_uint8 name[MAX_SIM_NAME_LEN]; 
} sim_ecc_entry_struct;

typedef struct {
   kal_uint8 alpha_id_dcs;
   kal_uint8 alpha_id_size;
   kal_uint8 alpha_id[32];
   kal_uint8 ton_npi;
   kal_uint8 digit_size;
   kal_uint8 digit[41];
} l4csmu_addr_struct;

typedef struct {
   kal_uint8 alpha_id_size;
   kal_uint8 alpha_id[21];
   kal_uint8 ton_npi;
   kal_uint8 digit_size;
   kal_uint8 digit[4];//[41];
   kal_uint8 index_level;
   kal_bool network_specific;
   kal_bool premium_rate;
} l4csmu_info_num_struct;

typedef struct {
    kal_uint8   rand[16];
    kal_bool    is_auth_present;
    kal_uint8   auth[16];
    sim_interface_enum   sim_id;
} smu_supc_sim_authenticate_request_struct;

typedef struct {
    kal_uint16 result;
    kal_uint8   kc[8];
    kal_uint8   sres[4];
    kal_uint8   ck[16];
    kal_uint8   ik[16];
    kal_uint8   res[16];
    kal_uint8   res_len;
    kal_uint8   auts[16];
    kal_uint8   auts_len;
} smu_supc_sim_authenticate_response_struct;

#endif