|
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) | |
| FILE_SECBOOT (FORBIDDEN) | |
| 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_CMD_TX_ENABLE (1 << 2) |
Definition at line 46 of file rtl818x.h.
Referenced by rtl818x_start(), and rtl818x_stop().
| #define RTL818X_CMD_RX_ENABLE (1 << 3) |
Definition at line 47 of file rtl818x.h.
Referenced by rtl818x_start(), and rtl818x_stop().
| #define RTL818X_CMD_RESET (1 << 4) |
Definition at line 48 of file rtl818x.h.
Referenced by rtl818x_init_hw().
| #define RTL818X_INT_RX_OK (1 << 0) |
Definition at line 52 of file rtl818x.h.
Referenced by rtl818x_poll().
| #define RTL818X_INT_RX_ERR (1 << 1) |
Definition at line 53 of file rtl818x.h.
Referenced by rtl818x_poll().
| #define RTL818X_INT_TXN_OK (1 << 6) |
Definition at line 58 of file rtl818x.h.
Referenced by rtl818x_poll().
| #define RTL818X_INT_TXN_ERR (1 << 7) |
Definition at line 59 of file rtl818x.h.
Referenced by rtl818x_poll().
| #define RTL818X_TX_CONF_LOOPBACK_CONT (3 << 17) |
Definition at line 70 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define RTL818X_TX_CONF_NO_ICV (1 << 19) |
Definition at line 71 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_TX_CONF_SAT_HWPLCP (1 << 24) |
Definition at line 73 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_TX_CONF_R8180_ABCD (2 << 25) |
Definition at line 74 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_TX_CONF_R8180_F (3 << 25) |
Definition at line 75 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_TX_CONF_R8185_ABC (4 << 25) |
Definition at line 76 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_TX_CONF_R8185_D (5 << 25) |
Definition at line 77 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_TX_CONF_HWVER_MASK (7 << 25) |
Definition at line 80 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_TX_CONF_PROBE_DTS (1 << 29) |
Definition at line 82 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_TX_CONF_HW_SEQNUM (1 << 30) |
Definition at line 83 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_NICMAC (1 << 1) |
Definition at line 87 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_BROADCAST (1 << 3) |
Definition at line 89 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_DATA (1 << 18) |
Definition at line 91 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_MGMT (1 << 20) |
Definition at line 93 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_RX_AUTORESETPHY (1 << 28) |
Definition at line 97 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_CSDM1 (1 << 29) |
Definition at line 98 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_CSDM2 (1 << 30) |
Definition at line 99 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_RX_CONF_ONLYERLPKT (1 << 31) |
Definition at line 100 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_EEPROM_CMD_NORMAL (0 << 6) |
Definition at line 108 of file rtl818x.h.
Referenced by rtl818x_init_hw(), rtl818x_probe(), rtl818x_set_anaparam(), rtl818x_set_hwaddr(), rtl818x_stop(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), and rtl8225z2_rf_init().
| #define RTL818X_EEPROM_CMD_LOAD (1 << 6) |
Definition at line 109 of file rtl818x.h.
Referenced by rtl818x_init_hw().
| #define RTL818X_EEPROM_CMD_PROGRAM (2 << 6) |
Definition at line 110 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define RTL818X_EEPROM_CMD_CONFIG (3 << 6) |
Definition at line 111 of file rtl818x.h.
Referenced by rtl818x_init_hw(), rtl818x_set_anaparam(), rtl818x_set_hwaddr(), rtl818x_stop(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), and rtl8225z2_rf_init().
| #define RTL818X_CONFIG2_ANTENNA_DIV (1 << 6) |
Definition at line 115 of file rtl818x.h.
Referenced by grf5101_rf_init(), max2820_rf_init(), and sa2400_rf_init().
| #define RTL818X_MSR_NO_LINK (0 << 2) |
Definition at line 118 of file rtl818x.h.
Referenced by rtl818x_config().
| #define RTL818X_MSR_INFRA (2 << 2) |
Definition at line 120 of file rtl818x.h.
Referenced by rtl818x_config().
| #define RTL818X_CONFIG3_ANAPARAM_WRITE (1 << 6) |
Definition at line 124 of file rtl818x.h.
Referenced by rtl818x_set_anaparam(), rtl8225_rf_set_tx_power(), and rtl8225_rf_stop().
| #define RTL818X_CONFIG4_VCOOFF (1 << 7) |
Definition at line 128 of file rtl818x.h.
Referenced by rtl818x_stop().
| #define RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT (1 << 0) |
Definition at line 155 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT (1 << 1) |
Definition at line 156 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_TX_AGC_CTL_FEEDBACK_ANT (1 << 2) |
Definition at line 157 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_CW_CONF_PERPACKET_CW_SHIFT (1 << 0) |
Definition at line 169 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT (1 << 1) |
Definition at line 170 of file rtl818x.h.
Referenced by rtl818x_start().
| #define MAX_RX_SIZE IEEE80211_MAX_FRAME_LEN |
Definition at line 198 of file rtl818x.h.
Referenced by rtl818x_handle_rx(), and rtl818x_init_rx_ring().
| #define RF_PARAM_ANALOGPHY (1 << 0) |
Definition at line 200 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define RF_PARAM_ANTBDEFAULT (1 << 1) |
Definition at line 201 of file rtl818x.h.
Referenced by grf5101_write_phy_antenna(), max2820_write_phy_antenna(), and sa2400_write_phy_antenna().
| #define RF_PARAM_CARRIERSENSE1 (1 << 2) |
Definition at line 202 of file rtl818x.h.
Referenced by rtl818x_start().
| #define RF_PARAM_CARRIERSENSE2 (1 << 3) |
Definition at line 203 of file rtl818x.h.
Referenced by rtl818x_start().
| #define BB_ANTATTEN_CHAN14 0x0C |
Definition at line 205 of file rtl818x.h.
Referenced by grf5101_write_phy_antenna(), max2820_write_phy_antenna(), and sa2400_write_phy_antenna().
| #define BB_ANTENNA_B 0x40 |
Definition at line 206 of file rtl818x.h.
Referenced by grf5101_write_phy_antenna(), max2820_write_phy_antenna(), and sa2400_write_phy_antenna().
| #define ANAPARAM_TXDACOFF_SHIFT 27 |
Definition at line 213 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define ANAPARAM_PWR0_SHIFT 28 |
Definition at line 214 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define ANAPARAM_PWR0_MASK (0x07 << ANAPARAM_PWR0_SHIFT) |
Definition at line 215 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define ANAPARAM_PWR1_SHIFT 20 |
Definition at line 216 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define ANAPARAM_PWR1_MASK (0x7F << ANAPARAM_PWR1_SHIFT) |
Definition at line 217 of file rtl818x.h.
Referenced by sa2400_rf_init().
| #define RTL818X_RX_RING_SIZE 8 /* doesn't have to be a power of 2 */ |
Definition at line 219 of file rtl818x.h.
Referenced by rtl818x_free_rx_ring(), rtl818x_handle_rx(), and rtl818x_init_rx_ring().
| #define RTL818X_TX_RING_SIZE 8 /* nor this [but 2^n is very slightly faster] */ |
Definition at line 220 of file rtl818x.h.
Referenced by rtl818x_free_tx_ring(), rtl818x_handle_tx(), rtl818x_init_tx_ring(), and rtl818x_tx().
| #define RTL818X_RING_ALIGN 256 |
Definition at line 221 of file rtl818x.h.
Referenced by rtl818x_init_rx_ring(), and rtl818x_init_tx_ring().
| #define RTL818X_MAX_RETRIES 4 |
Definition at line 223 of file rtl818x.h.
Referenced by rtl818x_tx().
| #define RTL818X_RF_DRIVERS __table(struct rtl818x_rf_ops, "rtl818x_rf_drivers") |
Definition at line 349 of file rtl818x.h.
Referenced by rtl818x_probe().
| #define __rtl818x_rf_driver __table_entry(RTL818X_RF_DRIVERS, 01) |
Definition at line 225 of file rtl818x.h.
Definition at line 253 of file rtl818x.h.
| FILE_LICENCE | ( | GPL2_ONLY | ) |
| FILE_SECBOOT | ( | FORBIDDEN | ) |
| void rtl818x_write_phy | ( | struct net80211_device * | dev, |
| u8 | addr, | ||
| u32 | data ) |
Definition at line 48 of file rtl818x.c.
References addr, data, net80211_device::priv, priv, rtl818x_ioread8(), rtl818x_iowrite32(), u32, and u8.
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 221 of file rtl818x.c.
References priv, reg, RTL818X_CONFIG3_ANAPARAM_WRITE, RTL818X_EEPROM_CMD_CONFIG, RTL818X_EEPROM_CMD_NORMAL, rtl818x_ioread8(), rtl818x_iowrite32(), rtl818x_iowrite8(), u32, and u8.
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 316 of file rtl818x.h.
References __unused, addr, inb, priv, and u8.
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 321 of file rtl818x.h.
References __unused, addr, inw, priv, and u16.
Referenced by rtl818x_init_hw(), rtl818x_poll(), rtl8225_read(), rtl8225_rf_init(), rtl8225_write(), and rtl8225z2_rf_init().
|
inlinestatic |
Definition at line 326 of file rtl818x.h.
References __unused, addr, inl, priv, and u32.
Referenced by rtl818x_probe(), rtl818x_start(), and sa2400_rf_init().
|
inlinestatic |
Definition at line 331 of file rtl818x.h.
References __unused, addr, outb, priv, u8, 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 337 of file rtl818x.h.
References __unused, addr, outw, priv, u16, 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 343 of file rtl818x.h.
References __unused, addr, outl, priv, u32, 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().
|
extern |
Definition at line 654 of file rtl818x.c.
References adjust_pci_device(), net80211_hw_info::bands, net80211_hw_info::channel_change_time, DBG, DBG2, net_device::dev, pci_device::dev, ENOMEM, ENOSYS, ENXIO, net80211_hw_info::flags, for_each_table_entry, free, net80211_hw_info::hwaddr, rtl818x_rf_ops::id, 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(), net80211_device::priv, 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, u16, u32, udelay(), and zalloc().
|
extern |
Definition at line 829 of file rtl818x.c.
References net80211_free(), net80211_unregister(), and pci_get_drvdata().