31 #define SA2400_ANTENNA 0x91 32 #define SA2400_DIG_ANAPARAM_PWR1_ON 0x8 33 #define SA2400_ANA_ANAPARAM_PWR1_ON 0x28 34 #define SA2400_ANAPARAM_PWR0_ON 0x3 37 #define SA2400_MAX_SENS 85 39 #define SA2400_REG4_FIRDAC_SHIFT 7 64 phy_config = 0xb0000000;
66 phy_config |= ((
u32)(
addr & 0xf)) << 24;
67 phy_config |=
data & 0xffffff;
212 .
name =
"Philips SA2400",
#define SA2400_DIG_ANAPARAM_PWR1_ON
void rtl818x_write_phy(struct net80211_device *dev, u8 addr, u32 data)
static u8 rtl818x_ioread8(struct rtl818x_priv *priv __unused, u8 *addr)
static void sa2400_write_phy_antenna(struct net80211_device *dev, short chan)
static void sa2400_rf_init(struct net80211_device *dev)
static void write_sa2400(struct net80211_device *dev, u8 addr, u32 data)
static void rtl818x_iowrite32(struct rtl818x_priv *priv __unused, u32 *addr, u32 val)
#define ANAPARAM_PWR0_SHIFT
#define ANAPARAM_PWR1_MASK
#define RTL818X_TX_CONF_LOOPBACK_CONT
uint32_t channel
RNDIS channel.
void * priv
Driver private data.
#define BB_ANTATTEN_CHAN14
The iPXE 802.11 MAC layer.
#define ANAPARAM_PWR1_SHIFT
Structure encapsulating the complete state of an 802.11 device.
#define SA2400_ANAPARAM_PWR0_ON
#define ANAPARAM_PWR0_MASK
static void sa2400_rf_set_channel(struct net80211_device *dev, struct net80211_channel *channelp)
struct rtl818x_rf_ops sa2400_rf_ops __rtl818x_rf_driver
#define SA2400_REG4_FIRDAC_SHIFT
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
static struct tlan_private * priv
uint8_t data[48]
Additional event data.
#define SA2400_ANA_ANAPARAM_PWR1_ON
static void sa2400_rf_stop(struct net80211_device *dev)
static void rtl818x_iowrite16(struct rtl818x_priv *priv __unused, u16 *addr, u16 val)
void rtl818x_set_anaparam(struct rtl818x_priv *priv, u32 anaparam)
u8 channel_nr
A channel number interpreted according to the band.
#define RF_PARAM_ANTBDEFAULT
#define RF_PARAM_ANALOGPHY
#define ANAPARAM_TXDACOFF_SHIFT
#define RTL818X_CONFIG2_ANTENNA_DIV
static u32 rtl818x_ioread32(struct rtl818x_priv *priv __unused, u32 *addr)
static const u32 sa2400_chan[]