rtl8188eu: Replace typedefs related to threads with standard kernel types

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-24 12:47:20 -05:00
parent 2685b52404
commit dfb5277a29
6 changed files with 9 additions and 14 deletions

View file

@ -336,7 +336,7 @@ _func_enter_;
_func_exit_; _func_exit_;
} }
thread_return rtw_cmd_thread(thread_context context) int rtw_cmd_thread(void *context)
{ {
u8 ret; u8 ret;
struct cmd_obj *pcmd; struct cmd_obj *pcmd;

View file

@ -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 xmit_frame *pxmitframe;
struct mp_tx *pmptx; struct mp_tx *pmptx;

View file

@ -295,10 +295,10 @@ struct _ADAPTER{
u8 init_adpt_in_progress; u8 init_adpt_in_progress;
u8 bHaltInProgress; u8 bHaltInProgress;
_thread_hdl_ cmdThread; void *cmdThread;
_thread_hdl_ evtThread; void *evtThread;
_thread_hdl_ xmitThread; void *xmitThread;
_thread_hdl_ recvThread; void *recvThread;
void (*intf_start)(_adapter * adapter); void (*intf_start)(_adapter * adapter);
void (*intf_stop)(_adapter * adapter); void (*intf_stop)(_adapter * adapter);
_nic_hdl pnetdev; _nic_hdl pnetdev;

View file

@ -88,13 +88,8 @@
typedef struct __queue _queue; typedef struct __queue _queue;
typedef struct list_head _list; typedef struct list_head _list;
typedef int _OS_STATUS;
typedef struct net_device * _nic_hdl; 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) #define thread_exit() complete_and_exit(NULL, 0)
typedef void timer_hdl_return; typedef void timer_hdl_return;
@ -439,7 +434,7 @@ __inline static void flush_signals_thread(void)
flush_signals(current); flush_signals(current);
} }
__inline static _OS_STATUS res_to_status(sint res) __inline static int res_to_status(sint res)
{ {
return res; return res;
} }

View file

@ -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 struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv);
extern void rtw_free_cmd_obj(struct cmd_obj *pcmd); 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 u32 rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
extern void rtw_free_cmd_priv (struct cmd_priv *pcmdpriv); extern void rtw_free_cmd_priv (struct cmd_priv *pcmdpriv);

View file

@ -147,7 +147,7 @@ struct mp_tx
u8 *pallocated_buf; u8 *pallocated_buf;
u8 *buf; u8 *buf;
u32 buf_size, write_size; u32 buf_size, write_size;
_thread_hdl_ PktTxThread; void *PktTxThread;
}; };
#include <Hal8188EPhyCfg.h> #include <Hal8188EPhyCfg.h>