26 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef B43_TABLES_PHY_LCN_H_3#define B43_TABLES_PHY_LCN_H_4 5/* The LCN-PHY tables. */6#define B43_LCNTAB_TYPEMASK 0xF00000007#define B43_LCNTAB_8BIT 0x100000008#define B43_LCNTAB_16BIT 0x200000009#define B43_LCNTAB_32BIT 0x3000000010#define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT)11#define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT)12#define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT)13 14#define B43_LCNTAB_TX_GAIN_SIZE 12815 16u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset);17void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset,18 unsigned int nr_elements, void *_data);19void b43_lcntab_write(struct b43_wldev *dev, u32 offset, u32 value);20void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset,21 unsigned int nr_elements, const void *_data);22 23void b43_phy_lcn_tables_init(struct b43_wldev *dev);24 25#endif /* B43_TABLES_PHY_LCN_H_ */26