iPXE
phy.h File Reference

Go to the source code of this file.

Macros

#define CHANSEL_DIV   15
#define CHANSEL_2G(_freq)
#define CHANSEL_5G(_freq)
#define AR_PHY_BASE   0x9800
#define AR_PHY(_n)
#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX   0x0007E000
#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S   13
#define AR_PHY_TX_GAIN_CLC   0x0000001E
#define AR_PHY_TX_GAIN_CLC_S   1
#define AR_PHY_TX_GAIN   0x0007F000
#define AR_PHY_TX_GAIN_S   12
#define AR_PHY_CLC_TBL1   0xa35c
#define AR_PHY_CLC_I0   0x07ff0000
#define AR_PHY_CLC_I0_S   16
#define AR_PHY_CLC_Q0   0x0000ffd0
#define AR_PHY_CLC_Q0_S   5
#define ANTSWAP_AB   0x0001
#define REDUCE_CHAIN_0   0x00000050
#define REDUCE_CHAIN_1   0x00000051
#define AR_PHY_CHIP_ID   0x9818
#define AR_PHY_TIMING11_SPUR_FREQ_SD   0x3FF00000
#define AR_PHY_TIMING11_SPUR_FREQ_SD_S   20
#define AR_PHY_PLL_CONTROL   0x16180
#define AR_PHY_PLL_MODE   0x16184

Functions

 FILE_LICENCE (BSD2)
 FILE_SECBOOT (FORBIDDEN)

Macro Definition Documentation

◆ CHANSEL_DIV

#define CHANSEL_DIV   15

Definition at line 23 of file phy.h.

◆ CHANSEL_2G

#define CHANSEL_2G ( _freq)
Value:
(((_freq) * 0x10000) / CHANSEL_DIV)
#define CHANSEL_DIV
Definition phy.h:23

Definition at line 24 of file phy.h.

Referenced by ar9002_hw_set_channel(), and ar9003_hw_set_channel().

◆ CHANSEL_5G

#define CHANSEL_5G ( _freq)
Value:
(((_freq) * 0x8000) / CHANSEL_DIV)

Definition at line 25 of file phy.h.

Referenced by ar9002_hw_set_channel(), and ar9003_hw_set_channel().

◆ AR_PHY_BASE

#define AR_PHY_BASE   0x9800

◆ AR_PHY

#define AR_PHY ( _n)
Value:
(AR_PHY_BASE + ((_n)<<2))
#define AR_PHY_BASE
Definition phy.h:27

Definition at line 28 of file phy.h.

Referenced by ar5008_hw_process_ini(), ar5008_hw_set_channel(), ar9002_hw_get_radiorev(), and ar9002_hw_rf_claim().

◆ AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX

#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX   0x0007E000

Definition at line 30 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S

#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S   13

Definition at line 31 of file phy.h.

◆ AR_PHY_TX_GAIN_CLC

#define AR_PHY_TX_GAIN_CLC   0x0000001E

Definition at line 32 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_TX_GAIN_CLC_S

#define AR_PHY_TX_GAIN_CLC_S   1

Definition at line 33 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_TX_GAIN

#define AR_PHY_TX_GAIN   0x0007F000

Definition at line 34 of file phy.h.

◆ AR_PHY_TX_GAIN_S

#define AR_PHY_TX_GAIN_S   12

Definition at line 35 of file phy.h.

◆ AR_PHY_CLC_TBL1

#define AR_PHY_CLC_TBL1   0xa35c

Definition at line 37 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_CLC_I0

#define AR_PHY_CLC_I0   0x07ff0000

Definition at line 38 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_CLC_I0_S

#define AR_PHY_CLC_I0_S   16

Definition at line 39 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_CLC_Q0

#define AR_PHY_CLC_Q0   0x0000ffd0

Definition at line 40 of file phy.h.

Referenced by ar9285_hw_clc().

◆ AR_PHY_CLC_Q0_S

#define AR_PHY_CLC_Q0_S   5

Definition at line 41 of file phy.h.

Referenced by ar9285_hw_clc().

◆ ANTSWAP_AB

#define ANTSWAP_AB   0x0001

Definition at line 43 of file phy.h.

◆ REDUCE_CHAIN_0

#define REDUCE_CHAIN_0   0x00000050

Definition at line 44 of file phy.h.

◆ REDUCE_CHAIN_1

#define REDUCE_CHAIN_1   0x00000051

Definition at line 45 of file phy.h.

◆ AR_PHY_CHIP_ID

#define AR_PHY_CHIP_ID   0x9818

Definition at line 46 of file phy.h.

Referenced by __ath9k_hw_init().

◆ AR_PHY_TIMING11_SPUR_FREQ_SD

#define AR_PHY_TIMING11_SPUR_FREQ_SD   0x3FF00000

Definition at line 48 of file phy.h.

◆ AR_PHY_TIMING11_SPUR_FREQ_SD_S

#define AR_PHY_TIMING11_SPUR_FREQ_SD_S   20

Definition at line 49 of file phy.h.

◆ AR_PHY_PLL_CONTROL

#define AR_PHY_PLL_CONTROL   0x16180

Definition at line 51 of file phy.h.

Referenced by ath9k_hw_init_pll().

◆ AR_PHY_PLL_MODE

#define AR_PHY_PLL_MODE   0x16184

Definition at line 52 of file phy.h.

Referenced by ath9k_hw_init_pll().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( BSD2 )

◆ FILE_SECBOOT()

FILE_SECBOOT ( FORBIDDEN )