#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 | | ) |
|
◆ FILE_SECBOOT()
| FILE_SECBOOT |
( |
FORBIDDEN | | ) |
|
◆ write_grf5101()
Definition at line 41 of file rtl8180_grf5101.c.
42{
45
50 phy_config |= (
addr & 1) << 16;
52
53
54 phy_config |= 0x90000000;
55
56
57
60
62}
uint32_t addr
Buffer address.
uint8_t data[48]
Additional event data.
static const int grf5101_encode[]
static void rtl818x_iowrite16(struct rtl818x_priv *priv __unused, u16 *addr, u16 val)
void * priv
Driver private data.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
static struct tlan_private * priv
References addr, data, grf5101_encode, mdelay(), net80211_device::priv, priv, rtl818x_iowrite16(), u32, and u8.
Referenced by grf5101_rf_init(), grf5101_rf_set_channel(), and grf5101_rf_stop().
◆ grf5101_write_phy_antenna()
| void grf5101_write_phy_antenna |
( |
struct net80211_device * | dev, |
|
|
short | chan ) |
|
static |
Definition at line 64 of file rtl8180_grf5101.c.
65{
68
71
72 if (chan == 14)
74
76}
void rtl818x_write_phy(struct net80211_device *dev, u8 addr, u32 data)
#define BB_ANTATTEN_CHAN14
#define RF_PARAM_ANTBDEFAULT
References BB_ANTATTEN_CHAN14, BB_ANTENNA_B, GRF5101_ANTENNA, net80211_device::priv, priv, RF_PARAM_ANTBDEFAULT, rtl818x_write_phy(), and u8.
Referenced by grf5101_rf_init(), and grf5101_rf_set_channel().
◆ grf5101_rf_set_channel()
◆ grf5101_rf_stop()
◆ grf5101_rf_init()
◆ 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 34 of file rtl8180_grf5101.c.
34 {
35 0x0, 0x8, 0x4, 0xC,
36 0x2, 0xA, 0x6, 0xE,
37 0x1, 0x9, 0x5, 0xD,
38 0x3, 0xB, 0x7, 0xF
39};
Referenced by write_grf5101().
◆ __rtl818x_rf_driver
Initial value:= {
.name = "GCT GRF5101",
.id = 5,
}
static void grf5101_rf_init(struct net80211_device *dev)
static void grf5101_rf_set_channel(struct net80211_device *dev, struct net80211_channel *channelp)
static void grf5101_rf_stop(struct net80211_device *dev)
Definition at line 181 of file rtl8180_grf5101.c.
181 {
182 .name = "GCT GRF5101",
183 .id = 5,
187};