#ifndef __RSI_COMMON_H__
#define __RSI_COMMON_H__
#include <linux/kthread.h>
#define EVENT_WAIT_FOREVER …
#define FIRMWARE_RSI9113 …
#define QUEUE_NOT_FULL …
#define QUEUE_FULL …
static inline int rsi_init_event(struct rsi_event *pevent)
{ … }
static inline int rsi_wait_event(struct rsi_event *event, u32 timeout)
{ … }
static inline void rsi_set_event(struct rsi_event *event)
{ … }
static inline void rsi_reset_event(struct rsi_event *event)
{ … }
static inline int rsi_create_kthread(struct rsi_common *common,
struct rsi_thread *thread,
void *func_ptr,
u8 *name)
{ … }
static inline int rsi_kill_thread(struct rsi_thread *handle)
{ … }
void rsi_mac80211_detach(struct rsi_hw *hw);
u16 rsi_get_connected_channel(struct ieee80211_vif *vif);
struct rsi_hw *rsi_91x_init(u16 oper_mode);
void rsi_91x_deinit(struct rsi_hw *adapter);
int rsi_read_pkt(struct rsi_common *common, u8 *rx_pkt, s32 rcv_pkt_len);
#ifdef CONFIG_PM
int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan);
#endif
struct rsi_sta *rsi_find_sta(struct rsi_common *common, u8 *mac_addr);
struct ieee80211_vif *rsi_get_vif(struct rsi_hw *adapter, u8 *mac);
void rsi_roc_timeout(struct timer_list *t);
#endif