Commit d1e11af5 authored by Hin-Tak Leung's avatar Hin-Tak Leung Committed by John W. Linville

rtl8187: updating rtl818x.h to support RTL8187B

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: default avatarHin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c44ac0b9
...@@ -66,7 +66,10 @@ struct rtl818x_csr { ...@@ -66,7 +66,10 @@ struct rtl818x_csr {
#define RTL818X_TX_CONF_R8180_F (3 << 25) #define RTL818X_TX_CONF_R8180_F (3 << 25)
#define RTL818X_TX_CONF_R8185_ABC (4 << 25) #define RTL818X_TX_CONF_R8185_ABC (4 << 25)
#define RTL818X_TX_CONF_R8185_D (5 << 25) #define RTL818X_TX_CONF_R8185_D (5 << 25)
#define RTL818X_TX_CONF_R8187vD_1 (5 << 25)
#define RTL818X_TX_CONF_R8187vD_2 (6 << 25)
#define RTL818X_TX_CONF_HWVER_MASK (7 << 25) #define RTL818X_TX_CONF_HWVER_MASK (7 << 25)
#define RTL818X_TX_CONF_DISREQQSIZE (1 << 28)
#define RTL818X_TX_CONF_PROBE_DTS (1 << 29) #define RTL818X_TX_CONF_PROBE_DTS (1 << 29)
#define RTL818X_TX_CONF_HW_SEQNUM (1 << 30) #define RTL818X_TX_CONF_HW_SEQNUM (1 << 30)
#define RTL818X_TX_CONF_CW_MIN (1 << 31) #define RTL818X_TX_CONF_CW_MIN (1 << 31)
...@@ -106,8 +109,11 @@ struct rtl818x_csr { ...@@ -106,8 +109,11 @@ struct rtl818x_csr {
#define RTL818X_MSR_NO_LINK (0 << 2) #define RTL818X_MSR_NO_LINK (0 << 2)
#define RTL818X_MSR_ADHOC (1 << 2) #define RTL818X_MSR_ADHOC (1 << 2)
#define RTL818X_MSR_INFRA (2 << 2) #define RTL818X_MSR_INFRA (2 << 2)
#define RTL818X_MSR_MASTER (3 << 2)
#define RTL818X_MSR_ENEDCA (4 << 2)
u8 CONFIG3; u8 CONFIG3;
#define RTL818X_CONFIG3_ANAPARAM_WRITE (1 << 6) #define RTL818X_CONFIG3_ANAPARAM_WRITE (1 << 6)
#define RTL818X_CONFIG3_GNT_SELECT (1 << 7)
u8 CONFIG4; u8 CONFIG4;
#define RTL818X_CONFIG4_POWEROFF (1 << 6) #define RTL818X_CONFIG4_POWEROFF (1 << 6)
#define RTL818X_CONFIG4_VCOOFF (1 << 7) #define RTL818X_CONFIG4_VCOOFF (1 << 7)
...@@ -133,7 +139,9 @@ struct rtl818x_csr { ...@@ -133,7 +139,9 @@ struct rtl818x_csr {
__le32 RF_TIMING; __le32 RF_TIMING;
u8 GP_ENABLE; u8 GP_ENABLE;
u8 GPIO; u8 GPIO;
u8 reserved_12[10]; u8 reserved_12[2];
__le32 HSSI_PARA;
u8 reserved_13[4];
u8 TX_AGC_CTL; u8 TX_AGC_CTL;
#define RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT (1 << 0) #define RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT (1 << 0)
#define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT (1 << 1) #define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT (1 << 1)
...@@ -141,29 +149,39 @@ struct rtl818x_csr { ...@@ -141,29 +149,39 @@ struct rtl818x_csr {
u8 TX_GAIN_CCK; u8 TX_GAIN_CCK;
u8 TX_GAIN_OFDM; u8 TX_GAIN_OFDM;
u8 TX_ANTENNA; u8 TX_ANTENNA;
u8 reserved_13[16]; u8 reserved_14[16];
u8 WPA_CONF; u8 WPA_CONF;
u8 reserved_14[3]; u8 reserved_15[3];
u8 SIFS; u8 SIFS;
u8 DIFS; u8 DIFS;
u8 SLOT; u8 SLOT;
u8 reserved_15[5]; u8 reserved_16[5];
u8 CW_CONF; u8 CW_CONF;
#define RTL818X_CW_CONF_PERPACKET_CW_SHIFT (1 << 0) #define RTL818X_CW_CONF_PERPACKET_CW_SHIFT (1 << 0)
#define RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT (1 << 1) #define RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT (1 << 1)
u8 CW_VAL; u8 CW_VAL;
u8 RATE_FALLBACK; u8 RATE_FALLBACK;
u8 reserved_16[25]; #define RTL818X_RATE_FALLBACK_ENABLE (1 << 7)
u8 ACM_CONTROL;
u8 reserved_17[24];
u8 CONFIG5; u8 CONFIG5;
u8 TX_DMA_POLLING; u8 TX_DMA_POLLING;
u8 reserved_17[2]; u8 reserved_18[2];
__le16 CWR; __le16 CWR;
u8 RETRY_CTR; u8 RETRY_CTR;
u8 reserved_18[5]; u8 reserved_19[3];
__le16 INT_MIG;
/* RTL818X_R8187B_*: magic numbers from ioregisters */
#define RTL818X_R8187B_B 0
#define RTL818X_R8187B_D 1
#define RTL818X_R8187B_E 2
__le32 RDSAR; __le32 RDSAR;
u8 reserved_19[12]; __le16 TID_AC_MAP;
__le16 FEMR;
u8 reserved_20[4]; u8 reserved_20[4];
u8 ANAPARAM3;
u8 reserved_21[5];
__le16 FEMR;
u8 reserved_22[4];
__le16 TALLY_CNT; __le16 TALLY_CNT;
u8 TALLY_SEL; u8 TALLY_SEL;
} __attribute__((packed)); } __attribute__((packed));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment