blob: b6471e89c36f1a3fce2e05b3b54953148948b297 [file] [log] [blame]
Rafał Miłecki1d738e62011-07-07 15:25:27 +02001#ifndef B43_TABLES_PHY_LCN_H_
2#define B43_TABLES_PHY_LCN_H_
3
Rafał Miłeckiba2d00e2011-08-15 01:23:09 +02004/* The LCN-PHY tables. */
5#define B43_LCNTAB_TYPEMASK 0xF0000000
6#define B43_LCNTAB_8BIT 0x10000000
7#define B43_LCNTAB_16BIT 0x20000000
8#define B43_LCNTAB_32BIT 0x30000000
9#define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT)
10#define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT)
11#define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT)
12
13u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset);
14void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset,
15 unsigned int nr_elements, void *_data);
16void b43_lcntab_write(struct b43_wldev *dev, u32 offset, u32 value);
17void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset,
18 unsigned int nr_elements, const void *_data);
19
Rafał Miłecki1d738e62011-07-07 15:25:27 +020020void b43_phy_lcn_tables_init(struct b43_wldev *dev);
21
22#endif /* B43_TABLES_PHY_LCN_H_ */