Go to the documentation of this file.
21 #ifndef _BRCM_PHY_HAL_H_
22 #define _BRCM_PHY_HAL_H_
28 #define IDCODE_VER_MASK 0x0000000f
29 #define IDCODE_VER_SHIFT 0
30 #define IDCODE_MFG_MASK 0x00000fff
31 #define IDCODE_MFG_SHIFT 0
32 #define IDCODE_ID_MASK 0x0ffff000
33 #define IDCODE_ID_SHIFT 12
34 #define IDCODE_REV_MASK 0xf0000000
35 #define IDCODE_REV_SHIFT 28
37 #define NORADIO_ID 0xe4f5
38 #define NORADIO_IDCODE 0x4e4f5246
40 #define BCM2055_ID 0x2055
41 #define BCM2055_IDCODE 0x02055000
42 #define BCM2055A0_IDCODE 0x1205517f
44 #define BCM2056_ID 0x2056
45 #define BCM2056_IDCODE 0x02056000
46 #define BCM2056A0_IDCODE 0x1205617f
48 #define BCM2057_ID 0x2057
49 #define BCM2057_IDCODE 0x02057000
50 #define BCM2057A0_IDCODE 0x1205717f
52 #define BCM2064_ID 0x2064
53 #define BCM2064_IDCODE 0x02064000
54 #define BCM2064A0_IDCODE 0x0206417f
56 #define PHY_TPC_HW_OFF false
57 #define PHY_TPC_HW_ON true
59 #define PHY_PERICAL_DRIVERUP 1
60 #define PHY_PERICAL_WATCHDOG 2
61 #define PHY_PERICAL_PHYINIT 3
62 #define PHY_PERICAL_JOIN_BSS 4
63 #define PHY_PERICAL_START_IBSS 5
64 #define PHY_PERICAL_UP_BSS 6
65 #define PHY_PERICAL_CHAN 7
68 #define PHY_PERICAL_DISABLE 0
69 #define PHY_PERICAL_SPHASE 1
70 #define PHY_PERICAL_MPHASE 2
71 #define PHY_PERICAL_MANUAL 3
73 #define PHY_HOLD_FOR_ASSOC 1
74 #define PHY_HOLD_FOR_SCAN 2
75 #define PHY_HOLD_FOR_RM 4
76 #define PHY_HOLD_FOR_PLT 8
77 #define PHY_HOLD_FOR_MUTE 16
78 #define PHY_HOLD_FOR_NOT_ASSOC 0x20
80 #define PHY_MUTE_FOR_PREISM 1
81 #define PHY_MUTE_ALL 0xffffffff
83 #define PHY_NOISE_FIXED_VAL (-95)
84 #define PHY_NOISE_FIXED_VAL_NPHY (-92)
85 #define PHY_NOISE_FIXED_VAL_LCNPHY (-92)
87 #define PHY_MODE_CAL 0x0002
88 #define PHY_MODE_NOISEM 0x0004
90 #define BRCMS_TXPWR_DB_FACTOR 4
95 #define BRCMS_TXPWR_MAX (127)
97 #define BRCMS_NUM_RATES_CCK 4
98 #define BRCMS_NUM_RATES_OFDM 8
99 #define BRCMS_NUM_RATES_MCS_1_STREAM 8
100 #define BRCMS_NUM_RATES_MCS_2_STREAM 8
101 #define BRCMS_NUM_RATES_MCS_3_STREAM 8
102 #define BRCMS_NUM_RATES_MCS_4_STREAM 8
104 #define BRCMS_RSSI_INVALID 0