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) 2007 |
| 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 | * general_qos_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MOLY |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | * ========================================================================== |
| 54 | * removed! |
| 55 | * |
| 56 | * removed! |
| 57 | * removed! |
| 58 | * removed! |
| 59 | * |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * removed! |
| 63 | * |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * removed! |
| 70 | * |
| 71 | * |
| 72 | ****************************************************************************/ |
| 73 | |
| 74 | #ifndef _GENERAL_QOS_STRUCT_H |
| 75 | #define _GENERAL_QOS_STRUCT_H |
| 76 | |
| 77 | #include "kal_general_types.h" |
| 78 | |
| 79 | /* Handling for the QoS values: |
| 80 | |
| 81 | - For UL direction: |
| 82 | =================================================================== |
| 83 | Bitrate | TCM SIC | TCM SIC | |
| 84 | | = Use R15 Qos | = No R15 QoS | |
| 85 | =================================================================== |
| 86 | < 10Gbps | Pre-5G values: | Pre-5G values: | |
| 87 | | - L4C decodes u8 data | - L4C decodes u8 data | |
| 88 | | - TCM fills-in values | - TCM fills-in values | |
| 89 | | is_use_ext_qos = F | is_use_ext_qos = F | |
| 90 | | is_use_full_r11_qos = F | is_use_full_r11_qos = F | |
| 91 | ------------------------------------------------------------------- |
| 92 | >=10Gbps | Pre-5G values: | Pre-5G values: | |
| 93 | | - TCM would not fill them | - TCM would not fill them | |
| 94 | | - Let ESM fill values | - Let ESM fill values | |
| 95 | | is_use_ext_qos = T | is_use_ext_qos = F | |
| 96 | | is_use_full_r11_qos = F | is_use_full_r11_qos = T | |
| 97 | =================================================================== |
| 98 | |
| 99 | - For DL direction: |
| 100 | - If NW gave extended QoS, ESM decodes them and fill-in struct (is_use_ext_qos and its value) |
| 101 | - If NW did not give extended QoS, ESM decodes them and fill into old u8 data fields |
| 102 | - ESM no need to fill-in the is_use_full_r11_qos (it is used in UL direction) */ |
| 103 | typedef struct |
| 104 | { |
| 105 | kal_uint8 qci; |
| 106 | kal_bool bit_rate_present; |
| 107 | kal_bool bit_rate_ext_present; |
| 108 | kal_bool bit_rate_ext2_present; |
| 109 | kal_uint8 ul_mbr; |
| 110 | kal_uint8 dl_mbr; |
| 111 | kal_uint8 ul_gbr; |
| 112 | kal_uint8 dl_gbr; |
| 113 | kal_uint8 ul_mbr_ext; |
| 114 | kal_uint8 dl_mbr_ext; |
| 115 | kal_uint8 ul_gbr_ext; |
| 116 | kal_uint8 dl_gbr_ext; |
| 117 | kal_uint8 ul_mbr_ext2; |
| 118 | kal_uint8 dl_mbr_ext2; |
| 119 | kal_uint8 ul_gbr_ext2; |
| 120 | kal_uint8 dl_gbr_ext2; |
| 121 | |
| 122 | // __R15.4__ |
| 123 | kal_bool is_use_full_r11_qos; // if KAL_TRUE, don't encode extended EPS QoS |
| 124 | |
| 125 | kal_bool is_use_ext_qos_for_dl_gbr; |
| 126 | kal_bool is_use_ext_qos_for_ul_gbr; |
| 127 | kal_bool is_use_ext_qos_for_dl_mbr; |
| 128 | kal_bool is_use_ext_qos_for_ul_mbr; |
| 129 | |
| 130 | kal_uint64 ext_eps_qos_dl_gbr; |
| 131 | kal_uint64 ext_eps_qos_ul_gbr; |
| 132 | kal_uint64 ext_eps_qos_dl_mbr; |
| 133 | kal_uint64 ext_eps_qos_ul_mbr; |
| 134 | } eps_qos_struct; |
| 135 | |
| 136 | #endif /* _GENERAL_QOS_STRUCT_H */ |