0001
0002 #ifndef B43_TABLES_PHY_HT_H_
0003 #define B43_TABLES_PHY_HT_H_
0004
0005
0006 #define B43_HTTAB_TYPEMASK 0xF0000000
0007 #define B43_HTTAB_8BIT 0x10000000
0008 #define B43_HTTAB_16BIT 0x20000000
0009 #define B43_HTTAB_32BIT 0x30000000
0010 #define B43_HTTAB8(table, offset) (((table) << 10) | (offset) | B43_HTTAB_8BIT)
0011 #define B43_HTTAB16(table, offset) (((table) << 10) | (offset) | B43_HTTAB_16BIT)
0012 #define B43_HTTAB32(table, offset) (((table) << 10) | (offset) | B43_HTTAB_32BIT)
0013
0014 u32 b43_httab_read(struct b43_wldev *dev, u32 offset);
0015 void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset,
0016 unsigned int nr_elements, void *_data);
0017 void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value);
0018 void b43_httab_write_few(struct b43_wldev *dev, u32 offset, size_t num, ...);
0019 void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset,
0020 unsigned int nr_elements, const void *_data);
0021
0022 void b43_phy_ht_tables_init(struct b43_wldev *dev);
0023
0024 #define B43_HTTAB_1A_C0_LATE_SIZE 128
0025 extern const u32 b43_httab_0x1a_0xc0_late[];
0026
0027 #endif