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.12*/ 27 #if (RTL8822C_SUPPORT == 1) 28 #ifndef __INC_MP_RF_HW_IMG_8822C_H 29 #define __INC_MP_RF_HW_IMG_8822C_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_8822C_DRV_DIS 34 * #define CONFIG_8822CTSSI_DRV_DIS 35 * #define CONFIG_8822C_TYPE5_DRV_DIS 36 */ 37 38 #define CONFIG_8822C 39 #ifdef CONFIG_8822C_DRV_DIS 40 #undef CONFIG_8822C 41 #endif 42 43 #define CONFIG_8822CTSSI 44 #ifdef CONFIG_8822CTSSI_DRV_DIS 45 #undef CONFIG_8822CTSSI 46 #endif 47 48 #define CONFIG_8822C_TYPE5 49 #ifdef CONFIG_8822C_TYPE5_DRV_DIS 50 #undef CONFIG_8822C_TYPE5 51 #endif 52 53 struct txpwr_lmt_t_8822c { 54 u8 reg; 55 u8 band:1; 56 u8 bw:3; 57 u8 rs:2; 58 u8 ntx:2; 59 u8 ch; 60 s8 val; 61 }; 62 63 /****************************************************************************** 64 * radioa.TXT 65 ******************************************************************************/ 66 67 /* tc: Test Chip, mp: mp Chip*/ 68 void 69 odm_read_and_config_mp_8822c_radioa(struct dm_struct *dm); 70 u32 odm_get_version_mp_8822c_radioa(void); 71 72 /****************************************************************************** 73 * radiob.TXT 74 ******************************************************************************/ 75 76 /* tc: Test Chip, mp: mp Chip*/ 77 void 78 odm_read_and_config_mp_8822c_radiob(struct dm_struct *dm); 79 u32 odm_get_version_mp_8822c_radiob(void); 80 81 /****************************************************************************** 82 * txpowertrack.TXT 83 ******************************************************************************/ 84 85 /* tc: Test Chip, mp: mp Chip*/ 86 void 87 odm_read_and_config_mp_8822c_txpowertrack(struct dm_struct *dm); 88 u32 odm_get_version_mp_8822c_txpowertrack(void); 89 90 /****************************************************************************** 91 * txpowertracktssi.TXT 92 ******************************************************************************/ 93 94 /* tc: Test Chip, mp: mp Chip*/ 95 void 96 odm_read_and_config_mp_8822c_txpowertracktssi(struct dm_struct *dm); 97 u32 odm_get_version_mp_8822c_txpowertracktssi(void); 98 99 /****************************************************************************** 100 * txpwr_lmt.TXT 101 ******************************************************************************/ 102 103 /* tc: Test Chip, mp: mp Chip*/ 104 void 105 odm_read_and_config_mp_8822c_txpwr_lmt(struct dm_struct *dm); 106 u32 odm_get_version_mp_8822c_txpwr_lmt(void); 107 108 /****************************************************************************** 109 * txpwr_lmt_type5.TXT 110 ******************************************************************************/ 111 112 /* tc: Test Chip, mp: mp Chip*/ 113 void 114 odm_read_and_config_mp_8822c_txpwr_lmt_type5(struct dm_struct *dm); 115 u32 odm_get_version_mp_8822c_txpwr_lmt_type5(void); 116 117 #endif 118 #endif /* end of HWIMG_SUPPORT*/ 119 120