diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-08-14 19:23:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-24 14:41:42 -0400 |
commit | ba2d00e816a11b532e0c035e5cf7b9311e72ac00 (patch) | |
tree | b052c713cbbbb828fc7e96426fc1630c17c3a0ee /drivers/net/wireless/b43/tables_phy_lcn.h | |
parent | 7ed88528884bd477bddef367e8676b9e5ff99668 (diff) |
b43: LCN-PHY: add init tables
They were taken from MMIO dump with few RegExps and vim.
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/tables_phy_lcn.h')
-rw-r--r-- | drivers/net/wireless/b43/tables_phy_lcn.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.h b/drivers/net/wireless/b43/tables_phy_lcn.h index 5e31b15b81ec..b6471e89c36f 100644 --- a/drivers/net/wireless/b43/tables_phy_lcn.h +++ b/drivers/net/wireless/b43/tables_phy_lcn.h | |||
@@ -1,6 +1,22 @@ | |||
1 | #ifndef B43_TABLES_PHY_LCN_H_ | 1 | #ifndef B43_TABLES_PHY_LCN_H_ |
2 | #define B43_TABLES_PHY_LCN_H_ | 2 | #define B43_TABLES_PHY_LCN_H_ |
3 | 3 | ||
4 | /* The LCN-PHY tables. */ | ||
5 | #define B43_LCNTAB_TYPEMASK 0xF0000000 | ||
6 | #define B43_LCNTAB_8BIT 0x10000000 | ||
7 | #define B43_LCNTAB_16BIT 0x20000000 | ||
8 | #define B43_LCNTAB_32BIT 0x30000000 | ||
9 | #define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT) | ||
10 | #define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT) | ||
11 | #define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT) | ||
12 | |||
13 | u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset); | ||
14 | void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset, | ||
15 | unsigned int nr_elements, void *_data); | ||
16 | void b43_lcntab_write(struct b43_wldev *dev, u32 offset, u32 value); | ||
17 | void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset, | ||
18 | unsigned int nr_elements, const void *_data); | ||
19 | |||
4 | void b43_phy_lcn_tables_init(struct b43_wldev *dev); | 20 | void b43_phy_lcn_tables_init(struct b43_wldev *dev); |
5 | 21 | ||
6 | #endif /* B43_TABLES_PHY_LCN_H_ */ | 22 | #endif /* B43_TABLES_PHY_LCN_H_ */ |