b43: Add LP 2062 radio init
[linux-2.6/linux-2.6-openrd.git] / drivers / net / wireless / b43 / tables_lpphy.h
blob03ea2ff5d13af9b8bedec1e8273149023441e2af
1 #ifndef B43_TABLES_LPPHY_H_
2 #define B43_TABLES_LPPHY_H_
5 #define B43_LPTAB_TYPEMASK 0xF0000000
6 #define B43_LPTAB_8BIT 0x10000000
7 #define B43_LPTAB_16BIT 0x20000000
8 #define B43_LPTAB_32BIT 0x30000000
9 #define B43_LPTAB8(table, offset) (((table) << 10) | (offset) | B43_LPTAB_8BIT)
10 #define B43_LPTAB16(table, offset) (((table) << 10) | (offset) | B43_LPTAB_16BIT)
11 #define B43_LPTAB32(table, offset) (((table) << 10) | (offset) | B43_LPTAB_32BIT)
13 /* Table definitions */
14 #define B43_LPTAB_TXPWR_R2PLUS B43_LPTAB32(0x07, 0) /* TX power lookup table (rev >= 2) */
15 #define B43_LPTAB_TXPWR_R0_1 B43_LPTAB32(0xA0, 0) /* TX power lookup table (rev < 2) */
17 u32 b43_lptab_read(struct b43_wldev *dev, u32 offset);
18 void b43_lptab_write(struct b43_wldev *dev, u32 offset, u32 value);
20 void b2062_upload_init_table(struct b43_wldev *dev);
23 #endif /* B43_TABLES_LPPHY_H_ */