mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove code used only for Windows
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2caee63170
commit
a68c6cc26e
42 changed files with 9 additions and 1912 deletions
|
@ -973,8 +973,6 @@ __inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled)
|
|||
|
||||
#ifdef PLATFORM_LINUX
|
||||
#define RTW_TIMER_HDL_ARGS void *FunctionContext
|
||||
#elif defined(PLATFORM_OS_CE) || defined(PLATFORM_WINDOWS)
|
||||
#define RTW_TIMER_HDL_ARGS IN PVOID SystemSpecific1, IN PVOID FunctionContext, IN PVOID SystemSpecific2, IN PVOID SystemSpecific3
|
||||
#endif
|
||||
|
||||
#define RTW_TIMER_HDL_NAME(name) rtw_##name##_timer_hdl
|
||||
|
@ -1499,13 +1497,6 @@ __inline static unsigned char _cancel_timer_ex(_timer *ptimer)
|
|||
_cancel_timer(ptimer,0);
|
||||
return 0;
|
||||
#endif
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
u8 bcancelled;
|
||||
|
||||
_cancel_timer(ptimer, &bcancelled);
|
||||
|
||||
return bcancelled;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_FREEBSD
|
||||
|
@ -1544,16 +1535,6 @@ __inline static _OS_STATUS res_to_status(sint res)
|
|||
#if defined (PLATFORM_LINUX) || defined (PLATFORM_MPIXEL) || defined (PLATFORM_FREEBSD)
|
||||
return res;
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
||||
if (res == _SUCCESS)
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
else
|
||||
return NDIS_STATUS_FAILURE;
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
__inline static void rtw_dump_stack(void)
|
||||
|
@ -1655,8 +1636,6 @@ __inline static u32 bitshift(u32 bitmask)
|
|||
// limitation of path length
|
||||
#ifdef PLATFORM_LINUX
|
||||
#define PATH_LENGTH_MAX PATH_MAX
|
||||
#elif defined(PLATFORM_WINDOWS)
|
||||
#define PATH_LENGTH_MAX MAX_PATH
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1678,8 +1657,6 @@ extern void rtw_lock_ext_suspend_timeout(u32 timeout_ms);
|
|||
//Atomic integer operations
|
||||
#ifdef PLATFORM_LINUX
|
||||
#define ATOMIC_T atomic_t
|
||||
#elif defined(PLATFORM_WINDOWS)
|
||||
#define ATOMIC_T LONG
|
||||
#elif defined(PLATFORM_FREEBSD)
|
||||
typedef uint32_t ATOMIC_T ;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue