summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/tables_lpphy.h
diff options
context:
space:
mode:
authorGábor Stefanik2009-08-11 22:24:22 +0200
committerJohn W. Linville2009-08-14 15:14:04 +0200
commit47583154767886a97a82452c8aca63bf0336337a (patch)
treec0eb7ad95efce634406ac333bd126ed8248aee0b /drivers/net/wireless/b43/tables_lpphy.h
parentusbnet: add rx queue pausing (diff)
downloadkernel-qcow2-linux-47583154767886a97a82452c8aca63bf0336337a.tar.gz
kernel-qcow2-linux-47583154767886a97a82452c8aca63bf0336337a.tar.xz
kernel-qcow2-linux-47583154767886a97a82452c8aca63bf0336337a.zip
b43: LP-PHY: Refactor TX gain table I/O
Make it possible to write individual gain table entries. Allow gain table entries to be written outside gain table init. Add version-agnostic helpers for writing gain tables. Use the new TX gain table helpers during table init. Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/tables_lpphy.h')
-rw-r--r--drivers/net/wireless/b43/tables_lpphy.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/tables_lpphy.h b/drivers/net/wireless/b43/tables_lpphy.h
index b5024b6edab3..84f1d265f657 100644
--- a/drivers/net/wireless/b43/tables_lpphy.h
+++ b/drivers/net/wireless/b43/tables_lpphy.h
@@ -28,6 +28,15 @@ void b43_lptab_write_bulk(struct b43_wldev *dev, u32 offset,
void b2062_upload_init_table(struct b43_wldev *dev);
void b2063_upload_init_table(struct b43_wldev *dev);
+struct lpphy_tx_gain_table_entry {
+ u8 gm, pga, pad, dac, bb_mult;
+};
+
+void lpphy_write_gain_table(struct b43_wldev *dev, int offset,
+ struct lpphy_tx_gain_table_entry data);
+void lpphy_write_gain_table_bulk(struct b43_wldev *dev, int offset, int count,
+ struct lpphy_tx_gain_table_entry *table);
+
void lpphy_rev0_1_table_init(struct b43_wldev *dev);
void lpphy_rev2plus_table_init(struct b43_wldev *dev);
void lpphy_init_tx_gain_table(struct b43_wldev *dev);