OSDN Git Service

staging: rtl8723bs: add source files for the new driver
[android-x86/kernel.git] / drivers / staging / rtl8723bs / hal / odm_NoiseMonitor.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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  *****************************************************************************/
15 #ifndef __ODMNOISEMONITOR_H__
16 #define __ODMNOISEMONITOR_H__
17
18 #define ODM_MAX_CHANNEL_NUM                                     38/* 14+24 */
19 struct noise_level {
20         /* u8 value_a, value_b; */
21         u8 value[MAX_RF_PATH];
22         /* s8 sval_a, sval_b; */
23         s8 sval[MAX_RF_PATH];
24
25         /* s32 noise_a = 0, noise_b = 0, sum_a = 0, sum_b = 0; */
26         /* s32 noise[ODM_RF_PATH_MAX]; */
27         s32 sum[MAX_RF_PATH];
28         /* u8 valid_cnt_a = 0, valid_cnt_b = 0, */
29         u8 valid[MAX_RF_PATH];
30         u8 valid_cnt[MAX_RF_PATH];
31
32 };
33
34
35 typedef struct _ODM_NOISE_MONITOR_ {
36         s8 noise[MAX_RF_PATH];
37         s16 noise_all;
38 } ODM_NOISE_MONITOR;
39
40 s16 ODM_InbandNoise_Monitor(
41         void *pDM_VOID,
42         u8 bPauseDIG,
43         u8 IGIValue,
44         u32 max_time
45 );
46
47 #endif