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 ******************************************************************************/
15 #ifndef __RTW_PROC_H__
16 #define __RTW_PROC_H__
18 #include <linux/proc_fs.h>
19 #include <linux/seq_file.h>
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);
27 #ifdef CONFIG_PROC_DEBUG
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);
35 #else //!CONFIG_PROC_DEBUG
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){}
43 #endif //!CONFIG_PROC_DEBUG
45 #endif //__RTW_PROC_H__