iPXE
|
Go to the source code of this file.
Data Structures | |
struct | rtl818x_csr |
struct | rtl818x_tx_desc |
struct | rtl818x_rx_desc |
struct | rtl818x_priv |
struct | rtl818x_rf_ops |
Functions | |
FILE_LICENCE (GPL2_ONLY) | |
void | rtl818x_write_phy (struct net80211_device *dev, u8 addr, u32 data) |
void | rtl818x_set_anaparam (struct rtl818x_priv *priv, u32 anaparam) |
static u8 | rtl818x_ioread8 (struct rtl818x_priv *priv __unused, u8 *addr) |
static u16 | rtl818x_ioread16 (struct rtl818x_priv *priv __unused, u16 *addr) |
static u32 | rtl818x_ioread32 (struct rtl818x_priv *priv __unused, u32 *addr) |
static void | rtl818x_iowrite8 (struct rtl818x_priv *priv __unused, u8 *addr, u8 val) |
static void | rtl818x_iowrite16 (struct rtl818x_priv *priv __unused, u16 *addr, u16 val) |
static void | rtl818x_iowrite32 (struct rtl818x_priv *priv __unused, u32 *addr, u32 val) |
int | rtl818x_probe (struct pci_device *pdev) |
void | rtl818x_remove (struct pci_device *pdev) |
#define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT (1 << 1) |
#define MAX_RX_SIZE IEEE80211_MAX_FRAME_LEN |
#define RTL818X_RX_RING_SIZE 8 /* doesn't have to be a power of 2 */ |
#define RTL818X_TX_RING_SIZE 8 /* nor this [but 2^n is very slightly faster] */ |
#define RTL818X_RF_DRIVERS __table(struct rtl818x_rf_ops, "rtl818x_rf_drivers") |
#define __rtl818x_rf_driver __table_entry(RTL818X_RF_DRIVERS, 01) |
Definition at line 224 of file rtl818x.h.
Definition at line 252 of file rtl818x.h.
FILE_LICENCE | ( | GPL2_ONLY | ) |
void rtl818x_write_phy | ( | struct net80211_device * | dev, |
u8 | addr, | ||
u32 | data | ||
) |
Definition at line 46 of file rtl818x.c.
References addr, data, priv, net80211_device::priv, rtl818x_ioread8(), and rtl818x_iowrite32().
Referenced by grf5101_rf_init(), grf5101_write_phy_antenna(), max2820_rf_init(), max2820_rf_set_channel(), max2820_rf_stop(), max2820_write_phy_antenna(), rtl8225_write_phy_cck(), rtl8225_write_phy_ofdm(), sa2400_rf_init(), and sa2400_write_phy_antenna().
void rtl818x_set_anaparam | ( | struct rtl818x_priv * | priv, |
u32 | anaparam | ||
) |
Definition at line 219 of file rtl818x.c.
References priv, reg, RTL818X_CONFIG3_ANAPARAM_WRITE, RTL818X_EEPROM_CMD_CONFIG, RTL818X_EEPROM_CMD_NORMAL, rtl818x_ioread8(), rtl818x_iowrite32(), and rtl818x_iowrite8().
Referenced by grf5101_rf_init(), grf5101_rf_stop(), rtl818x_init_hw(), rtl8225_rf_init(), rtl8225z2_rf_init(), and sa2400_rf_init().
|
inlinestatic |
Definition at line 315 of file rtl818x.h.
Referenced by grf5101_rf_init(), max2820_rf_init(), rtl818x_init_hw(), rtl818x_probe(), rtl818x_set_anaparam(), rtl818x_spi_read_bit(), rtl818x_spi_write_bit(), rtl818x_start(), rtl818x_stop(), rtl818x_write_phy(), rtl8225_read(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), rtl8225_write(), rtl8225x_rf_init(), rtl8225z2_rf_init(), rtl8225z2_rf_set_tx_power(), and sa2400_rf_init().
|
inlinestatic |
Definition at line 320 of file rtl818x.h.
Referenced by rtl818x_init_hw(), rtl818x_poll(), rtl8225_read(), rtl8225_rf_init(), rtl8225_write(), and rtl8225z2_rf_init().
|
inlinestatic |
Definition at line 325 of file rtl818x.h.
Referenced by rtl818x_probe(), rtl818x_start(), and sa2400_rf_init().
|
inlinestatic |
Definition at line 330 of file rtl818x.h.
References addr, outb, and val.
Referenced by rtl818x_config(), rtl818x_init_hw(), rtl818x_probe(), rtl818x_set_anaparam(), rtl818x_set_hwaddr(), rtl818x_spi_write_bit(), rtl818x_start(), rtl818x_stop(), rtl818x_tx(), rtl8225_rf_conf_erp(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), rtl8225z2_rf_init(), and rtl8225z2_rf_set_tx_power().
|
inlinestatic |
Definition at line 336 of file rtl818x.h.
References addr, outw, and val.
Referenced by rtl818x_init_hw(), rtl818x_irq(), rtl818x_poll(), rtl818x_set_hwaddr(), rtl818x_start(), rtl8225_read(), rtl8225_rf_init(), rtl8225_write(), rtl8225x_rf_init(), rtl8225z2_rf_init(), write_grf5101(), write_max2820(), and write_sa2400().
|
inlinestatic |
Definition at line 342 of file rtl818x.h.
References addr, outl, and val.
Referenced by rtl818x_init_hw(), rtl818x_set_anaparam(), rtl818x_set_hwaddr(), rtl818x_start(), rtl818x_write_phy(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), rtl8225z2_rf_init(), and sa2400_rf_init().
int rtl818x_probe | ( | struct pci_device * | pdev | ) |
Definition at line 652 of file rtl818x.c.
References adjust_pci_device(), net80211_hw_info::bands, net80211_hw_info::channel_change_time, DBG, DBG2, pci_device::dev, net_device::dev, ENOMEM, ENOSYS, ENXIO, net80211_hw_info::flags, for_each_table_entry, free, net80211_hw_info::hwaddr, rtl818x_rf_ops::id, if(), init_spi_bit_basher(), pci_device::ioaddr, le16_to_cpu, le32_to_cpu, memcpy(), net80211_hw_info::modes, net80211_alloc(), NET80211_BAND_2GHZ, NET80211_BAND_BIT_2GHZ, net80211_free(), NET80211_MODE_B, NET80211_MODE_G, net80211_register(), net80211_device::netdev, netdev_addr(), net80211_hw_info::nr_rates, NULL, nvs_read(), pci_set_drvdata(), priv, net80211_device::priv, net80211_hw_info::rates, reg, rtl818x_basher_ops, RTL818X_EEPROM_CMD_NORMAL, RTL818X_EEPROM_CMD_PROGRAM, rtl818x_ioread32(), rtl818x_ioread8(), rtl818x_iowrite8(), RTL818X_NR_B_RATES, RTL818X_NR_RATES, rtl818x_operations, rtl818x_rates, RTL818X_RF_DRIVERS, RTL818X_TX_CONF_HWVER_MASK, RTL818X_TX_CONF_R8180_ABCD, RTL818X_TX_CONF_R8180_F, RTL818X_TX_CONF_R8185_ABC, RTL818X_TX_CONF_R8185_D, net80211_hw_info::signal_max, net80211_hw_info::signal_type, SPI_MODE_THREEWIRE, udelay(), and zalloc().
void rtl818x_remove | ( | struct pci_device * | pdev | ) |
Definition at line 827 of file rtl818x.c.
References net80211_free(), net80211_unregister(), and pci_get_drvdata().