1 /******************************************************************************
3 * Copyright(c) 2007 - 2013 Realtek Corporation. All rights reserved.
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.
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
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
19 ******************************************************************************/
20 #ifndef __RTW_PROC_H__
21 #define __RTW_PROC_H__
23 #include <linux/proc_fs.h>
24 #include <linux/seq_file.h>
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);
32 #ifdef CONFIG_PROC_DEBUG
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);
41 #else //!CONFIG_PROC_DEBUG
43 struct proc_dir_entry *get_rtw_drv_proc(void) {return NULL;}
44 int rtw_drv_proc_init(void) {return 0;}
45 void rtw_drv_proc_deinit(void) {}
46 struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev){return NULL;}
47 void rtw_adapter_proc_deinit(struct net_device *dev){}
48 void rtw_adapter_proc_replace(struct net_device *dev){}
50 #endif //!CONFIG_PROC_DEBUG
52 #endif //__RTW_PROC_H__