net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / hal / phydm / phydm_dfs.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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20
21 #ifndef __PHYDM_DFS_H__
22 #define __PHYDM_DFS_H__
23
24 #define DFS_VERSION     "0.0"
25
26 /* ============================================================
27   Definition
28  ============================================================
29 */
30
31 /*
32 ============================================================
33 1  structure
34  ============================================================
35 */
36
37 /* ============================================================
38   enumeration
39  ============================================================
40 */
41
42 enum phydm_dfs_region_domain {
43         PHYDM_DFS_DOMAIN_UNKNOWN = 0,
44         PHYDM_DFS_DOMAIN_FCC = 1,
45         PHYDM_DFS_DOMAIN_MKK = 2,
46         PHYDM_DFS_DOMAIN_ETSI = 3,
47 };
48
49 /*
50 ============================================================
51   function prototype
52 ============================================================
53 */
54 #if defined(CONFIG_PHYDM_DFS_MASTER)
55         void phydm_radar_detect_reset(void *p_dm_void);
56         void phydm_radar_detect_disable(void *p_dm_void);
57         void phydm_radar_detect_enable(void *p_dm_void);
58         boolean phydm_radar_detect(void *p_dm_void);
59 #endif /* defined(CONFIG_PHYDM_DFS_MASTER) */
60
61 boolean
62 phydm_dfs_master_enabled(
63         void            *p_dm_void
64 );
65
66 void
67 phydm_dfs_debug(
68         void            *p_dm_void,
69         u32             *const argv,
70         u32             *_used,
71         char            *output,
72         u32             *_out_len
73 );
74
75 #endif /*#ifndef __PHYDM_DFS_H__ */