2019-04-22 11:31:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#ifndef __ODMNOISEMONITOR_H__
|
|
|
|
#define __ODMNOISEMONITOR_H__
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#define ODM_MAX_CHANNEL_NUM 38/* 14+24 */
|
|
|
|
struct noise_level {
|
|
|
|
/* u8 value_a, value_b; */
|
|
|
|
u8 value[MAX_RF_PATH];
|
|
|
|
/* s8 sval_a, sval_b; */
|
|
|
|
s8 sval[MAX_RF_PATH];
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
/* s32 noise_a=0, noise_b=0,sum_a=0, sum_b=0; */
|
|
|
|
/* s32 noise[ODM_RF_PATH_MAX]; */
|
|
|
|
s32 sum[MAX_RF_PATH];
|
|
|
|
/* u8 valid_cnt_a=0, valid_cnt_b=0, */
|
|
|
|
u8 valid[MAX_RF_PATH];
|
|
|
|
u8 valid_cnt[MAX_RF_PATH];
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
};
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
struct _ODM_NOISE_MONITOR_ {
|
|
|
|
s8 noise[MAX_RF_PATH];
|
|
|
|
s16 noise_all;
|
|
|
|
};
|
|
|
|
|
|
|
|
s16 odm_inband_noise_monitor(void *p_dm_void, u8 is_pause_dig, u8 igi_value, u32 max_time);
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
#endif
|