net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / os_dep / linux / rtw_proc.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2013 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 #ifndef __RTW_PROC_H__
21 #define __RTW_PROC_H__
22
23 #include <linux/proc_fs.h>
24 #include <linux/seq_file.h>
25
26 struct rtw_proc_hdl {
27         char *name;
28         int (*show)(struct seq_file *, void *);
29         ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data);
30 };
31
32 #ifdef CONFIG_PROC_DEBUG
33
34 struct proc_dir_entry *get_rtw_drv_proc(void);
35 int rtw_drv_proc_init(void);
36 void rtw_drv_proc_deinit(void);
37 struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev);
38 void rtw_adapter_proc_deinit(struct net_device *dev);
39 void rtw_adapter_proc_replace(struct net_device *dev);
40
41 #else //!CONFIG_PROC_DEBUG
42
43 #define get_rtw_drv_proc() NULL
44 #define rtw_drv_proc_init() 0
45 #define rtw_drv_proc_deinit() do {} while (0)
46 #define rtw_adapter_proc_init(dev) NULL
47 #define rtw_adapter_proc_deinit(dev) do {} while (0)
48 #define rtw_adapter_proc_replace(dev) do {} while (0)
49
50 #endif //!CONFIG_PROC_DEBUG
51
52 #endif //__RTW_PROC_H__