aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800.h
diff options
context:
space:
mode:
authorShiang Tu <shiang_tu@ralinktech.com>2011-02-20 07:56:54 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-21 15:40:00 -0500
commit6f492b6d38e18f8d023137231c5d717068deb28d (patch)
tree48024a7f66313c1e8f28d663268decec92ab9598 /drivers/net/wireless/rt2x00/rt2800.h
parent47715e6473d12f265c02cebc587de51af80ed6dc (diff)
rt2x00: Add/Modify protection related register definitions
Make the definition of protection related registers more precisely Signed-off-by: Shiang Tu <shiang_tu@ralinktech.com> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h
index 457887c85937..d3a693b0e706 100644
--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -1138,8 +1138,8 @@
1138 * PROTECT_RATE: Protection control frame rate for CCK TX(RTS/CTS/CFEnd) 1138 * PROTECT_RATE: Protection control frame rate for CCK TX(RTS/CTS/CFEnd)
1139 * PROTECT_CTRL: Protection control frame type for CCK TX 1139 * PROTECT_CTRL: Protection control frame type for CCK TX
1140 * 0:none, 1:RTS/CTS, 2:CTS-to-self 1140 * 0:none, 1:RTS/CTS, 2:CTS-to-self
1141 * PROTECT_NAV: TXOP protection type for CCK TX 1141 * PROTECT_NAV_SHORT: TXOP protection type for CCK TX with short NAV
1142 * 0:none, 1:ShortNAVprotect, 2:LongNAVProtect 1142 * PROTECT_NAV_LONG: TXOP protection type for CCK TX with long NAV
1143 * TX_OP_ALLOW_CCK: CCK TXOP allowance, 0:disallow 1143 * TX_OP_ALLOW_CCK: CCK TXOP allowance, 0:disallow
1144 * TX_OP_ALLOW_OFDM: CCK TXOP allowance, 0:disallow 1144 * TX_OP_ALLOW_OFDM: CCK TXOP allowance, 0:disallow
1145 * TX_OP_ALLOW_MM20: CCK TXOP allowance, 0:disallow 1145 * TX_OP_ALLOW_MM20: CCK TXOP allowance, 0:disallow
@@ -1151,7 +1151,8 @@
1151#define CCK_PROT_CFG 0x1364 1151#define CCK_PROT_CFG 0x1364
1152#define CCK_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1152#define CCK_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1153#define CCK_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1153#define CCK_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1154#define CCK_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1154#define CCK_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1155#define CCK_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1155#define CCK_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1156#define CCK_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1156#define CCK_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1157#define CCK_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1157#define CCK_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1158#define CCK_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)
@@ -1166,7 +1167,8 @@
1166#define OFDM_PROT_CFG 0x1368 1167#define OFDM_PROT_CFG 0x1368
1167#define OFDM_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1168#define OFDM_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1168#define OFDM_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1169#define OFDM_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1169#define OFDM_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1170#define OFDM_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1171#define OFDM_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1170#define OFDM_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1172#define OFDM_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1171#define OFDM_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1173#define OFDM_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1172#define OFDM_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1174#define OFDM_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)
@@ -1181,7 +1183,8 @@
1181#define MM20_PROT_CFG 0x136c 1183#define MM20_PROT_CFG 0x136c
1182#define MM20_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1184#define MM20_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1183#define MM20_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1185#define MM20_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1184#define MM20_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1186#define MM20_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1187#define MM20_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1185#define MM20_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1188#define MM20_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1186#define MM20_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1189#define MM20_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1187#define MM20_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1190#define MM20_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)
@@ -1196,7 +1199,8 @@
1196#define MM40_PROT_CFG 0x1370 1199#define MM40_PROT_CFG 0x1370
1197#define MM40_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1200#define MM40_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1198#define MM40_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1201#define MM40_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1199#define MM40_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1202#define MM40_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1203#define MM40_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1200#define MM40_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1204#define MM40_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1201#define MM40_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1205#define MM40_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1202#define MM40_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1206#define MM40_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)
@@ -1211,7 +1215,8 @@
1211#define GF20_PROT_CFG 0x1374 1215#define GF20_PROT_CFG 0x1374
1212#define GF20_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1216#define GF20_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1213#define GF20_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1217#define GF20_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1214#define GF20_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1218#define GF20_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1219#define GF20_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1215#define GF20_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1220#define GF20_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1216#define GF20_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1221#define GF20_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1217#define GF20_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1222#define GF20_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)
@@ -1226,7 +1231,8 @@
1226#define GF40_PROT_CFG 0x1378 1231#define GF40_PROT_CFG 0x1378
1227#define GF40_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff) 1232#define GF40_PROT_CFG_PROTECT_RATE FIELD32(0x0000ffff)
1228#define GF40_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000) 1233#define GF40_PROT_CFG_PROTECT_CTRL FIELD32(0x00030000)
1229#define GF40_PROT_CFG_PROTECT_NAV FIELD32(0x000c0000) 1234#define GF40_PROT_CFG_PROTECT_NAV_SHORT FIELD32(0x00040000)
1235#define GF40_PROT_CFG_PROTECT_NAV_LONG FIELD32(0x00080000)
1230#define GF40_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000) 1236#define GF40_PROT_CFG_TX_OP_ALLOW_CCK FIELD32(0x00100000)
1231#define GF40_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000) 1237#define GF40_PROT_CFG_TX_OP_ALLOW_OFDM FIELD32(0x00200000)
1232#define GF40_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000) 1238#define GF40_PROT_CFG_TX_OP_ALLOW_MM20 FIELD32(0x00400000)