aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy_common.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-12-07 03:42:07 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-08 15:38:44 -0500
commit155180803c95c7b14b355f60431bef45116c151e (patch)
tree5b02de749bb879e1ad488c2c6fd53884044b72f8 /drivers/net/wireless/b43/phy_common.h
parent755fd183b89bc8a302669b6f35cd98faee473f7a (diff)
b43: flush PHY writes when needed
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.h')
-rw-r--r--drivers/net/wireless/b43/phy_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.h b/drivers/net/wireless/b43/phy_common.h
index 0e6194228845..2ed60e5484b6 100644
--- a/drivers/net/wireless/b43/phy_common.h
+++ b/drivers/net/wireless/b43/phy_common.h
@@ -39,6 +39,9 @@ struct b43_c32 { s32 i, q; };
39#define B43_PHYVER_TYPE_SHIFT 8 39#define B43_PHYVER_TYPE_SHIFT 8
40#define B43_PHYVER_VERSION 0x00FF 40#define B43_PHYVER_VERSION 0x00FF
41 41
42/* PHY writes need to be flushed if we reach limit */
43#define B43_MAX_WRITES_IN_ROW 24
44
42/** 45/**
43 * enum b43_interference_mitigation - Interference Mitigation mode 46 * enum b43_interference_mitigation - Interference Mitigation mode
44 * 47 *
@@ -232,6 +235,9 @@ struct b43_phy {
232 /* PHY revision number. */ 235 /* PHY revision number. */
233 u8 rev; 236 u8 rev;
234 237
238 /* Count writes since last read */
239 u8 writes_counter;
240
235 /* Radio versioning */ 241 /* Radio versioning */
236 u16 radio_manuf; /* Radio manufacturer */ 242 u16 radio_manuf; /* Radio manufacturer */
237 u16 radio_ver; /* Radio version */ 243 u16 radio_ver; /* Radio version */