tables_phy_ht.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef B43_TABLES_PHY_HT_H_
  3. #define B43_TABLES_PHY_HT_H_
  4. /* The HT-PHY tables. */
  5. #define B43_HTTAB_TYPEMASK 0xF0000000
  6. #define B43_HTTAB_8BIT 0x10000000
  7. #define B43_HTTAB_16BIT 0x20000000
  8. #define B43_HTTAB_32BIT 0x30000000
  9. #define B43_HTTAB8(table, offset) (((table) << 10) | (offset) | B43_HTTAB_8BIT)
  10. #define B43_HTTAB16(table, offset) (((table) << 10) | (offset) | B43_HTTAB_16BIT)
  11. #define B43_HTTAB32(table, offset) (((table) << 10) | (offset) | B43_HTTAB_32BIT)
  12. u32 b43_httab_read(struct b43_wldev *dev, u32 offset);
  13. void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset,
  14. unsigned int nr_elements, void *_data);
  15. void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value);
  16. void b43_httab_write_few(struct b43_wldev *dev, u32 offset, size_t num, ...);
  17. void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset,
  18. unsigned int nr_elements, const void *_data);
  19. void b43_phy_ht_tables_init(struct b43_wldev *dev);
  20. #define B43_HTTAB_1A_C0_LATE_SIZE 128
  21. extern const u32 b43_httab_0x1a_0xc0_late[];
  22. #endif /* B43_TABLES_PHY_HT_H_ */