Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b22689d7 authored by Jeff Johnson's avatar Jeff Johnson Committed by Kiet Lam
Browse files

wlan: use correct base type for abstracted types

In order to provide OS abstraction the WLAN driver defines it own
8-bit, 16-bit, 32-bit, and 64-bit typedefs.  The underlying types
chosen are appropriate for ILP32 architecture, but they are not
appropriate for LP64 architecture.  Redefine the abstracted types so
that that are of the correct size irrespective of the underlying
architecture.

Change-Id: I5d491970daec047b312a4ab15ac1b892531b0916
CRs-fixed: 567110
parent c19e37f5
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -179,35 +179,35 @@
  ------------------------------------------------------------------------*/

/// unsigned 8-bit types
typedef unsigned char v_U8_t;
typedef unsigned char v_UCHAR_t;
typedef unsigned char v_BYTE_t;
typedef u8 v_U8_t;
typedef u8 v_UCHAR_t;
typedef u8 v_BYTE_t;

/// unsigned 16-bit types
typedef unsigned short v_U16_t;
typedef u16 v_U16_t;
typedef unsigned short v_USHORT_t;

/// unsigned 32-bit types
typedef unsigned long  v_U32_t;
typedef u32 v_U32_t;
// typedef atomic_t v_U32AT_t;
typedef unsigned long  v_ULONG_t;

/// unsigned 64-bit types
typedef long long v_U64_t;
typedef u64 v_U64_t;

/// unsigned integer types
typedef unsigned int  v_UINT_t;

/// signed 8-bit types
typedef signed char  v_S7_t;
typedef s8  v_S7_t;
typedef signed char  v_SCHAR_t;

/// signed 16-bit types
typedef signed short v_S15_t;
typedef s16 v_S15_t;
typedef signed short v_SSHORT_t;

/// signed 32-bit types
typedef signed long v_S31_t;
typedef s32 v_S31_t;
typedef signed long v_SLONG_t;

/// signed integer types
+9 −8
Original line number Diff line number Diff line
@@ -56,26 +56,27 @@
  
  ========================================================================*/

#include <linux/types.h>

typedef unsigned long wpt_uint32;
typedef u32 wpt_uint32;

typedef signed long wpt_int32;
typedef s32 wpt_int32;

typedef unsigned short wpt_uint16;
typedef u16 wpt_uint16;

typedef signed short wpt_int16;
typedef s16 wpt_int16;

typedef unsigned char wpt_uint8;
typedef u8 wpt_uint8;

typedef wpt_uint8 wpt_byte;

typedef signed char wpt_int8;
typedef s8 wpt_int8;

typedef wpt_uint8 wpt_boolean; 

typedef unsigned long long wpt_uint64;
typedef u64 wpt_uint64;

typedef long long wpt_int64;
typedef s64 wpt_int64;

#define WPT_INLINE __inline__
#define WPT_STATIC static