OSDN Git Service

staging: rtl8723bs: update to the latest driver
[android-x86/kernel.git] / drivers / staging / rtl8723bs / os_dep / 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  ******************************************************************************/
15 #ifndef __RTW_PROC_H__
16 #define __RTW_PROC_H__
17
18 #include <linux/proc_fs.h>
19 #include <linux/seq_file.h>
20
21 struct rtw_proc_hdl {
22         char *name;
23         int (*show)(struct seq_file *, void *);
24         ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data);
25 };
26
27 #ifdef CONFIG_PROC_DEBUG
28
29 int rtw_drv_proc_init(void);
30 void rtw_drv_proc_deinit(void);
31 struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev);
32 void rtw_adapter_proc_deinit(struct net_device *dev);
33 void rtw_adapter_proc_replace(struct net_device *dev);
34
35 #else //!CONFIG_PROC_DEBUG
36
37 int rtw_drv_proc_init(void) {return 0;}
38 void rtw_drv_proc_deinit(void) {}
39 struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev){return NULL;}
40 void rtw_adapter_proc_deinit(struct net_device *dev){}
41 void rtw_adapter_proc_replace(struct net_device *dev){}
42
43 #endif //!CONFIG_PROC_DEBUG
44
45 #endif //__RTW_PROC_H__