• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef __PHYDM_CCK_RX_PATHDIV_H__
27 #define __PHYDM_CCK_RX_PATHDIV_H__
28 
29 #define CCK_RX_PATHDIV_VERSION "1.1"
30 
31 /* @1 ============================================================
32  * 1  Definition
33  * 1 ============================================================
34  */
35 /* @1 ============================================================
36  * 1  structure
37  * 1 ============================================================
38  */
39 struct phydm_cck_rx_pathdiv {
40 	boolean en_cck_rx_pathdiv;
41 	u32	path_a_sum;
42 	u32	path_b_sum;
43 	u16	path_a_cnt;
44 	u16	path_b_cnt;
45 	u8	rssi_fa_th;
46 	u8	rssi_th;
47 };
48 
49 /* @1 ============================================================
50  * 1  enumeration
51  * 1 ============================================================
52  */
53 
54 /* @1 ============================================================
55  * 1  function prototype
56  * 1 ============================================================
57  */
58 void phydm_cck_rx_pathdiv_watchdog(void *dm_void);
59 
60 void phydm_cck_rx_pathdiv_init(void *dm_void);
61 
62 void phydm_process_rssi_for_cck_rx_pathdiv(void *dm_void, void *phy_info_void,
63 					   void *pkt_info_void);
64 
65 void phydm_cck_rx_pathdiv_dbg(void *dm_void, char input[][16], u32 *_used,
66 			      char *output, u32 *_out_len);
67 #endif
68