mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 07:29:40 +00:00
rtl8188eu: Replace typedefs related to threads with standard kernel types
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2685b52404
commit
dfb5277a29
6 changed files with 9 additions and 14 deletions
|
@ -336,7 +336,7 @@ _func_enter_;
|
|||
_func_exit_;
|
||||
}
|
||||
|
||||
thread_return rtw_cmd_thread(thread_context context)
|
||||
int rtw_cmd_thread(void *context)
|
||||
{
|
||||
u8 ret;
|
||||
struct cmd_obj *pcmd;
|
||||
|
|
|
@ -737,7 +737,7 @@ static struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
|
|||
|
||||
}
|
||||
|
||||
static thread_return mp_xmit_packet_thread(thread_context context)
|
||||
static int mp_xmit_packet_thread(void *context)
|
||||
{
|
||||
struct xmit_frame *pxmitframe;
|
||||
struct mp_tx *pmptx;
|
||||
|
|
|
@ -295,10 +295,10 @@ struct _ADAPTER{
|
|||
u8 init_adpt_in_progress;
|
||||
u8 bHaltInProgress;
|
||||
|
||||
_thread_hdl_ cmdThread;
|
||||
_thread_hdl_ evtThread;
|
||||
_thread_hdl_ xmitThread;
|
||||
_thread_hdl_ recvThread;
|
||||
void *cmdThread;
|
||||
void *evtThread;
|
||||
void *xmitThread;
|
||||
void *recvThread;
|
||||
void (*intf_start)(_adapter * adapter);
|
||||
void (*intf_stop)(_adapter * adapter);
|
||||
_nic_hdl pnetdev;
|
||||
|
|
|
@ -88,13 +88,8 @@
|
|||
|
||||
typedef struct __queue _queue;
|
||||
typedef struct list_head _list;
|
||||
typedef int _OS_STATUS;
|
||||
typedef struct net_device * _nic_hdl;
|
||||
|
||||
typedef void* _thread_hdl_;
|
||||
typedef int thread_return;
|
||||
typedef void* thread_context;
|
||||
|
||||
#define thread_exit() complete_and_exit(NULL, 0)
|
||||
|
||||
typedef void timer_hdl_return;
|
||||
|
@ -439,7 +434,7 @@ __inline static void flush_signals_thread(void)
|
|||
flush_signals(current);
|
||||
}
|
||||
|
||||
__inline static _OS_STATUS res_to_status(sint res)
|
||||
__inline static int res_to_status(sint res)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ extern u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
|
|||
extern struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv);
|
||||
extern void rtw_free_cmd_obj(struct cmd_obj *pcmd);
|
||||
|
||||
thread_return rtw_cmd_thread(thread_context context);
|
||||
int rtw_cmd_thread(void *context);
|
||||
|
||||
extern u32 rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
extern void rtw_free_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
|
|
|
@ -147,7 +147,7 @@ struct mp_tx
|
|||
u8 *pallocated_buf;
|
||||
u8 *buf;
|
||||
u32 buf_size, write_size;
|
||||
_thread_hdl_ PktTxThread;
|
||||
void *PktTxThread;
|
||||
};
|
||||
|
||||
#include <Hal8188EPhyCfg.h>
|
||||
|
|
Loading…
Reference in a new issue