summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom/b43/tables_phy_lcn.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2015-11-17 19:49:23 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-11-18 11:20:36 +0200
commit58619b14d106e453e3924810fac16a8644b04db1 (patch)
tree46f76b765f3e469cb651ae1d7dc8cafac4fc975e /drivers/net/wireless/broadcom/b43/tables_phy_lcn.h
parent30fe0f9b8c755d9aab04bb7c98ce9c7835c3bd24 (diff)
downloadblackbird-op-linux-58619b14d106e453e3924810fac16a8644b04db1.tar.gz
blackbird-op-linux-58619b14d106e453e3924810fac16a8644b04db1.zip
b43: move under broadcom vendor directory
Part of reorganising wireless drivers directory and Kconfig. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/b43/tables_phy_lcn.h')
-rw-r--r--drivers/net/wireless/broadcom/b43/tables_phy_lcn.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/net/wireless/broadcom/b43/tables_phy_lcn.h b/drivers/net/wireless/broadcom/b43/tables_phy_lcn.h
new file mode 100644
index 000000000000..caff9db6831f
--- /dev/null
+++ b/drivers/net/wireless/broadcom/b43/tables_phy_lcn.h
@@ -0,0 +1,24 @@
+#ifndef B43_TABLES_PHY_LCN_H_
+#define B43_TABLES_PHY_LCN_H_
+
+/* The LCN-PHY tables. */
+#define B43_LCNTAB_TYPEMASK 0xF0000000
+#define B43_LCNTAB_8BIT 0x10000000
+#define B43_LCNTAB_16BIT 0x20000000
+#define B43_LCNTAB_32BIT 0x30000000
+#define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT)
+#define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT)
+#define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT)
+
+#define B43_LCNTAB_TX_GAIN_SIZE 128
+
+u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset);
+void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset,
+ unsigned int nr_elements, void *_data);
+void b43_lcntab_write(struct b43_wldev *dev, u32 offset, u32 value);
+void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset,
+ unsigned int nr_elements, const void *_data);
+
+void b43_phy_lcn_tables_init(struct b43_wldev *dev);
+
+#endif /* B43_TABLES_PHY_LCN_H_ */
OpenPOWER on IntegriCloud