mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 15:39:38 +00:00
rtl8188eu: Remove CONFIG_LITTLE_ENDIAN
Replace with kernel-devined __LITTLE_ENDIAN. This also applies to CONFIG_BIG_ENDIAN. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a8e1fbf1f9
commit
b2de21036e
9 changed files with 20 additions and 21 deletions
1
Makefile
1
Makefile
|
@ -196,7 +196,6 @@ EXTRA_CFLAGS += -DCONFIG_RF_GAIN_OFFSET
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
|
||||||
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
|
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
|
||||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | sed -e s/armv.l/arm/)
|
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | sed -e s/armv.l/arm/)
|
||||||
ARCH ?= $(SUBARCH)
|
ARCH ?= $(SUBARCH)
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
typedef struct _Phy_Rx_AGC_Info
|
typedef struct _Phy_Rx_AGC_Info
|
||||||
{
|
{
|
||||||
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
|
#ifdef __LITTLE_ENDIAN
|
||||||
u8 gain:7,trsw:1;
|
u8 gain:7,trsw:1;
|
||||||
#else
|
#else
|
||||||
u8 trsw:1,gain:7;
|
u8 trsw:1,gain:7;
|
||||||
|
@ -97,7 +97,7 @@ typedef struct _Phy_Status_Rpt_8192cd
|
||||||
s8 sig_evm;
|
s8 sig_evm;
|
||||||
u8 rsvd_3;
|
u8 rsvd_3;
|
||||||
|
|
||||||
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
|
#ifdef __LITTLE_ENDIAN
|
||||||
u8 antsel_rx_keep_2:1; //ex_intf_flg:1;
|
u8 antsel_rx_keep_2:1; //ex_intf_flg:1;
|
||||||
u8 sgi_en:1;
|
u8 sgi_en:1;
|
||||||
u8 rxsc:2;
|
u8 rxsc:2;
|
||||||
|
@ -136,7 +136,7 @@ typedef struct _Phy_Status_Rpt_8195
|
||||||
u8 rsvd_3[2];
|
u8 rsvd_3[2];
|
||||||
s8 sig_evm;
|
s8 sig_evm;
|
||||||
u8 rsvd_4;
|
u8 rsvd_4;
|
||||||
#if (ODM_ENDIAN_TYPE == ODM_ENDIAN_LITTLE)
|
#ifdef __LITTLE_ENDIAN
|
||||||
u8 antidx_anta:3;
|
u8 antidx_anta:3;
|
||||||
u8 antidx_antb:3;
|
u8 antidx_antb:3;
|
||||||
u8 rsvd_5:2;
|
u8 rsvd_5:2;
|
||||||
|
|
|
@ -55,9 +55,9 @@ typedef enum _RT_SPINLOCK_TYPE{
|
||||||
|
|
||||||
#define DEV_BUS_TYPE RT_USB_INTERFACE
|
#define DEV_BUS_TYPE RT_USB_INTERFACE
|
||||||
|
|
||||||
#if defined(CONFIG_LITTLE_ENDIAN)
|
#if defined(__LITTLE_ENDIAN)
|
||||||
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
|
#define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
|
||||||
#elif defined (CONFIG_BIG_ENDIAN)
|
#elif defined (__BIG_ENDIAN)
|
||||||
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
|
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ struct rsn_ie_hdr {
|
||||||
}__attribute__ ((packed));
|
}__attribute__ ((packed));
|
||||||
|
|
||||||
struct wme_ac_parameter {
|
struct wme_ac_parameter {
|
||||||
#if defined(CONFIG_LITTLE_ENDIAN)
|
#if defined(__LITTLE_ENDIAN)
|
||||||
/* byte 1 */
|
/* byte 1 */
|
||||||
u8 aifsn:4,
|
u8 aifsn:4,
|
||||||
acm:1,
|
acm:1,
|
||||||
|
@ -72,7 +72,7 @@ struct wme_ac_parameter {
|
||||||
/* byte 2 */
|
/* byte 2 */
|
||||||
u8 eCWmin:4,
|
u8 eCWmin:4,
|
||||||
eCWmax:4;
|
eCWmax:4;
|
||||||
#elif defined(CONFIG_BIG_ENDIAN)
|
#elif defined(__BIG_ENDIAN)
|
||||||
/* byte 1 */
|
/* byte 1 */
|
||||||
u8 reserved:1,
|
u8 reserved:1,
|
||||||
aci:2,
|
aci:2,
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
|
|
||||||
#include <drv_conf.h>
|
#include <drv_conf.h>
|
||||||
|
|
||||||
#if defined (CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN)
|
#if defined (__LITTLE_ENDIAN) && defined (__BIG_ENDIAN)
|
||||||
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
|
#error "Shall be __LITTLE_ENDIAN or __BIG_ENDIAN, but not both!\n"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (CONFIG_LITTLE_ENDIAN)
|
#if defined (__LITTLE_ENDIAN)
|
||||||
#ifndef CONFIG_PLATFORM_MSTAR
|
#ifndef CONFIG_PLATFORM_MSTAR
|
||||||
# include <little_endian.h>
|
# include <little_endian.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined (CONFIG_BIG_ENDIAN)
|
#elif defined (__BIG_ENDIAN)
|
||||||
# include <big_endian.h>
|
# include <big_endian.h>
|
||||||
#else
|
#else
|
||||||
# error "Must be LITTLE/BIG Endian Host"
|
# error "Must be LITTLE/BIG Endian Host"
|
||||||
|
|
|
@ -167,7 +167,7 @@ struct intf_hdl {
|
||||||
|
|
||||||
struct reg_protocol_rd {
|
struct reg_protocol_rd {
|
||||||
|
|
||||||
#ifdef CONFIG_LITTLE_ENDIAN
|
#ifdef __LITTLE_ENDIAN
|
||||||
|
|
||||||
//DW1
|
//DW1
|
||||||
u32 NumOfTrans:4;
|
u32 NumOfTrans:4;
|
||||||
|
@ -225,7 +225,7 @@ struct reg_protocol_rd {
|
||||||
struct reg_protocol_wt {
|
struct reg_protocol_wt {
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_LITTLE_ENDIAN
|
#ifdef __LITTLE_ENDIAN
|
||||||
|
|
||||||
//DW1
|
//DW1
|
||||||
u32 NumOfTrans:4;
|
u32 NumOfTrans:4;
|
||||||
|
|
|
@ -911,13 +911,13 @@ static struct cmd_hdl wlancmds[] = {
|
||||||
struct C2HEvent_Header
|
struct C2HEvent_Header
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef CONFIG_LITTLE_ENDIAN
|
#ifdef __LITTLE_ENDIAN
|
||||||
|
|
||||||
unsigned int len:16;
|
unsigned int len:16;
|
||||||
unsigned int ID:8;
|
unsigned int ID:8;
|
||||||
unsigned int seq:8;
|
unsigned int seq:8;
|
||||||
|
|
||||||
#elif defined(CONFIG_BIG_ENDIAN)
|
#elif defined(__BIG_ENDIAN)
|
||||||
|
|
||||||
unsigned int seq:8;
|
unsigned int seq:8;
|
||||||
unsigned int ID:8;
|
unsigned int ID:8;
|
||||||
|
|
|
@ -68,7 +68,7 @@ union pn48 {
|
||||||
|
|
||||||
u64 val;
|
u64 val;
|
||||||
|
|
||||||
#ifdef CONFIG_LITTLE_ENDIAN
|
#ifdef __LITTLE_ENDIAN
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u8 TSC0;
|
u8 TSC0;
|
||||||
|
@ -81,7 +81,7 @@ struct {
|
||||||
u8 TSC7;
|
u8 TSC7;
|
||||||
} _byte_;
|
} _byte_;
|
||||||
|
|
||||||
#elif defined(CONFIG_BIG_ENDIAN)
|
#elif defined(__BIG_ENDIAN)
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u8 TSC7;
|
u8 TSC7;
|
||||||
|
|
|
@ -10683,10 +10683,10 @@ static void printdata(u8 *pbuf, u32 len)
|
||||||
|
|
||||||
if (i < len)
|
if (i < len)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_BIG_ENDIAN
|
#ifdef __BIG_ENDIAN
|
||||||
for (; i < len, i++)
|
for (; i < len, i++)
|
||||||
printk("%02X", pbuf+i);
|
printk("%02X", pbuf+i);
|
||||||
#else // CONFIG_LITTLE_ENDIAN
|
#else // __LITTLE_ENDIAN
|
||||||
u8 str[9];
|
u8 str[9];
|
||||||
u8 n;
|
u8 n;
|
||||||
val = 0;
|
val = 0;
|
||||||
|
@ -10695,7 +10695,7 @@ static void printdata(u8 *pbuf, u32 len)
|
||||||
sprintf(str, "%08X", val);
|
sprintf(str, "%08X", val);
|
||||||
n = (4 - n) * 2;
|
n = (4 - n) * 2;
|
||||||
printk("%8s", str+n);
|
printk("%8s", str+n);
|
||||||
#endif // CONFIG_LITTLE_ENDIAN
|
#endif // __LITTLE_ENDIAN
|
||||||
}
|
}
|
||||||
printk("\n");
|
printk("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue