GNU Linux-libre 4.19.207-gnu1
[releases.git] / drivers / staging / rtl8723bs / os_dep / rtw_proc.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2013 Realtek Corporation. All rights reserved.
5  *
6  ******************************************************************************/
7 #ifndef __RTW_PROC_H__
8 #define __RTW_PROC_H__
9
10 #include <linux/proc_fs.h>
11 #include <linux/seq_file.h>
12
13 struct rtw_proc_hdl {
14         char *name;
15         int (*show)(struct seq_file *, void *);
16         ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data);
17 };
18
19 #ifdef PROC_DEBUG
20
21 int rtw_drv_proc_init(void);
22 void rtw_drv_proc_deinit(void);
23 struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev);
24 void rtw_adapter_proc_deinit(struct net_device *dev);
25 void rtw_adapter_proc_replace(struct net_device *dev);
26
27 #else //!PROC_DEBUG
28
29 static inline int rtw_drv_proc_init(void) {return 0;}
30 static inline void rtw_drv_proc_deinit(void) {}
31 static inline struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev){return NULL;}
32 static inline void rtw_adapter_proc_deinit(struct net_device *dev){}
33 static inline void rtw_adapter_proc_replace(struct net_device *dev){}
34
35 #endif //!PROC_DEBUG
36
37 #endif //__RTW_PROC_H__