rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 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 | /******************************************************************************* |
| 37 | * Filename: |
| 38 | * --------- |
| 39 | * l4bnw_public_struct.h |
| 40 | * |
| 41 | * |
| 42 | * Description: |
| 43 | * ------------ |
| 44 | * This is the header file of l4bnw_public_struct.c |
| 45 | * |
| 46 | * Author: |
| 47 | * ------- |
| 48 | * ------- |
| 49 | * |
| 50 | *******************************************************************************/ |
| 51 | |
| 52 | #ifndef _L4BNW_PUBLIC_STRUCT_H |
| 53 | #define _L4BNW_PUBLIC_STRUCT_H |
| 54 | |
| 55 | #include "kal_general_types.h" |
| 56 | #include "kal_public_defs.h" |
| 57 | #include "l3_inc_enums_public.h" |
| 58 | #if (!defined(__MAUI_BASIC__)) && (!(defined(__NR_L1SIM__) || defined(__LTE_L1SIM__))) |
| 59 | #include "l3_inc_local.h" |
| 60 | #endif |
| 61 | #include "ps_public_enum.h" |
| 62 | |
| 63 | typedef struct { |
| 64 | |
| 65 | /** Only expects the below values from rat_enum: |
| 66 | * RAT_NONE = 0, |
| 67 | * RAT_GSM = 1, |
| 68 | * RAT_UMTS = 2, |
| 69 | * RAT_LTE = 4, |
| 70 | * RAT_C2K = 16, |
| 71 | * RAT_1xRTT = 32, |
| 72 | * RAT_HRPD = 64, |
| 73 | */ |
| 74 | rat_enum currently_attached_rat; |
| 75 | rat_enum cs_currently_attached_rat; |
| 76 | |
| 77 | l4c_data_speed_support_enum data_speed_support; |
| 78 | l4c_data_speed_support_enum cs_data_speed_support; |
| 79 | |
| 80 | kal_uint8 plmn[MAX_PLMN_LEN+1]; /* in string format, from +EOPS */ |
| 81 | kal_uint8 cs_plmn[MAX_PLMN_LEN+1]; /* in string format, from +EOPS */ |
| 82 | |
| 83 | kal_uint32 lac; /* LAC or TAC within PS domain - 2/3/4G: 2-byte; 5G: 3-byte */ |
| 84 | kal_uint32 cs_lac; /* LAC or TAC within CS domain - 2/3/4G: 2-byte; 5G: 3-byte */ |
| 85 | |
| 86 | kal_uint64 ci; /* from +CGREG */ |
| 87 | kal_uint64 cs_ci; /* from +CREG */ |
| 88 | |
| 89 | kal_uint8 is_roaming; |
| 90 | kal_uint8 cs_is_roaming; |
| 91 | |
| 92 | kal_uint8 ps_state; /* from +EGREG */ |
| 93 | kal_uint8 cs_state; /* from +EREG */ |
| 94 | |
| 95 | kal_bool is_home_country; |
| 96 | kal_bool is_hplmn; |
| 97 | |
| 98 | /* C2K cell info */ |
| 99 | kal_uint16 sid; |
| 100 | kal_uint16 nid; |
| 101 | kal_uint8 pzid; |
| 102 | kal_uint16 base_id; |
| 103 | kal_uint32 sector_id[4]; |
| 104 | kal_uint8 subnet_length; |
| 105 | kal_uint8 carrier_id[7]; |
| 106 | //kal_uint8 sid[IMC_MAX_SID_LEN]; /* in string format */ |
| 107 | //kal_uint8 nid[IMC_MAX_NID_LEN]; /* in string format */ |
| 108 | //kal_uint8 pzid[IMC_MAX_PZID_LEN]; /* in string format */ |
| 109 | //kal_uint8 base_id[IMC_MAX_BASE_ID_LEN]; /* in string format */ |
| 110 | //kal_uint8 sector_id[IMC_MAX_SECTOR_ID_LEN]; /* in string format */ |
| 111 | //kal_uint8 subnet_length[IMC_MAX_SUBNET_LENGTH_LEN]; /* in string format */ |
| 112 | //kal_uint8 carrier_id[IMC_MAX_CARRIER_ID_LEN]; /* in string format */ |
| 113 | } l4bnw_public_attached_network_info_struct; |
| 114 | |
| 115 | typedef struct { |
| 116 | LOCAL_PARA_HDR |
| 117 | l4bnw_public_attached_network_info_struct attached_network_info; |
| 118 | } l4bnw_attached_rat_ind_struct, imsm_l4bnw_attached_rat_ind_struct, iwlan_l4bnw_attached_rat_ind_struct,ssds_l4bnw_attached_rat_ind_struct; |
| 119 | |
| 120 | #if (!defined(__MAUI_BASIC__)) && (!(defined(__NR_L1SIM__) || defined(__LTE_L1SIM__))) |
| 121 | typedef struct |
| 122 | { |
| 123 | LOCAL_PARA_HDR |
| 124 | kal_uint8 barring_rat; |
| 125 | kal_uint16 barring_service; |
| 126 | plmn_id_struct plmn; |
| 127 | kal_uint8 carrier_id[6]; |
| 128 | } iwlan_l4bnw_force_bar_ind_struct; |
| 129 | #endif |
| 130 | |
| 131 | #endif /* _L4BNW_PUBLIC_STRUCT_H */ |
| 132 | |
| 133 | |