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 | * cmux_vp_num.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MAUI |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * Header file for CMUX Virtual Port Number Inclusion |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | *============================================================================== |
| 54 | * HISTORY |
| 55 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 56 | *------------------------------------------------------------------------------ |
| 57 | * removed! |
| 58 | * |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * removed! |
| 63 | * |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * |
| 69 | * removed! |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * removed! |
| 78 | * |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * removed! |
| 82 | * removed! |
| 83 | * |
| 84 | * removed! |
| 85 | * removed! |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * |
| 89 | * removed! |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * removed! |
| 93 | * |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * removed! |
| 97 | * |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * removed! |
| 101 | * |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * removed! |
| 105 | * |
| 106 | * removed! |
| 107 | * removed! |
| 108 | * removed! |
| 109 | * |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * removed! |
| 113 | * |
| 114 | * removed! |
| 115 | * removed! |
| 116 | * removed! |
| 117 | * |
| 118 | * removed! |
| 119 | * removed! |
| 120 | * removed! |
| 121 | * |
| 122 | * removed! |
| 123 | * removed! |
| 124 | * removed! |
| 125 | * |
| 126 | * removed! |
| 127 | * removed! |
| 128 | * removed! |
| 129 | * |
| 130 | * removed! |
| 131 | * removed! |
| 132 | * removed! |
| 133 | * |
| 134 | * removed! |
| 135 | * removed! |
| 136 | * removed! |
| 137 | * |
| 138 | * removed! |
| 139 | * removed! |
| 140 | * removed! |
| 141 | * |
| 142 | * removed! |
| 143 | * removed! |
| 144 | * removed! |
| 145 | * |
| 146 | * removed! |
| 147 | * removed! |
| 148 | * removed! |
| 149 | * |
| 150 | * removed! |
| 151 | * removed! |
| 152 | * removed! |
| 153 | * |
| 154 | * removed! |
| 155 | * removed! |
| 156 | * removed! |
| 157 | * |
| 158 | * removed! |
| 159 | * removed! |
| 160 | * removed! |
| 161 | * |
| 162 | *------------------------------------------------------------------------------ |
| 163 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 164 | *============================================================================== |
| 165 | ******************************************************************************/ |
| 166 | |
| 167 | #ifndef CMUX_VP_NUM_H |
| 168 | #define CMUX_VP_NUM_H |
| 169 | /******************************************************************************/ |
| 170 | |
| 171 | #include "global_def.h" |
| 172 | |
| 173 | /******************************************************************************/ |
| 174 | |
| 175 | // CMUX_VP_NUM_FOR_ATCI |
| 176 | #define CMUX_VP_NUM_FOR_ATCI 5 |
| 177 | #define CMUX_VP_NUM_FOR_ATCI_EX 6 |
| 178 | |
| 179 | #define CMUX_VP_NUM_FOR_ATCI_CSD 0 |
| 180 | |
| 181 | // CMUX_VP_NUM_FOR_VT |
| 182 | #if defined(__VT_TRANSPORT_SUPPORT__) |
| 183 | #define CMUX_VP_NUM_FOR_VT 1 |
| 184 | #else |
| 185 | #define CMUX_VP_NUM_FOR_VT 0 |
| 186 | #endif |
| 187 | |
| 188 | // CMUX_VP_NUM_FOR_CS |
| 189 | #if defined(__DATA_CARD_SPEECH__) |
| 190 | #define CMUX_VP_NUM_FOR_CS 1 |
| 191 | #else |
| 192 | #define CMUX_VP_NUM_FOR_CS 0 |
| 193 | #endif |
| 194 | |
| 195 | //CMUX_VP_NUM_FOR_ATCI_IMS |
| 196 | #define CMUX_VP_NUM_FOR_ATCI_IMS 2 |
| 197 | |
| 198 | //CMUX_VP_NUM_FOR_ATCI_IMS_SMS |
| 199 | #define CMUX_VP_NUM_FOR_ATCI_IMS_SMS 4 |
| 200 | |
| 201 | //CMUX_VP_NUM_FOR_NETIF_CONTROL |
| 202 | #define CMUX_VP_NUM_FOR_NETIF_CONTROL 2 |
| 203 | |
| 204 | /******************************************************************************/ |
| 205 | |
| 206 | // CMUX_VP_NUM_FOR_SINGLE_SIM is used for users of CMUX |
| 207 | // referenced by ATCI |
| 208 | #ifdef __CMUX_SUPPORT__ |
| 209 | #define CMUX_VP_NUM_FOR_SINGLE_SIM (CMUX_VP_NUM_FOR_ATCI) |
| 210 | #define CMUX_VPEX_NUM_FOR_SINGLE_SIM (CMUX_VP_NUM_FOR_ATCI_EX) |
| 211 | #define CMUX_VPEX_TOTAL_NUM (((CMUX_VP_NUM_FOR_ATCI_EX) \ |
| 212 | * (MAX_SIM_NUM)) + CMUX_VP_NUM_FOR_ATCI_CSD + CMUX_VP_NUM_FOR_ATCI_IMS \ |
| 213 | + CMUX_VP_NUM_FOR_ATCI_IMS_SMS + CMUX_VP_NUM_FOR_NETIF_CONTROL) |
| 214 | #else |
| 215 | #define CMUX_VP_NUM_FOR_SINGLE_SIM 0 |
| 216 | #define CMUX_VPEX_NUM_FOR_SINGLE_SIM 0 |
| 217 | #define CMUX_VPEX_TOTAL_NUM 0 |
| 218 | #endif |
| 219 | |
| 220 | /******************************************************************************/ |
| 221 | |
| 222 | // CMUX_DLC_NUM is used by CMUX |
| 223 | // referenced in cmux_def.h |
| 224 | #ifdef __CMUX_SUPPORT__ |
| 225 | #define CMUX_DLC_NUM (((CMUX_VP_NUM_FOR_ATCI + CMUX_VP_NUM_FOR_ATCI_EX) \ |
| 226 | * (MAX_SIM_NUM)) + CMUX_VP_NUM_FOR_ATCI_CSD + CMUX_VP_NUM_FOR_ATCI_IMS + CMUX_VP_NUM_FOR_VT \ |
| 227 | + CMUX_VP_NUM_FOR_CS + CMUX_VP_NUM_FOR_ATCI_IMS_SMS + CMUX_VP_NUM_FOR_NETIF_CONTROL) |
| 228 | #else |
| 229 | #define CMUX_DLC_NUM 0 |
| 230 | #endif |
| 231 | |
| 232 | /******************************************************************************/ |
| 233 | |
| 234 | // CMUX_VP_NUM is used for uart provider |
| 235 | // referenced in enum UART_PORT |
| 236 | #ifdef __CMUX_SUPPORT__ |
| 237 | #define CMUX_VP_NUM (CMUX_DLC_NUM) |
| 238 | #else |
| 239 | #define CMUX_VP_NUM 0 |
| 240 | #endif |
| 241 | |
| 242 | /******************************************************************************/ |
| 243 | #endif /* CMUX_VP_NUM_H */ |
| 244 | |