Go to the documentation of this file. 1 #ifndef LINUX_B43_PHY_COMMON_H_
2 #define LINUX_B43_PHY_COMMON_H_
4 #include <linux/types.h>
12 #define CORDIC_CONVERT(value) (((value) >= 0) ? \
13 ((((value) >> 15) + 1) >> 1) : \
14 -((((-(value)) >> 15) + 1) >> 1))
17 #define B43_PHYROUTE 0x0C00
18 #define B43_PHYROUTE_BASE 0x0000
19 #define B43_PHYROUTE_OFDM_GPHY 0x0400
20 #define B43_PHYROUTE_EXT_GPHY 0x0800
21 #define B43_PHYROUTE_N_BMODE 0x0C00
24 #define B43_PHY_CCK(reg) ((reg) | B43_PHYROUTE_BASE)
26 #define B43_PHY_N(reg) ((reg) | B43_PHYROUTE_BASE)
28 #define B43_PHY_N_BMODE(reg) ((reg) | B43_PHYROUTE_N_BMODE)
30 #define B43_PHY_OFDM(reg) ((reg) | B43_PHYROUTE_OFDM_GPHY)
32 #define B43_PHY_EXTG(reg) ((reg) | B43_PHYROUTE_EXT_GPHY)
36 #define B43_PHYVER_ANALOG 0xF000
37 #define B43_PHYVER_ANALOG_SHIFT 12
38 #define B43_PHYVER_TYPE 0x0F00
39 #define B43_PHYVER_TYPE_SHIFT 8
40 #define B43_PHYVER_VERSION 0x00FF
43 #define B43_MAX_WRITES_IN_ROW 24
207 #ifdef CONFIG_B43_DEBUG
274 #ifdef CONFIG_B43_DEBUG
344 #define b43_radio_read16 b43_radio_read
350 #define b43_radio_write16 b43_radio_write
400 #define B43_DEFAULT_CHANNEL UINT_MAX