1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * The full GNU General Public License is included in this distribution in the 15 * file called LICENSE. 16 * 17 * Contact Information: 18 * wlanfae <wlanfae@realtek.com> 19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 * Hsinchu 300, Taiwan. 21 * 22 * Larry Finger <Larry.Finger@lwfinger.net> 23 * 24 *****************************************************************************/ 25 26 /*Image2HeaderVersion: R3 1.5.10.1*/ 27 #if (RTL8821C_SUPPORT == 1) 28 #ifndef __INC_MP_RF_HW_IMG_8821C_H 29 #define __INC_MP_RF_HW_IMG_8821C_H 30 31 /* Please add following compiler flags definition (#define CONFIG_XXX_DRV_DIS) 32 * into driver source code to reduce code size if necessary. 33 * #define CONFIG_8821C_DRV_DIS 34 * #define CONFIG_8821C_TYPE0X20_DRV_DIS 35 * #define CONFIG_8821C_TYPE0X28_DRV_DIS 36 * #define CONFIG_8821C_FCCSAR_DRV_DIS 37 * #define CONFIG_8821C_ICSAR_DRV_DIS 38 * #define CONFIG_8821C_LOWPOWER_DRV_DIS 39 */ 40 41 #define CONFIG_8821C 42 #ifdef CONFIG_8821C_DRV_DIS 43 #undef CONFIG_8821C 44 #endif 45 46 #define CONFIG_8821C_TYPE0X20 47 #ifdef CONFIG_8821C_TYPE0X20_DRV_DIS 48 #undef CONFIG_8821C_TYPE0X20 49 #endif 50 51 #define CONFIG_8821C_TYPE0X28 52 #ifdef CONFIG_8821C_TYPE0X28_DRV_DIS 53 #undef CONFIG_8821C_TYPE0X28 54 #endif 55 56 #define CONFIG_8821C_FCCSAR 57 #ifdef CONFIG_8821C_FCCSAR_DRV_DIS 58 #undef CONFIG_8821C_FCCSAR 59 #endif 60 61 #define CONFIG_8821C_ICSAR 62 #ifdef CONFIG_8821C_ICSAR_DRV_DIS 63 #undef CONFIG_8821C_ICSAR 64 #endif 65 66 #define CONFIG_8821C_LOWPOWER 67 #ifdef CONFIG_8821C_LOWPOWER_DRV_DIS 68 #undef CONFIG_8821C_LOWPOWER 69 #endif 70 71 struct txpwr_lmt_t_8821c { 72 u8 reg; 73 u8 band:1; 74 u8 bw:3; 75 u8 rs:2; 76 u8 ntx:2; 77 u8 ch; 78 s8 val; 79 }; 80 81 /****************************************************************************** 82 * radioa.TXT 83 ******************************************************************************/ 84 85 /* tc: Test Chip, mp: mp Chip*/ 86 void 87 odm_read_and_config_mp_8821c_radioa(struct dm_struct *dm); 88 u32 odm_get_version_mp_8821c_radioa(void); 89 90 /****************************************************************************** 91 * txpowertrack.TXT 92 ******************************************************************************/ 93 94 /* tc: Test Chip, mp: mp Chip*/ 95 void 96 odm_read_and_config_mp_8821c_txpowertrack(struct dm_struct *dm); 97 u32 odm_get_version_mp_8821c_txpowertrack(void); 98 99 /****************************************************************************** 100 * txpowertrack_type0x20.TXT 101 ******************************************************************************/ 102 103 /* tc: Test Chip, mp: mp Chip*/ 104 void 105 odm_read_and_config_mp_8821c_txpowertrack_type0x20(struct dm_struct *dm); 106 u32 odm_get_version_mp_8821c_txpowertrack_type0x20(void); 107 108 /****************************************************************************** 109 * txpowertrack_type0x28.TXT 110 ******************************************************************************/ 111 112 /* tc: Test Chip, mp: mp Chip*/ 113 void 114 odm_read_and_config_mp_8821c_txpowertrack_type0x28(struct dm_struct *dm); 115 u32 odm_get_version_mp_8821c_txpowertrack_type0x28(void); 116 117 /****************************************************************************** 118 * txpwr_lmt.TXT 119 ******************************************************************************/ 120 121 /* tc: Test Chip, mp: mp Chip*/ 122 void 123 odm_read_and_config_mp_8821c_txpwr_lmt(struct dm_struct *dm); 124 u32 odm_get_version_mp_8821c_txpwr_lmt(void); 125 126 /****************************************************************************** 127 * txpwr_lmt_fccsar.TXT 128 ******************************************************************************/ 129 130 /* tc: Test Chip, mp: mp Chip*/ 131 void 132 odm_read_and_config_mp_8821c_txpwr_lmt_fccsar(struct dm_struct *dm); 133 u32 odm_get_version_mp_8821c_txpwr_lmt_fccsar(void); 134 135 /****************************************************************************** 136 * txpwr_lmt_icsar.TXT 137 ******************************************************************************/ 138 139 /* tc: Test Chip, mp: mp Chip*/ 140 void 141 odm_read_and_config_mp_8821c_txpwr_lmt_icsar(struct dm_struct *dm); 142 u32 odm_get_version_mp_8821c_txpwr_lmt_icsar(void); 143 144 /****************************************************************************** 145 * txpwr_lmt_lowpower.TXT 146 ******************************************************************************/ 147 148 /* tc: Test Chip, mp: mp Chip*/ 149 void 150 odm_read_and_config_mp_8821c_txpwr_lmt_lowpower(struct dm_struct *dm); 151 u32 odm_get_version_mp_8821c_txpwr_lmt_lowpower(void); 152 153 #endif 154 #endif /* end of HWIMG_SUPPORT*/ 155 156