rtl8188eu: Convert from endian defined in Makefile to use architecture-defined value

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-05-15 13:57:38 -05:00
parent 2951f6bc15
commit dc7c8c0b5d
10 changed files with 31 additions and 97 deletions

View file

@ -63,7 +63,7 @@ struct rsn_ie_hdr {
}__attribute__ ((packed));
struct wme_ac_parameter {
#if defined(CONFIG_LITTLE_ENDIAN)
#if defined(__LITTLE_ENDIAN)
/* byte 1 */
u8 aifsn:4,
acm:1,
@ -73,7 +73,7 @@ struct wme_ac_parameter {
/* byte 2 */
u8 eCWmin:4,
eCWmax:4;
#elif defined(CONFIG_BIG_ENDIAN)
#elif defined(__BIG_ENDIAN)
/* byte 1 */
u8 reserved:1,
aci:2,

View file

@ -70,7 +70,7 @@
typedef struct _Phy_Rx_AGC_Info
{
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
#ifdef __LITTLE_ENDIAN
u1Byte gain:7,trsw:1;
#else
u1Byte trsw:1,gain:7;
@ -97,7 +97,7 @@ typedef struct _Phy_Status_Rpt_8192cd
s1Byte sig_evm;
u1Byte rsvd_3;
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
#ifdef __LITTLE_ENDIAN
u1Byte antsel_rx_keep_2:1; //ex_intf_flg:1;
u1Byte sgi_en:1;
u1Byte rxsc:2;
@ -136,11 +136,11 @@ typedef struct _Phy_Status_Rpt_8195
u1Byte rsvd_3[2];
s1Byte sig_evm;
u1Byte rsvd_4;
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
#ifdef __LITTLE_ENDIAN
u1Byte antidx_anta:3;
u1Byte antidx_antb:3;
u1Byte rsvd_5:2;
#else // _BIG_ENDIAN_
#else // __BIG_ENDIAN_
u1Byte rsvd_5:2;
u1Byte antidx_antb:3;
u1Byte antidx_anta:3;

View file

@ -40,11 +40,6 @@
#include "../8192cd.h"
#include "../8192cd_util.h"
#ifdef _BIG_ENDIAN_
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
#else
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
#endif
#ifdef AP_BUILD_WORKAROUND
#include "../8192cd_headers.h"
@ -59,11 +54,6 @@
#include "../common_types.h" // OUTSRC and rtl8192cd both needs basic type such as UINT8 and BIT0.
#include "../8192cd.h" // OUTSRC needs basic ADSL struct definition.
#include "../8192cd_util.h" // OUTSRC needs basic I/O function.
#ifdef _BIG_ENDIAN_
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
#else
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
#endif
#ifdef ADSL_AP_BUILD_WORKAROUND
// NESTED_INC: Functions defined outside should not be included!! Marked by Annie, 2011-10-14.
@ -79,7 +69,6 @@
#elif (DM_ODM_SUPPORT_TYPE == ODM_MP)
#include "Mp_Precomp.h"
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
#endif

View file

@ -30,10 +30,6 @@
#define DM_ODM_SUPPORT_TYPE ODM_CE
// Deifne HW endian support
#define ODM_ENDIAN_BIG 0
#define ODM_ENDIAN_LITTLE 1
#if (DM_ODM_SUPPORT_TYPE != ODM_MP)
#define RT_PCI_INTERFACE 1
#define RT_USB_INTERFACE 2
@ -218,13 +214,6 @@ typedef enum _RT_SPINLOCK_TYPE{
#define DEV_BUS_TYPE RT_SDIO_INTERFACE
#endif
#if defined(CONFIG_LITTLE_ENDIAN)
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
#elif defined (CONFIG_BIG_ENDIAN)
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
#endif
typedef struct timer_list RT_TIMER, *PRT_TIMER;
typedef void * RT_TIMER_CALL_BACK;
#define STA_INFO_T struct sta_info

View file

@ -224,7 +224,7 @@ struct intf_hdl {
struct reg_protocol_rd {
#ifdef CONFIG_LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
//DW1
u32 NumOfTrans:4;
@ -282,7 +282,7 @@ struct reg_protocol_rd {
struct reg_protocol_wt {
#ifdef CONFIG_LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
//DW1
u32 NumOfTrans:4;

View file

@ -896,13 +896,13 @@ struct cmd_hdl wlancmds[] =
struct C2HEvent_Header
{
#ifdef CONFIG_LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
unsigned int len:16;
unsigned int ID:8;
unsigned int seq:8;
#elif defined(CONFIG_BIG_ENDIAN)
#elif defined(__BIG_ENDIAN)
unsigned int seq:8;
unsigned int ID:8;

View file

@ -66,7 +66,7 @@ union pn48 {
u64 val;
#ifdef CONFIG_LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
struct {
u8 TSC0;
@ -79,7 +79,7 @@ struct {
u8 TSC7;
} _byte_;
#elif defined(CONFIG_BIG_ENDIAN)
#elif defined(__BIG_ENDIAN)
struct {
u8 TSC7;