diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-08-31 17:36:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:53:45 -0400 |
commit | b35e6d9a1c35fbb91716ab14551cc0985b443cd6 (patch) | |
tree | 53d7b84dc7fb6defd1b6fccc931f77e8f8f6eb1d /drivers/net/wireless/b43/tables_phy_lcn.c | |
parent | 0b4ff45d8e0f0f34e18823bd4e144bc324cae4ba (diff) |
b43: LCN-PHY: put tables functions in correct file
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.c')
-rw-r--r-- | drivers/net/wireless/b43/tables_phy_lcn.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.c b/drivers/net/wireless/b43/tables_phy_lcn.c index 916d3f194f4..f74c00a34ad 100644 --- a/drivers/net/wireless/b43/tables_phy_lcn.c +++ b/drivers/net/wireless/b43/tables_phy_lcn.c | |||
@@ -445,7 +445,7 @@ void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset, | |||
445 | #define lcntab_upload(dev, offset, data) do { \ | 445 | #define lcntab_upload(dev, offset, data) do { \ |
446 | b43_lcntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \ | 446 | b43_lcntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \ |
447 | } while (0) | 447 | } while (0) |
448 | void b43_phy_lcn_tables_init(struct b43_wldev *dev) | 448 | static void b43_phy_lcn_upload_static_tables(struct b43_wldev *dev) |
449 | { | 449 | { |
450 | lcntab_upload(dev, B43_LCNTAB16(0x02, 0), b43_lcntab_0x02); | 450 | lcntab_upload(dev, B43_LCNTAB16(0x02, 0), b43_lcntab_0x02); |
451 | lcntab_upload(dev, B43_LCNTAB16(0x01, 0), b43_lcntab_0x01); | 451 | lcntab_upload(dev, B43_LCNTAB16(0x01, 0), b43_lcntab_0x01); |
@@ -462,3 +462,18 @@ void b43_phy_lcn_tables_init(struct b43_wldev *dev) | |||
462 | lcntab_upload(dev, B43_LCNTAB16(0x00, 0), b43_lcntab_0x00); | 462 | lcntab_upload(dev, B43_LCNTAB16(0x00, 0), b43_lcntab_0x00); |
463 | lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18); | 463 | lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18); |
464 | } | 464 | } |
465 | |||
466 | static void b43_phy_lcn_clean_0x18_table(struct b43_wldev *dev) | ||
467 | { | ||
468 | u8 i; | ||
469 | |||
470 | for (i = 0; i < 0x80; i++) | ||
471 | b43_lcntab_write(dev, B43_LCNTAB32(0x18, i), 0x80000); | ||
472 | } | ||
473 | |||
474 | void b43_phy_lcn_tables_init(struct b43_wldev *dev) | ||
475 | { | ||
476 | b43_phy_lcn_upload_static_tables(dev); | ||
477 | /* TODO: various tables ops here */ | ||
478 | b43_phy_lcn_clean_0x18_table(dev); | ||
479 | } | ||