diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-06-30 21:34:06 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-30 21:34:06 +0400 |
commit | df2cbe40753dc36af294c30209ed909869aca6cf (patch) | |
tree | 39eb7e8e06737b295007126f4e16c1b688427163 /drivers/net/wireless/b43/tables_phy_ht.h | |
parent | 1049f6413f6e52572a768ca1590fa479ef0a48e8 (diff) | |
parent | 9a4ba833a2d0016cf836827e136f0c219834bd41 (diff) | |
download | linux-df2cbe40753dc36af294c30209ed909869aca6cf.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Diffstat (limited to 'drivers/net/wireless/b43/tables_phy_ht.h')
-rw-r--r-- | drivers/net/wireless/b43/tables_phy_ht.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/tables_phy_ht.h b/drivers/net/wireless/b43/tables_phy_ht.h new file mode 100644 index 000000000000..ea3be382c894 --- /dev/null +++ b/drivers/net/wireless/b43/tables_phy_ht.h @@ -0,0 +1,22 @@ +#ifndef B43_TABLES_PHY_HT_H_ +#define B43_TABLES_PHY_HT_H_ + +/* The HT-PHY tables. */ +#define B43_HTTAB_TYPEMASK 0xF0000000 +#define B43_HTTAB_8BIT 0x10000000 +#define B43_HTTAB_16BIT 0x20000000 +#define B43_HTTAB_32BIT 0x30000000 +#define B43_HTTAB8(table, offset) (((table) << 10) | (offset) | B43_HTTAB_8BIT) +#define B43_HTTAB16(table, offset) (((table) << 10) | (offset) | B43_HTTAB_16BIT) +#define B43_HTTAB32(table, offset) (((table) << 10) | (offset) | B43_HTTAB_32BIT) + +u32 b43_httab_read(struct b43_wldev *dev, u32 offset); +void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset, + unsigned int nr_elements, void *_data); +void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value); +void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset, + unsigned int nr_elements, const void *_data); + +void b43_phy_ht_tables_init(struct b43_wldev *dev); + +#endif /* B43_TABLES_PHY_HT_H_ */ |