0
0
Fork 0
hgicf/hgic_fmac/procfs.h

72 lines
2 KiB
C
Raw Normal View History

2023-05-16 09:13:19 +00:00
#ifndef _HGICF_PROCFS_H_
#define _HGICF_PROCFS_H_
#ifdef __RTOS__
struct hgicf_procfs {};
#define hgicf_create_procfs(hg)
#define hgicf_delete_procfs(hg)
#else
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
struct hgicf_wdev;
#define HGIC_TESTMODE_BUFF_SIZE (4096)
struct hgicf_procfs {
struct proc_dir_entry *rootdir;
struct proc_dir_entry *tx_bitrate;
struct proc_dir_entry *testmode;
struct proc_dir_entry *status;
struct proc_dir_entry *signal;
struct proc_dir_entry *evm;
struct proc_dir_entry *conn_state;
u8 testmode_buf[HGIC_TESTMODE_BUFF_SIZE];
struct proc_dir_entry *ota;
struct proc_dir_entry *temp;
struct proc_dir_entry *sleep;
struct proc_dir_entry *iwpriv;
u8 iwpriv_buf[4096];
struct proc_dir_entry *paired_stas;
struct proc_dir_entry *radio_off;
struct proc_dir_entry *sta_count;
struct proc_dir_entry *wakeup;
struct proc_dir_entry *wakeup_data;
struct proc_dir_entry *heartbeat;
struct proc_dir_entry *heartbeat_resp;
struct proc_dir_entry *pair_state;
struct proc_dir_entry *fw_ver;
struct proc_dir_entry *wkreason;
struct proc_dir_entry *fwevent;
struct proc_dir_entry *mgmt;
struct proc_dir_entry *battery_level;
struct proc_dir_entry *fwdbginfo;
struct proc_dir_entry *pairing_sta;
struct proc_dir_entry *dhcpc;
struct proc_dir_entry *wkdata_buff;
struct proc_dir_entry *wkdata_mask;
struct proc_dir_entry *cust_driverdata;
struct proc_dir_entry *freqinfo;
};
void hgicf_create_procfs(struct hgicf_wdev *hg);
void hgicf_delete_procfs(struct hgicf_wdev *hg);
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,36)
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
return PROC_I(inode)->pde;
}
static inline void *PDE_DATA(const struct inode *inode)
{
return PDE(inode)->data;
}
#endif
#endif
#endif