#include <unistd.h>
#include <ipxe/pci.h>
#include <ipxe/net80211.h>
#include "rtl818x.h"
Go to the source code of this file.
◆ GRF5101_ANTENNA
#define GRF5101_ANTENNA 0xA3 |
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_ONLY |
| ) |
|
◆ write_grf5101()
Definition at line 40 of file rtl8180_grf5101.c.
49 phy_config |= (
addr & 1) << 16;
53 phy_config |= 0x90000000;
void * priv
Driver private data.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
static struct tlan_private * priv
uint8_t data[48]
Additional event data.
static void rtl818x_iowrite16(struct rtl818x_priv *priv __unused, u16 *addr, u16 val)
static const int grf5101_encode[]
References addr, data, grf5101_encode, mdelay(), priv, net80211_device::priv, and rtl818x_iowrite16().
Referenced by grf5101_rf_init(), grf5101_rf_set_channel(), and grf5101_rf_stop().
◆ grf5101_write_phy_antenna()
static void grf5101_write_phy_antenna |
( |
struct net80211_device * |
dev, |
|
|
short |
chan |
|
) |
| |
|
static |
◆ grf5101_rf_set_channel()
◆ grf5101_rf_stop()
◆ grf5101_rf_init()
Definition at line 115 of file rtl8180_grf5101.c.
void rtl818x_write_phy(struct net80211_device *dev, u8 addr, u32 data)
static u8 rtl818x_ioread8(struct rtl818x_priv *priv __unused, u8 *addr)
void * priv
Driver private data.
static void grf5101_write_phy_antenna(struct net80211_device *dev, short chan)
static struct tlan_private * priv
static void write_grf5101(struct net80211_device *dev, u8 addr, u32 data)
void rtl818x_set_anaparam(struct rtl818x_priv *priv, u32 anaparam)
#define RTL818X_CONFIG2_ANTENNA_DIV
References grf5101_write_phy_antenna(), priv, net80211_device::priv, RTL818X_CONFIG2_ANTENNA_DIV, rtl818x_ioread8(), rtl818x_set_anaparam(), rtl818x_write_phy(), and write_grf5101().
◆ grf5101_encode
const int grf5101_encode[] |
|
static |
Initial value:= {
0x0, 0x8, 0x4, 0xC,
0x2, 0xA, 0x6, 0xE,
0x1, 0x9, 0x5, 0xD,
0x3, 0xB, 0x7, 0xF
}
Definition at line 33 of file rtl8180_grf5101.c.
Referenced by write_grf5101().
◆ __rtl818x_rf_driver
Initial value:= {
.name = "GCT GRF5101",
.id = 5,
}
static void grf5101_rf_set_channel(struct net80211_device *dev, struct net80211_channel *channelp)
static void grf5101_rf_init(struct net80211_device *dev)
static void grf5101_rf_stop(struct net80211_device *dev)
Definition at line 180 of file rtl8180_grf5101.c.