1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 5 * 6 *****************************************************************************/ 7 #ifndef __ODMNOISEMONITOR_H__ 8 #define __ODMNOISEMONITOR_H__ 9 10 #define ODM_MAX_CHANNEL_NUM 38/* 14+24 */ 11 struct noise_level { 12 /* u8 value_a, value_b; */ 13 u8 value[MAX_RF_PATH]; 14 /* s8 sval_a, sval_b; */ 15 s8 sval[MAX_RF_PATH]; 16 17 /* s32 noise_a = 0, noise_b = 0, sum_a = 0, sum_b = 0; */ 18 /* s32 noise[ODM_RF_PATH_MAX]; */ 19 s32 sum[MAX_RF_PATH]; 20 /* u8 valid_cnt_a = 0, valid_cnt_b = 0, */ 21 u8 valid[MAX_RF_PATH]; 22 u8 valid_cnt[MAX_RF_PATH]; 23 24 }; 25 26 27 typedef struct _ODM_NOISE_MONITOR_ { 28 s8 noise[MAX_RF_PATH]; 29 s16 noise_all; 30 } ODM_NOISE_MONITOR; 31 32 s16 ODM_InbandNoise_Monitor( 33 void *pDM_VOID, 34 u8 bPauseDIG, 35 u8 IGIValue, 36 u32 max_time 37 ); 38 39 #endif 40