FreeBSD kernel usb device Code
|
#include <sys/cdefs.h>
#include "opt_wlan.h"
#include <sys/param.h>
#include <sys/sockio.h>
#include <sys/sysctl.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/mbuf.h>
#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <sys/endian.h>
#include <sys/kdb.h>
#include <net/if.h>
#include <net/if_var.h>
#include <net/if_arp.h>
#include <net/ethernet.h>
#include <net/if_dl.h>
#include <net/if_media.h>
#include <net/if_types.h>
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_regdomain.h>
#include <net80211/ieee80211_radiotap.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include "usbdevs.h"
#include <dev/usb/wlan/if_urtwreg.h>
#include <dev/usb/wlan/if_urtwvar.h>
Go to the source code of this file.
Data Structures | |
struct | urtw_pair |
Macros | |
#define | URTW_RIDX_CCK5 2 |
#define | URTW_RIDX_CCK11 3 |
#define | URTW_RIDX_OFDM6 4 |
#define | URTW_RIDX_OFDM24 8 |
#define | DPRINTF(sc, m, fmt, ...) |
#define | urtw_lookup(v, p) ((const struct urtw_type *)usb_lookup(urtw_devs, v, p)) |
#define | URTW_DEV_B(v, p) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, URTW_REV_RTL8187B) } |
#define | URTW_DEV_L(v, p) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, URTW_REV_RTL8187L) } |
#define | URTW_REV_RTL8187B 0 |
#define | URTW_REV_RTL8187L 1 |
#define | urtw_read8_m(sc, val, data) |
#define | urtw_write8_m(sc, val, data) |
#define | urtw_read16_m(sc, val, data) |
#define | urtw_write16_m(sc, val, data) |
#define | urtw_read32_m(sc, val, data) |
#define | urtw_write32_m(sc, val, data) |
#define | urtw_8187_write_phy_ofdm(sc, val, data) |
#define | urtw_8187_write_phy_cck(sc, val, data) |
#define | urtw_8225_write(sc, val, data) |
#define | URTW_READCMD_LEN 3 |
#define | URTW_ARFR 0x1e0 |
#define | URTW_FEMR_FOR_8187B 0x1d4 |
#define | URTW_RFSW_CTRL 0x272 |
#define | URTW_STATUS_TYPE_TXCLOSE 1 |
#define | URTW_STATUS_TYPE_BEACON_INTR 0 |
#define | URTW_SYSCTL_STAT_ADD32(c, h, n, p, d) SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static | SYSCTL_NODE (_hw_usb, OID_AUTO, urtw, CTLFLAG_RW|CTLFLAG_MPSAFE, 0, "USB Realtek 8187L") |
SYSCTL_INT (_hw_usb_urtw, OID_AUTO, preamble_mode, CTLFLAG_RWTUN, &urtw_preamble_mode, 0, "set the preable mode (long or short)") | |
static struct ieee80211vap * | urtw_vap_create (struct ieee80211com *, const char[IFNAMSIZ], int, enum ieee80211_opmode, int, const uint8_t[IEEE80211_ADDR_LEN], const uint8_t[IEEE80211_ADDR_LEN]) |
static void | urtw_vap_delete (struct ieee80211vap *) |
static void | urtw_init (struct urtw_softc *) |
static void | urtw_stop (struct urtw_softc *) |
static void | urtw_parent (struct ieee80211com *) |
static int | urtw_transmit (struct ieee80211com *, struct mbuf *) |
static void | urtw_start (struct urtw_softc *) |
static int | urtw_alloc_rx_data_list (struct urtw_softc *) |
static int | urtw_alloc_tx_data_list (struct urtw_softc *) |
static int | urtw_raw_xmit (struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *) |
static void | urtw_scan_start (struct ieee80211com *) |
static void | urtw_scan_end (struct ieee80211com *) |
static void | urtw_getradiocaps (struct ieee80211com *, int, int *, struct ieee80211_channel[]) |
static void | urtw_set_channel (struct ieee80211com *) |
static void | urtw_update_promisc (struct ieee80211com *) |
static void | urtw_update_mcast (struct ieee80211com *) |
static int | urtw_tx_start (struct urtw_softc *, struct ieee80211_node *, struct mbuf *, struct urtw_data *, int) |
static int | urtw_newstate (struct ieee80211vap *, enum ieee80211_state, int) |
static void | urtw_led_ch (void *) |
static void | urtw_ledtask (void *, int) |
static void | urtw_watchdog (void *) |
static void | urtw_set_multi (void *) |
static int | urtw_isbmode (uint16_t) |
static uint16_t | urtw_rtl2rate (uint32_t) |
static usb_error_t | urtw_set_rate (struct urtw_softc *) |
static usb_error_t | urtw_update_msr (struct urtw_softc *) |
static usb_error_t | urtw_read8_c (struct urtw_softc *, int, uint8_t *) |
static usb_error_t | urtw_read16_c (struct urtw_softc *, int, uint16_t *) |
static usb_error_t | urtw_read32_c (struct urtw_softc *, int, uint32_t *) |
static usb_error_t | urtw_write8_c (struct urtw_softc *, int, uint8_t) |
static usb_error_t | urtw_write16_c (struct urtw_softc *, int, uint16_t) |
static usb_error_t | urtw_write32_c (struct urtw_softc *, int, uint32_t) |
static usb_error_t | urtw_eprom_cs (struct urtw_softc *, int) |
static usb_error_t | urtw_eprom_ck (struct urtw_softc *) |
static usb_error_t | urtw_eprom_sendbits (struct urtw_softc *, int16_t *, int) |
static usb_error_t | urtw_eprom_read32 (struct urtw_softc *, uint32_t, uint32_t *) |
static usb_error_t | urtw_eprom_readbit (struct urtw_softc *, int16_t *) |
static usb_error_t | urtw_eprom_writebit (struct urtw_softc *, int16_t) |
static usb_error_t | urtw_get_macaddr (struct urtw_softc *) |
static usb_error_t | urtw_get_txpwr (struct urtw_softc *) |
static usb_error_t | urtw_get_rfchip (struct urtw_softc *) |
static usb_error_t | urtw_led_init (struct urtw_softc *) |
static usb_error_t | urtw_8185_rf_pins_enable (struct urtw_softc *) |
static usb_error_t | urtw_8185_tx_antenna (struct urtw_softc *, uint8_t) |
static usb_error_t | urtw_8187_write_phy (struct urtw_softc *, uint8_t, uint32_t) |
static usb_error_t | urtw_8187_write_phy_ofdm_c (struct urtw_softc *, uint8_t, uint32_t) |
static usb_error_t | urtw_8187_write_phy_cck_c (struct urtw_softc *, uint8_t, uint32_t) |
static usb_error_t | urtw_8225_setgain (struct urtw_softc *, int16_t) |
static usb_error_t | urtw_8225_usb_init (struct urtw_softc *) |
static usb_error_t | urtw_8225_write_c (struct urtw_softc *, uint8_t, uint16_t) |
static usb_error_t | urtw_8225_write_s16 (struct urtw_softc *, uint8_t, int, uint16_t *) |
static usb_error_t | urtw_8225_read (struct urtw_softc *, uint8_t, uint32_t *) |
static usb_error_t | urtw_8225_rf_init (struct urtw_softc *) |
static usb_error_t | urtw_8225_rf_set_chan (struct urtw_softc *, int) |
static usb_error_t | urtw_8225_rf_set_sens (struct urtw_softc *, int) |
static usb_error_t | urtw_8225_set_txpwrlvl (struct urtw_softc *, int) |
static usb_error_t | urtw_8225_rf_stop (struct urtw_softc *) |
static usb_error_t | urtw_8225v2_rf_init (struct urtw_softc *) |
static usb_error_t | urtw_8225v2_rf_set_chan (struct urtw_softc *, int) |
static usb_error_t | urtw_8225v2_set_txpwrlvl (struct urtw_softc *, int) |
static usb_error_t | urtw_8225v2_setgain (struct urtw_softc *, int16_t) |
static usb_error_t | urtw_8225_isv2 (struct urtw_softc *, int *) |
static usb_error_t | urtw_8225v2b_rf_init (struct urtw_softc *) |
static usb_error_t | urtw_8225v2b_rf_set_chan (struct urtw_softc *, int) |
static usb_error_t | urtw_read8e (struct urtw_softc *, int, uint8_t *) |
static usb_error_t | urtw_write8e (struct urtw_softc *, int, uint8_t) |
static usb_error_t | urtw_8180_set_anaparam (struct urtw_softc *, uint32_t) |
static usb_error_t | urtw_8185_set_anaparam2 (struct urtw_softc *, uint32_t) |
static usb_error_t | urtw_intr_enable (struct urtw_softc *) |
static usb_error_t | urtw_intr_disable (struct urtw_softc *) |
static usb_error_t | urtw_reset (struct urtw_softc *) |
static usb_error_t | urtw_led_on (struct urtw_softc *, int) |
static usb_error_t | urtw_led_ctl (struct urtw_softc *, int) |
static usb_error_t | urtw_led_blink (struct urtw_softc *) |
static usb_error_t | urtw_led_mode0 (struct urtw_softc *, int) |
static usb_error_t | urtw_led_mode1 (struct urtw_softc *, int) |
static usb_error_t | urtw_led_mode2 (struct urtw_softc *, int) |
static usb_error_t | urtw_led_mode3 (struct urtw_softc *, int) |
static usb_error_t | urtw_rx_setconf (struct urtw_softc *) |
static usb_error_t | urtw_rx_enable (struct urtw_softc *) |
static usb_error_t | urtw_tx_enable (struct urtw_softc *sc) |
static void | urtw_free_tx_data_list (struct urtw_softc *) |
static void | urtw_free_rx_data_list (struct urtw_softc *) |
static void | urtw_free_data_list (struct urtw_softc *, struct urtw_data data[], int, int) |
static usb_error_t | urtw_set_macaddr (struct urtw_softc *, const uint8_t *) |
static usb_error_t | urtw_adapter_start (struct urtw_softc *) |
static usb_error_t | urtw_adapter_start_b (struct urtw_softc *) |
static usb_error_t | urtw_set_mode (struct urtw_softc *, uint32_t) |
static usb_error_t | urtw_8187b_cmd_reset (struct urtw_softc *) |
static usb_error_t | urtw_do_request (struct urtw_softc *, struct usb_device_request *, void *) |
static usb_error_t | urtw_8225v2b_set_txpwrlvl (struct urtw_softc *, int) |
static usb_error_t | urtw_led_off (struct urtw_softc *, int) |
static void | urtw_abort_xfers (struct urtw_softc *) |
static struct urtw_data * | urtw_getbuf (struct urtw_softc *sc) |
static int | urtw_compute_txtime (uint16_t, uint16_t, uint8_t, uint8_t) |
static void | urtw_updateslot (struct ieee80211com *) |
static void | urtw_updateslottask (void *, int) |
static void | urtw_sysctl_node (struct urtw_softc *) |
static int | urtw_match (device_t dev) |
static int | urtw_attach (device_t dev) |
static int | urtw_detach (device_t dev) |
static int | urtw_alloc_data_list (struct urtw_softc *sc, struct urtw_data data[], int ndata, int maxsz, void *dma_buf) |
static struct mbuf * | urtw_rxeof (struct usb_xfer *xfer, struct urtw_data *data, int *rssi_p, int8_t *nf_p) |
static void | urtw_bulk_rx_callback (struct usb_xfer *xfer, usb_error_t error) |
static void | urtw_txstatus_eof (struct usb_xfer *xfer) |
static void | urtw_bulk_tx_status_callback (struct usb_xfer *xfer, usb_error_t error) |
static void | urtw_txeof (struct usb_xfer *xfer, struct urtw_data *data) |
static void | urtw_bulk_tx_callback (struct usb_xfer *xfer, usb_error_t error) |
static struct urtw_data * | _urtw_getbuf (struct urtw_softc *sc) |
static uint16_t | urtw_rate2dbps (uint16_t rate) |
DRIVER_MODULE (urtw, uhub, urtw_driver, urtw_devclass, NULL, 0) | |
MODULE_DEPEND (urtw, wlan, 1, 1, 1) | |
MODULE_DEPEND (urtw, usb, 1, 1, 1) | |
MODULE_VERSION (urtw, 1) | |
USB_PNP_HOST_INFO (urtw_devs) | |
#define DPRINTF | ( | sc, | |
m, | |||
fmt, | |||
... | |||
) |
#define URTW_ARFR 0x1e0 |
#define URTW_DEV_B | ( | v, | |
p | |||
) | { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, URTW_REV_RTL8187B) } |
#define URTW_DEV_L | ( | v, | |
p | |||
) | { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, URTW_REV_RTL8187L) } |
#define URTW_FEMR_FOR_8187B 0x1d4 |
#define urtw_lookup | ( | v, | |
p | |||
) | ((const struct urtw_type *)usb_lookup(urtw_devs, v, p)) |
#define URTW_READCMD_LEN 3 |
#define URTW_RFSW_CTRL 0x272 |
#define URTW_SYSCTL_STAT_ADD32 | ( | c, | |
h, | |||
n, | |||
p, | |||
d | |||
) | SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d) |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 4237 of file if_urtw.c.
References DPRINTF, next, urtw_data::sc, and urtw_softc::sc_tx_inactive.
Referenced by urtw_getbuf().
DRIVER_MODULE | ( | urtw | , |
uhub | , | ||
urtw_driver | , | ||
urtw_devclass | , | ||
NULL | , | ||
0 | |||
) |
MODULE_DEPEND | ( | urtw | , |
usb | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | urtw | , |
wlan | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_VERSION | ( | urtw | , |
1 | |||
) |
SYSCTL_INT | ( | _hw_usb_urtw | , |
OID_AUTO | , | ||
preamble_mode | , | ||
CTLFLAG_RWTUN | , | ||
& | urtw_preamble_mode, | ||
0 | , | ||
"set the preable mode (long or short)" | |||
) |
|
static |
|
static |
Definition at line 3469 of file if_urtw.c.
References data, error, fail, URTW_ANAPARAM, URTW_CONFIG3, URTW_CONFIG3_ANAPARAM_WRITE, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, urtw_read8_m, urtw_set_mode(), urtw_write32_m, urtw_write8_m, and val.
Referenced by urtw_8225_rf_init(), urtw_8225v2_rf_init(), and urtw_reset().
|
static |
Definition at line 2585 of file if_urtw.c.
References error, fail, URTW_RF_PINS_ENABLE, and urtw_write16_m.
Referenced by urtw_8225_rf_init(), and urtw_8225v2_rf_init().
|
static |
Definition at line 3492 of file if_urtw.c.
References data, error, fail, URTW_ANAPARAM2, URTW_CONFIG3, URTW_CONFIG3_ANAPARAM_WRITE, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, urtw_read8_m, urtw_set_mode(), urtw_write32_m, urtw_write8_m, and val.
Referenced by urtw_8225_set_txpwrlvl(), urtw_8225v2_set_txpwrlvl(), and urtw_reset().
|
static |
Definition at line 2595 of file if_urtw.c.
References error, fail, urtw_softc::sc_mtx, URTW_TX_ANTENNA, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_8225_rf_init(), and urtw_8225v2_rf_init().
|
static |
Definition at line 2622 of file if_urtw.c.
References addr, data, error, fail, urtw_softc::sc_mtx, URTW_PHY_MAGIC1, URTW_PHY_MAGIC2, URTW_PHY_MAGIC3, URTW_PHY_MAGIC4, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_8187_write_phy_cck_c(), and urtw_8187_write_phy_ofdm_c().
|
static |
Definition at line 2614 of file if_urtw.c.
References addr, data, and urtw_8187_write_phy().
|
static |
Definition at line 2606 of file if_urtw.c.
References addr, data, and urtw_8187_write_phy().
|
static |
Definition at line 1286 of file if_urtw.c.
References error, fail, urtw_softc::sc_dev, urtw_softc::sc_mtx, URTW_CMD, URTW_CMD_RST, urtw_read8_m, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_adapter_start_b().
|
static |
Definition at line 3158 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_mtx, URTW_8225_ADDR_0_DATA_MAGIC1, URTW_8225_ADDR_0_DATA_MAGIC2, URTW_8225_ADDR_0_MAGIC, URTW_8225_ADDR_8_DATA_MAGIC1, URTW_8225_ADDR_8_MAGIC, URTW_8225_ADDR_9_DATA_MAGIC1, URTW_8225_ADDR_9_MAGIC, urtw_8225_read(), urtw_8225_write, URTW_RF_PINS_ENABLE, URTW_RF_PINS_MAGIC5, URTW_RF_PINS_OUTPUT, URTW_RF_PINS_SELECT, urtw_write16_m, and usb_pause_mtx().
Referenced by urtw_get_rfchip().
|
static |
Definition at line 3001 of file if_urtw.c.
References addr, data, error, fail, URTW_BB_HOST_BANG_CLK, URTW_BB_HOST_BANG_EN, URTW_BB_HOST_BANG_RW, urtw_read16_m, URTW_RF_PINS_ENABLE, URTW_RF_PINS_INPUT, URTW_RF_PINS_MAGIC4, URTW_RF_PINS_OUTPUT, URTW_RF_PINS_OUTPUT_MAGIC1, URTW_RF_PINS_SELECT, urtw_write16_m, and value.
Referenced by urtw_8225_isv2(), and urtw_8225v2_rf_init().
|
static |
Definition at line 2482 of file if_urtw.c.
References data, error, fail, reg, urtw_softc::sc_mtx, urtw_8180_set_anaparam(), urtw_8185_rf_pins_enable(), urtw_8185_tx_antenna(), urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, URTW_8225_ADDR_0_DATA_MAGIC3, URTW_8225_ADDR_0_DATA_MAGIC4, URTW_8225_ADDR_0_DATA_MAGIC5, URTW_8225_ADDR_0_MAGIC, URTW_8225_ADDR_1_MAGIC, URTW_8225_ADDR_2_DATA_MAGIC1, URTW_8225_ADDR_2_DATA_MAGIC2, URTW_8225_ADDR_2_MAGIC, urtw_8225_agc, URTW_8225_ANAPARAM_ON, urtw_8225_rf_part1, urtw_8225_rf_part2, urtw_8225_rf_part3, urtw_8225_rf_set_chan(), urtw_8225_rxgain, urtw_8225_set_txpwrlvl(), urtw_8225_setgain(), urtw_8225_usb_init(), urtw_8225_write, URTW_BRSR, URTW_CONFIG3, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, URTW_HSSI_PARA, urtw_read16_m, URTW_RF_PARA, URTW_RF_TIMING, urtw_set_mode(), URTW_TESTR, urtw_write16_m, urtw_write32_m, urtw_write8_m, usb_pause_mtx(), and val.
Referenced by urtw_get_rfchip().
|
static |
Definition at line 2735 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_mtx, URTW_8225_ADDR_7_MAGIC, urtw_8225_channel, urtw_8225_set_txpwrlvl(), urtw_8225_write, and usb_pause_mtx().
Referenced by urtw_8225_rf_init(), urtw_8225v2_rf_init(), and urtw_get_rfchip().
|
static |
Definition at line 2749 of file if_urtw.c.
References error, fail, urtw_8187_write_phy_cck, URTW_8225_ADDR_C_DATA_MAGIC1, URTW_8225_ADDR_C_DATA_MAGIC2, URTW_8225_ADDR_C_MAGIC, urtw_8225_setgain(), urtw_8225_threshold, and urtw_8225_write.
Referenced by urtw_get_rfchip().
|
static |
Definition at line 2828 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_flags, URTW_8187B_8225_ANAPARAM2_OFF, URTW_8187B_8225_ANAPARAM3_OFF, URTW_8187B_8225_ANAPARAM_OFF, URTW_8225_ANAPARAM2_OFF, URTW_8225_ANAPARAM_OFF, urtw_8225_write, URTW_ANAPARAM, URTW_ANAPARAM2, URTW_ANAPARAM3, URTW_CONFIG3, URTW_CONFIG3_ANAPARAM_WRITE, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, urtw_read8_m, URTW_RTL8187B, urtw_set_mode(), urtw_write32_m, and urtw_write8_m.
Referenced by urtw_get_rfchip().
|
static |
Definition at line 2775 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_mtx, urtw_softc::sc_txpwr_cck, urtw_softc::sc_txpwr_ofdm, urtw_8185_set_anaparam2(), urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, URTW_8225_ANAPARAM2_ON, urtw_8225_tx_gain_cck_ofdm, urtw_8225_txpwr_cck, urtw_8225_txpwr_cck_ch14, urtw_8225_txpwr_ofdm, URTW_TX_GAIN_CCK, URTW_TX_GAIN_OFDM, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_8225_rf_init(), and urtw_8225_rf_set_chan().
|
static |
Definition at line 2638 of file if_urtw.c.
References error, fail, urtw_8187_write_phy_ofdm, and urtw_8225_gain.
Referenced by urtw_8225_rf_init(), and urtw_8225_rf_set_sens().
|
static |
Definition at line 2651 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_mtx, URTW_GP_ENABLE, URTW_GPIO, urtw_read8e(), URTW_RF_PINS_ENABLE, URTW_RF_PINS_OUTPUT, URTW_RF_PINS_SELECT, urtw_write16_m, urtw_write8_m, urtw_write8e(), and usb_pause_mtx().
Referenced by urtw_8225_rf_init(), and urtw_8225v2_rf_init().
|
static |
Definition at line 2678 of file if_urtw.c.
References addr, data, error, fail, urtw_softc::sc_mtx, urtw_8225_write_s16(), URTW_BB_HOST_BANG_EN, urtw_read16_m, URTW_RF_PINS_ENABLE, URTW_RF_PINS_MAGIC1, URTW_RF_PINS_MAGIC2, URTW_RF_PINS_MAGIC3, URTW_RF_PINS_OUTPUT, URTW_RF_PINS_SELECT, urtw_write16_m, and usb_pause_mtx().
|
static |
Definition at line 2711 of file if_urtw.c.
References addr, data, error, index, req, URTW_8187_SETREGS_REQ, urtw_do_request(), USETW, and UT_WRITE_VENDOR_DEVICE.
Referenced by urtw_8225_write_c().
|
static |
Definition at line 2862 of file if_urtw.c.
References data, error, fail, reg, urtw_softc::sc_dev, urtw_softc::sc_mtx, urtw_8180_set_anaparam(), urtw_8185_rf_pins_enable(), urtw_8185_tx_antenna(), urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, URTW_8225_ADDR_0_DATA_MAGIC1, URTW_8225_ADDR_0_DATA_MAGIC2, URTW_8225_ADDR_0_DATA_MAGIC6, URTW_8225_ADDR_0_MAGIC, URTW_8225_ADDR_1_MAGIC, URTW_8225_ADDR_2_DATA_MAGIC1, URTW_8225_ADDR_2_DATA_MAGIC2, URTW_8225_ADDR_2_MAGIC, URTW_8225_ADDR_3_DATA_MAGIC1, URTW_8225_ADDR_3_MAGIC, URTW_8225_ADDR_5_DATA_MAGIC1, URTW_8225_ADDR_5_MAGIC, URTW_8225_ADDR_6_DATA_MAGIC1, URTW_8225_ADDR_6_DATA_MAGIC2, URTW_8225_ADDR_6_MAGIC, urtw_8225_agc, URTW_8225_ANAPARAM_ON, urtw_8225_read(), urtw_8225_rf_set_chan(), urtw_8225_usb_init(), urtw_8225_write, urtw_8225v2_rf_part1, urtw_8225v2_rf_part2, urtw_8225v2_rf_part3, urtw_8225v2_rxgain, urtw_8225v2_set_txpwrlvl(), urtw_8225v2_setgain(), URTW_BRSR, URTW_CONFIG3, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, URTW_HSSI_PARA, urtw_read16_m, URTW_RF_PARA, URTW_RF_TIMING, urtw_set_mode(), URTW_TESTR, urtw_write16_m, urtw_write32_m, urtw_write8_m, usb_pause_mtx(), and val.
Referenced by urtw_get_rfchip().
|
static |
Definition at line 2986 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_mtx, URTW_8225_ADDR_7_MAGIC, urtw_8225_channel, urtw_8225_write, urtw_8225v2_set_txpwrlvl(), and usb_pause_mtx().
Referenced by urtw_get_rfchip().
|
static |
Definition at line 3091 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_mtx, urtw_softc::sc_txpwr_cck, urtw_softc::sc_txpwr_cck_base, urtw_softc::sc_txpwr_ofdm, urtw_softc::sc_txpwr_ofdm_base, urtw_8185_set_anaparam2(), urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, URTW_8225_ANAPARAM2_ON, urtw_8225v2_tx_gain_cck_ofdm, urtw_8225v2_txpwr_cck, urtw_8225v2_txpwr_cck_ch14, URTW_TX_GAIN_CCK, URTW_TX_GAIN_OFDM, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_8225v2_rf_init(), and urtw_8225v2_rf_set_chan().
|
static |
Definition at line 3138 of file if_urtw.c.
References error, fail, urtw_softc::sc_mtx, urtw_8187_write_phy_ofdm, urtw_8225v2_gain_bg, and usb_pause_mtx().
Referenced by urtw_8225v2_rf_init().
|
static |
Definition at line 3193 of file if_urtw.c.
References addr, data, error, fail, reg, urtw_softc::sc_acmctl, urtw_softc::sc_ic, urtw_softc::sc_mtx, urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, URTW_8187B_AC_BE, URTW_8187B_AC_BK, URTW_8187B_AC_VI, URTW_8187B_AC_VO, URTW_8225_ADDR_0_MAGIC, URTW_8225_ADDR_1_MAGIC, URTW_8225_ADDR_2_MAGIC, URTW_8225_ADDR_3_MAGIC, URTW_8225_ADDR_5_MAGIC, urtw_8225_write, urtw_8225v2b_rf_part0, urtw_8225v2b_rf_part1, urtw_8225v2b_rf_part2, urtw_8225v2b_rxgain, urtw_8225z2_agc, URTW_ACM_CONTROL, URTW_ARFR, URTW_ATIM_WND, URTW_BEACON_INTERVAL, URTW_BRSR_8187B, URTW_CONFIG1, URTW_CONFIG3, URTW_CONFIG3_ANAPARAM_WRITE, URTW_CW_CONF, URTW_CW_CONF_PERPACKET_RETRY, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, URTW_FEMR_FOR_8187B, URTW_INT_MIG, URTW_MSR, URTW_MSR_LINK_ENEDCA, URTW_RATE_FALLBACK, URTW_RATE_FALLBACK_ENABLE, urtw_read8_m, URTW_RF_PINS_ENABLE, URTW_RF_PINS_OUTPUT, URTW_RF_PINS_SELECT, URTW_RF_TIMING, URTW_RFSW_CTRL, urtw_set_macaddr(), urtw_set_mode(), URTW_TID_AC_MAP, URTW_TX_AGC_CTL, URTW_TX_AGC_CTL_PERPACKET_GAIN, URTW_TX_ANTENNA, URTW_TX_GAIN_CCK, URTW_TX_GAIN_OFDM, URTW_WPA_CONFIG, urtw_write16_m, urtw_write32_m, urtw_write8_m, usb_pause_mtx(), and val.
Referenced by urtw_get_rfchip().
|
static |
Definition at line 3356 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_mtx, URTW_8225_ADDR_7_MAGIC, urtw_8225_channel, urtw_8225_write, urtw_8225v2b_set_txpwrlvl(), and usb_pause_mtx().
Referenced by urtw_get_rfchip().
|
static |
Definition at line 3371 of file if_urtw.c.
References chan, error, fail, urtw_softc::sc_flags, urtw_softc::sc_mtx, urtw_softc::sc_txpwr_cck, urtw_softc::sc_txpwr_cck_base, urtw_softc::sc_txpwr_ofdm, urtw_softc::sc_txpwr_ofdm_base, urtw_8187_write_phy_cck, urtw_8187_write_phy_ofdm, urtw_8225v2_tx_gain_cck_ofdm, urtw_8225v2b_txpwr_cck, urtw_8225v2b_txpwr_cck_ch14, URTW_RTL8187B_REV_B, URTW_TX_GAIN_CCK, URTW_TX_GAIN_OFDM, urtw_write8_m, and usb_pause_mtx().
Referenced by urtw_8225v2b_rf_set_chan().
|
static |
Definition at line 1375 of file if_urtw.c.
References urtw_softc::sc_flags, urtw_softc::sc_xfer, URTW_8187B_N_XFERS, URTW_8187L_N_XFERS, URTW_ASSERT_LOCKED, URTW_RTL8187B, and usbd_transfer_stop().
Referenced by urtw_stop().
|
static |
Definition at line 1204 of file if_urtw.c.
References error, fail, urtw_softc::sc_ic, urtw_softc::sc_rf_init, urtw_softc::sc_rf_set_sens, urtw_softc::sc_sens, URTW_ADDR_MAGIC1, URTW_ADDR_MAGIC2, URTW_ADDR_MAGIC3, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, URTW_GPIO, URTW_INT_TIMEOUT, urtw_intr_enable(), urtw_led_ctl(), URTW_LED_CTL_POWER_ON, URTW_PSR, URTW_RATE_FALLBACK, URTW_RATE_FALLBACK_ENABLE, urtw_reset(), urtw_set_macaddr(), urtw_set_mode(), urtw_set_rate(), URTW_TALLY_SEL, urtw_update_msr(), URTW_WPA_CONFIG, urtw_write16_m, urtw_write32_m, and urtw_write8_m.
Referenced by urtw_init().
|
static |
Definition at line 1105 of file if_urtw.c.
References error, fail, urtw_softc::sc_rf_init, URTW_8187B_8225_ANAPARAM2_ON, URTW_8187B_8225_ANAPARAM3_ON, URTW_8187B_8225_ANAPARAM_ON, urtw_8187b_cmd_reset(), URTW_ANAPARAM, URTW_ANAPARAM2, URTW_ANAPARAM3, URTW_CMD, URTW_CMD_RX_ENABLE, URTW_CMD_TX_ENABLE, URTW_CONFIG3, URTW_CONFIG3_ANAPARAM_WRITE, URTW_CONFIG3_GNT_SELECT, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, URTW_HSSI_PARA, urtw_intr_enable(), urtw_read8_m, urtw_set_mode(), urtw_write16_m, urtw_write32_m, urtw_write8_m, and urtw_write8e().
Referenced by urtw_init().
|
static |
Definition at line 1474 of file if_urtw.c.
References urtw_data::buf, data, error, fail, urtw_data::m, urtw_data::ni, urtw_data::sc, urtw_softc::sc_dev, and urtw_free_data_list().
Referenced by urtw_alloc_rx_data_list(), and urtw_alloc_tx_data_list().
|
static |
Definition at line 1506 of file if_urtw.c.
References error, next, urtw_data::sc, urtw_softc::sc_rx, urtw_softc::sc_rx_active, urtw_softc::sc_rx_inactive, urtw_alloc_data_list(), and URTW_RX_DATA_LIST_COUNT.
Referenced by urtw_init().
|
static |
Definition at line 1526 of file if_urtw.c.
References error, next, urtw_data::sc, urtw_softc::sc_tx, urtw_softc::sc_tx_active, urtw_softc::sc_tx_dma_buf, urtw_softc::sc_tx_inactive, urtw_softc::sc_tx_pending, urtw_alloc_data_list(), URTW_TX_DATA_LIST_COUNT, and URTW_TX_MAXSIZE.
Referenced by urtw_init().
|
static |
Definition at line 790 of file if_urtw.c.
References data, dev, usb_attach_arg::device, device_set_usb_desc(), error, fail, urtw_softc::sc_currate, urtw_softc::sc_debug, urtw_softc::sc_dev, urtw_softc::sc_epromtype, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_led_ch, urtw_softc::sc_led_task, urtw_softc::sc_mtx, urtw_softc::sc_preamble_mode, urtw_softc::sc_rts_retry, urtw_softc::sc_rxtap, urtw_softc::sc_snd, urtw_softc::sc_tx_dma_buf, urtw_softc::sc_tx_retry, urtw_softc::sc_txtap, urtw_softc::sc_udev, urtw_softc::sc_updateslot_task, urtw_softc::sc_watchdog_ch, urtw_softc::sc_xfer, URTW_8187B_BULK_TX_BE, URTW_8187B_N_XFERS, urtw_8187b_usbconfig, URTW_8187L_BULK_TX_LOW, URTW_8187L_N_XFERS, urtw_8187l_usbconfig, URTW_DEFAULT_RTS_RETRY, URTW_DEFAULT_TX_RETRY, URTW_EEPROM_93C46, URTW_EEPROM_93C56, urtw_get_macaddr(), urtw_get_rfchip(), urtw_get_txpwr(), urtw_getradiocaps(), URTW_IFACE_INDEX, urtw_led_init(), urtw_ledtask(), URTW_LOCK, urtw_parent(), urtw_preamble_mode, urtw_raw_xmit(), urtw_read32_m, URTW_REV_RTL8187B, URTW_RIDX_CCK11, URTW_RTL8187B, URTW_RX, URTW_RX_9356SEL, URTW_RX_RADIOTAP_PRESENT, urtw_scan_end(), urtw_scan_start(), urtw_set_channel(), urtw_sysctl_node(), urtw_transmit(), URTW_TX_RADIOTAP_PRESENT, URTW_UNLOCK, urtw_update_mcast(), urtw_update_promisc(), urtw_updateslot(), urtw_updateslottask(), urtw_vap_create(), urtw_vap_delete(), usb_callout_init_mtx, USB_GET_DRIVER_INFO, usbd_errstr(), usbd_transfer_setup(), usbd_transfer_unsetup(), usbd_xfer_get_frame_buffer(), urtw_rx_radiotap_header::wr_ihdr, and urtw_tx_radiotap_header::wt_ihdr.
|
static |
Definition at line 4035 of file if_urtw.c.
References data, error, urtw_data::m, next, urtw_data::ni, urtw_data::sc, urtw_softc::sc_ic, urtw_softc::sc_rx_active, urtw_softc::sc_rx_inactive, URTW_ASSERT_LOCKED, URTW_LOCK, urtw_rxeof(), URTW_UNLOCK, USB_ERR_CANCELLED, USB_GET_STATE, USB_ST_SETUP, USB_ST_TRANSFERRED, usbd_transfer_submit(), usbd_xfer_max_len(), usbd_xfer_set_frame_data(), usbd_xfer_set_stall(), and usbd_xfer_softc().
|
static |
Definition at line 4186 of file if_urtw.c.
References data, DPRINTF, error, next, urtw_data::sc, urtw_softc::sc_tx_active, urtw_softc::sc_tx_inactive, urtw_softc::sc_tx_pending, URTW_ASSERT_LOCKED, urtw_start(), urtw_txeof(), USB_ERR_CANCELLED, USB_GET_STATE, USB_ST_SETUP, USB_ST_TRANSFERRED, usbd_transfer_submit(), usbd_xfer_set_frame_data(), usbd_xfer_set_stall(), and usbd_xfer_softc().
|
static |
Definition at line 4141 of file if_urtw.c.
References error, urtw_softc::sc_ic, urtw_softc::sc_txstatus, URTW_ASSERT_LOCKED, urtw_txstatus_eof(), USB_ERR_CANCELLED, USB_GET_STATE, USB_ST_SETUP, USB_ST_TRANSFERRED, usbd_transfer_submit(), usbd_xfer_get_frame_buffer(), usbd_xfer_set_frame_len(), usbd_xfer_set_stall(), and usbd_xfer_softc().
|
static |
Definition at line 4294 of file if_urtw.c.
References urtw_isbmode(), and urtw_rate2dbps().
Referenced by urtw_tx_start().
|
static |
Definition at line 928 of file if_urtw.c.
References dev, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_led_ch, urtw_softc::sc_led_task, urtw_softc::sc_mtx, urtw_softc::sc_rx_active, urtw_softc::sc_rx_inactive, urtw_softc::sc_snd, urtw_softc::sc_tx_active, urtw_softc::sc_tx_inactive, urtw_softc::sc_tx_pending, urtw_softc::sc_updateslot_task, urtw_softc::sc_watchdog_ch, urtw_softc::sc_xfer, URTW_8187B_N_XFERS, URTW_8187L_N_XFERS, URTW_DETACHED, urtw_free_rx_data_list(), urtw_free_tx_data_list(), URTW_LOCK, URTW_RTL8187B, urtw_stop(), URTW_UNLOCK, usb_callout_drain, usbd_transfer_drain(), and usbd_transfer_unsetup().
|
static |
Definition at line 1312 of file if_urtw.c.
References data, DPRINTF, req, urtw_softc::sc_mtx, urtw_softc::sc_udev, URTW_ASSERT_LOCKED, usb_pause_mtx(), usbd_do_request_flags(), and usbd_errstr().
Referenced by urtw_8225_write_s16(), urtw_read16_c(), urtw_read32_c(), urtw_read8_c(), urtw_read8e(), urtw_write16_c(), urtw_write32_c(), urtw_write8_c(), and urtw_write8e().
|
static |
Definition at line 2231 of file if_urtw.c.
References data, error, fail, URTW_EPROM_CK, URTW_EPROM_CMD, URTW_EPROM_DELAY, urtw_read8_m, and urtw_write8_m.
Referenced by urtw_eprom_read32(), and urtw_eprom_sendbits().
|
static |
Definition at line 2215 of file if_urtw.c.
References data, error, fail, URTW_EPROM_CMD, URTW_EPROM_CS, URTW_EPROM_DELAY, URTW_EPROM_ENABLE, urtw_read8_m, and urtw_write8_m.
Referenced by urtw_eprom_read32().
|
static |
Definition at line 2139 of file if_urtw.c.
References addr, data, error, fail, urtw_softc::sc_epromtype, URTW_EEPROM_93C56, urtw_eprom_ck(), URTW_EPROM_CMD, URTW_EPROM_CMD_NORMAL_MODE, URTW_EPROM_CMD_PROGRAM_MODE, urtw_eprom_cs(), URTW_EPROM_DELAY, URTW_EPROM_DISABLE, URTW_EPROM_ENABLE, urtw_eprom_readbit(), urtw_eprom_sendbits(), urtw_eprom_writebit(), URTW_READCMD_LEN, and urtw_write8_m.
Referenced by urtw_get_macaddr(), urtw_get_rfchip(), urtw_get_txpwr(), and urtw_led_init().
|
static |
Definition at line 2249 of file if_urtw.c.
References data, error, fail, URTW_EPROM_CMD, URTW_EPROM_DELAY, URTW_EPROM_READBIT, and urtw_read8_m.
Referenced by urtw_eprom_read32().
|
static |
Definition at line 2279 of file if_urtw.c.
References error, fail, urtw_eprom_ck(), and urtw_eprom_writebit().
Referenced by urtw_eprom_read32().
|
static |
Definition at line 2263 of file if_urtw.c.
References data, error, fail, URTW_EPROM_CMD, URTW_EPROM_DELAY, URTW_EPROM_WRITEBIT, urtw_read8_m, and urtw_write8_m.
Referenced by urtw_eprom_read32(), and urtw_eprom_sendbits().
|
static |
Definition at line 992 of file if_urtw.c.
References urtw_data::buf, data, urtw_data::m, and urtw_data::ni.
Referenced by urtw_alloc_data_list(), urtw_free_rx_data_list(), and urtw_free_tx_data_list().
|
static |
Definition at line 986 of file if_urtw.c.
References urtw_softc::sc_rx, urtw_free_data_list(), and URTW_RX_DATA_LIST_COUNT.
Referenced by urtw_detach().
|
static |
Definition at line 980 of file if_urtw.c.
References urtw_softc::sc_tx, urtw_free_data_list(), and URTW_TX_DATA_LIST_COUNT.
Referenced by urtw_detach().
|
static |
Definition at line 2113 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_ic, URTW_EPROM_MACADDR, and urtw_eprom_read32().
Referenced by urtw_attach().
|
static |
Definition at line 2362 of file if_urtw.c.
References data, DPRINTF, error, fail, urtw_softc::sc_dev, urtw_softc::sc_flags, urtw_softc::sc_max_sens, urtw_softc::sc_rf_init, urtw_softc::sc_rf_set_chan, urtw_softc::sc_rf_set_sens, urtw_softc::sc_rf_stop, urtw_softc::sc_sens, urtw_8225_isv2(), URTW_8225_RF_DEF_SENS, urtw_8225_rf_init(), URTW_8225_RF_MAX_SENS, urtw_8225_rf_set_chan(), urtw_8225_rf_set_sens(), urtw_8225_rf_stop(), urtw_8225v2_rf_init(), urtw_8225v2_rf_set_chan(), urtw_8225v2b_rf_init(), urtw_8225v2b_rf_set_chan(), urtw_eprom_read32(), URTW_EPROM_RFCHIPID, URTW_EPROM_RFCHIPID_RTL8225U, URTW_EPROM_RFCHIPID_RTL8225Z2, urtw_read32_m, urtw_read8_m, URTW_RTL8187B, URTW_RTL8187B_REV_B, URTW_RTL8187B_REV_D, URTW_RTL8187B_REV_E, URTW_TX_CONF, URTW_TX_HWMASK, URTW_TX_R8187vD, URTW_TX_R8187vD_B, and USB_ERR_INVAL.
Referenced by urtw_attach().
|
static |
Definition at line 2297 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_flags, urtw_softc::sc_txpwr_cck, urtw_softc::sc_txpwr_cck_base, urtw_softc::sc_txpwr_ofdm, urtw_softc::sc_txpwr_ofdm_base, urtw_eprom_read32(), URTW_EPROM_TXPW0, URTW_EPROM_TXPW1, URTW_EPROM_TXPW2, URTW_EPROM_TXPW_BASE, and URTW_RTL8187B.
Referenced by urtw_attach().
|
static |
Definition at line 4253 of file if_urtw.c.
References _urtw_getbuf(), DPRINTF, urtw_data::sc, and URTW_ASSERT_LOCKED.
Referenced by urtw_raw_xmit(), and urtw_start().
|
static |
Definition at line 1594 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 1059 of file if_urtw.c.
References error, fail, urtw_softc::sc_flags, urtw_softc::sc_txtimer, urtw_softc::sc_watchdog_ch, urtw_softc::sc_xfer, URTW_8187B_BULK_TX_STATUS, urtw_adapter_start(), urtw_adapter_start_b(), urtw_alloc_rx_data_list(), urtw_alloc_tx_data_list(), URTW_ASSERT_LOCKED, URTW_INIT_ONCE, URTW_RTL8187B, URTW_RUNNING, urtw_rx_enable(), urtw_stop(), urtw_tx_enable(), urtw_watchdog(), and usbd_transfer_start().
Referenced by urtw_parent().
|
static |
Definition at line 3525 of file if_urtw.c.
References error, fail, URTW_INTR_MASK, and urtw_write16_m.
Referenced by urtw_reset(), and urtw_stop().
|
static |
Definition at line 3515 of file if_urtw.c.
References error, fail, URTW_INTR_MASK, and urtw_write16_m.
Referenced by urtw_adapter_start(), and urtw_adapter_start_b().
|
static |
Definition at line 4266 of file if_urtw.c.
Referenced by urtw_compute_txtime().
|
static |
Definition at line 3775 of file if_urtw.c.
References DPRINTF, error, urtw_softc::sc_gpio_blinkstate, urtw_softc::sc_gpio_blinktime, urtw_softc::sc_gpio_ledinprogress, urtw_softc::sc_gpio_ledon, urtw_softc::sc_gpio_ledstate, urtw_softc::sc_led_ch, URTW_LED_BLINK_CM3, URTW_LED_BLINK_NORMAL, URTW_LED_BLINK_SLOWLY, urtw_led_ch(), URTW_LED_GPIO, urtw_led_off(), URTW_LED_OFF, urtw_led_on(), URTW_LED_ON, usb_callout_reset, and USB_ERR_INVAL.
Referenced by urtw_ledtask().
|
static |
Definition at line 3749 of file if_urtw.c.
References urtw_softc::sc_ic, and urtw_softc::sc_led_task.
Referenced by urtw_led_blink(), and urtw_led_mode0().
|
static |
Definition at line 3590 of file if_urtw.c.
References DPRINTF, error, urtw_softc::sc_strategy, urtw_led_mode0(), urtw_led_mode1(), urtw_led_mode2(), urtw_led_mode3(), URTW_SW_LED_MODE0, URTW_SW_LED_MODE1, URTW_SW_LED_MODE2, URTW_SW_LED_MODE3, and USB_ERR_INVAL.
Referenced by urtw_adapter_start(), urtw_newstate(), and urtw_tx_start().
|
static |
Definition at line 2448 of file if_urtw.c.
References error, fail, urtw_softc::sc_gpio_ledpin, urtw_softc::sc_psr, urtw_softc::sc_strategy, URTW_EPROM_CID_ALPHA0, URTW_EPROM_CID_HW_LED, URTW_EPROM_CID_MASK, URTW_EPROM_CID_RSVD0, URTW_EPROM_CID_RSVD1, URTW_EPROM_CID_SERCOMM_PS, urtw_eprom_read32(), URTW_EPROM_SWREV, URTW_HW_LED, URTW_LED_PIN_GPIO0, URTW_PSR, urtw_read8_m, URTW_SW_LED_MODE0, URTW_SW_LED_MODE1, and URTW_SW_LED_MODE3.
Referenced by urtw_attach().
|
static |
Definition at line 3618 of file if_urtw.c.
References DPRINTF, urtw_softc::sc_gpio_blinkstate, urtw_softc::sc_gpio_blinktime, urtw_softc::sc_gpio_ledinprogress, urtw_softc::sc_gpio_ledon, urtw_softc::sc_gpio_ledstate, urtw_softc::sc_led_ch, urtw_softc::sc_mtx, URTW_LED_BLINK_NORMAL, urtw_led_ch(), URTW_LED_CTL_LINK, URTW_LED_CTL_POWER_ON, URTW_LED_CTL_TX, URTW_LED_GPIO, urtw_led_off(), URTW_LED_OFF, urtw_led_on(), URTW_LED_ON, URTW_LED_POWER_ON_BLINK, usb_callout_reset, USB_ERR_INVAL, and usb_pause_mtx().
Referenced by urtw_led_ctl().
|
static |
Definition at line 3669 of file if_urtw.c.
References USB_ERR_INVAL.
Referenced by urtw_led_ctl().
|
static |
Definition at line 3675 of file if_urtw.c.
References USB_ERR_INVAL.
Referenced by urtw_led_ctl().
|
static |
Definition at line 3681 of file if_urtw.c.
References USB_ERR_INVAL.
Referenced by urtw_led_ctl().
|
static |
Definition at line 3717 of file if_urtw.c.
References DPRINTF, error, fail, urtw_softc::sc_gpio_ledon, urtw_softc::sc_gpio_ledpin, type, URTW_GP_ENABLE, URTW_GP_ENABLE_DATA_MAGIC1, URTW_GPIO, URTW_GPIO_DATA_MAGIC1, URTW_LED_GPIO, URTW_LED_PIN_GPIO0, urtw_write8_m, and USB_ERR_INVAL.
Referenced by urtw_led_blink(), and urtw_led_mode0().
|
static |
Definition at line 3687 of file if_urtw.c.
References DPRINTF, error, fail, urtw_softc::sc_gpio_ledon, urtw_softc::sc_gpio_ledpin, type, URTW_GP_ENABLE, URTW_GPIO, URTW_LED_GPIO, URTW_LED_PIN_GPIO0, urtw_write8_m, and USB_ERR_INVAL.
Referenced by urtw_led_blink(), and urtw_led_mode0().
|
static |
Definition at line 3758 of file if_urtw.c.
References DPRINTF, urtw_softc::sc_strategy, urtw_led_blink(), URTW_LOCK, URTW_SW_LED_MODE0, and URTW_UNLOCK.
Referenced by urtw_attach().
|
static |
Definition at line 775 of file if_urtw.c.
References usbd_lookup_info::bConfigIndex, usbd_lookup_info::bIfaceIndex, dev, usb_attach_arg::info, URTW_CONFIG_INDEX, urtw_devs, URTW_IFACE_INDEX, usb_attach_arg::usb_mode, USB_MODE_HOST, and usbd_lookup_id_by_uaa().
|
static |
Definition at line 1857 of file if_urtw.c.
References DPRINTF, error, fail, urtw_vap::newstate, urtw_softc::sc_dev, urtw_softc::sc_led_ch, urtw_softc::sc_state, urtw_softc::sc_watchdog_ch, URTW_ATIM_TR_ITV, URTW_ATIM_WND, URTW_BEACON_INTERVAL, URTW_BEACON_INTERVAL_TIME, URTW_BSSID, urtw_led_ctl(), URTW_LED_CTL_LINK, URTW_LOCK, URTW_UNLOCK, urtw_update_msr(), URTW_VAP, urtw_write16_m, urtw_write32_m, usb_callout_stop, and urtw_vap::vap.
Referenced by urtw_vap_create().
|
static |
Definition at line 1390 of file if_urtw.c.
References urtw_softc::sc_flags, URTW_DETACHED, urtw_init(), URTW_LOCK, URTW_RUNNING, urtw_set_multi(), urtw_stop(), and URTW_UNLOCK.
Referenced by urtw_attach().
|
static |
Definition at line 4274 of file if_urtw.c.
Referenced by urtw_compute_txtime().
|
static |
Definition at line 1548 of file if_urtw.c.
References urtw_data::m, next, urtw_data::ni, urtw_data::sc, urtw_softc::sc_flags, urtw_softc::sc_tx_inactive, urtw_softc::sc_txtimer, urtw_getbuf(), URTW_LOCK, URTW_PRIORITY_LOW, URTW_RUNNING, urtw_tx_start(), and URTW_UNLOCK.
Referenced by urtw_attach().
|
static |
Definition at line 2029 of file if_urtw.c.
References data, error, req, URTW_8187_GETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_READ_VENDOR_DEVICE, and val.
|
static |
Definition at line 2047 of file if_urtw.c.
References data, error, req, URTW_8187_GETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_READ_VENDOR_DEVICE, and val.
|
static |
Definition at line 2011 of file if_urtw.c.
References data, error, req, URTW_8187_GETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_READ_VENDOR_DEVICE, and val.
|
static |
Definition at line 3439 of file if_urtw.c.
References data, error, req, URTW_8187_GETREGS_REQ, urtw_do_request(), USETW, UT_READ_VENDOR_DEVICE, and val.
Referenced by urtw_8225_usb_init().
|
static |
Definition at line 3535 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_dev, urtw_softc::sc_mtx, urtw_8180_set_anaparam(), urtw_8185_set_anaparam2(), URTW_8225_ANAPARAM2_ON, URTW_8225_ANAPARAM_ON, URTW_CMD, URTW_CMD_RST, URTW_EPROM_CMD_LOAD, urtw_intr_disable(), urtw_read8_m, urtw_set_mode(), urtw_write8_m, urtw_write8e(), and usb_pause_mtx().
Referenced by urtw_adapter_start().
|
static |
Definition at line 1959 of file if_urtw.c.
References urtw_pair::reg, urtw_ratetable, and val.
Referenced by urtw_tx_start().
|
static |
Definition at line 3823 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_flags, urtw_softc::sc_xfer, URTW_8187B_BULK_RX, URTW_8187L_BULK_RX, URTW_CMD, URTW_CMD_RX_ENABLE, urtw_read8_m, URTW_RTL8187B, urtw_rx_setconf(), urtw_write8_m, and usbd_transfer_start().
Referenced by urtw_init().
|
static |
Definition at line 3897 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_crcmon, urtw_softc::sc_flags, urtw_softc::sc_ic, URTW_MAX_RX_DMA_2048, URTW_RCR_ONLYERLPKT, urtw_read32_m, URTW_RTL8187B, URTW_RX, URTW_RX_AUTORESETPHY, URTW_RX_CHECK_BSSID, URTW_RX_FIFO_THRESHOLD_NONE, URTW_RX_FILTER_ALLMAC, URTW_RX_FILTER_BCAST, URTW_RX_FILTER_CRCERR, URTW_RX_FILTER_CTL, URTW_RX_FILTER_DATA, URTW_RX_FILTER_ICVERR, URTW_RX_FILTER_MCAST, URTW_RX_FILTER_MNG, URTW_RX_FILTER_NICMAC, URTW_RX_FILTER_PWR, and urtw_write32_m.
Referenced by urtw_rx_enable(), and urtw_update_promisc().
|
static |
Definition at line 3945 of file if_urtw.c.
References data, fail, urtw_8187b_rxhdr::flag, urtw_8187l_rxhdr::flag, urtw_8187b_rxhdr::mactime, urtw_8187l_rxhdr::mactime, urtw_8187b_rxhdr::noise, urtw_8187l_rxhdr::noise, urtw_8187b_rxhdr::rssi, urtw_8187l_rxhdr::rssi, urtw_softc::sc_currate, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_rxtap, URTW_RTL8187B, URTW_RX_8187L_RSSI_MASK, URTW_RX_FLAG_RXRATE_SHIFT, URTW_RX_RSSI_MASK, usbd_xfer_status(), urtw_rx_radiotap_header::wr_dbm_antsignal, urtw_rx_radiotap_header::wr_flags, and urtw_rx_radiotap_header::wr_tsf.
Referenced by urtw_bulk_rx_callback().
|
static |
Definition at line 1587 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 1580 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 1606 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_curchan, urtw_softc::sc_dev, urtw_softc::sc_flags, urtw_softc::sc_mtx, urtw_softc::sc_rf_set_chan, URTW_ATIM_TR_ITV, URTW_ATIM_WND, URTW_BEACON_INTERVAL, URTW_BEACON_INTERVAL_TIME, URTW_LOCK, urtw_read32_m, URTW_RUNNING, URTW_TX_CONF, URTW_TX_LOOPBACK_MAC, URTW_UNLOCK, urtw_write16_m, urtw_write32_m, and usb_pause_mtx().
Referenced by urtw_attach().
|
static |
Definition at line 1192 of file if_urtw.c.
References error, fail, URTW_MAC0, URTW_MAC4, urtw_write16_m, and urtw_write32_m.
Referenced by urtw_8225v2b_rf_init(), and urtw_adapter_start().
|
static |
Definition at line 1272 of file if_urtw.c.
References data, error, fail, URTW_EPROM_CK, URTW_EPROM_CMD, URTW_EPROM_CMD_SHIFT, URTW_EPROM_CS, urtw_read8_m, and urtw_write8_m.
Referenced by urtw_8180_set_anaparam(), urtw_8185_set_anaparam2(), urtw_8225_rf_init(), urtw_8225_rf_stop(), urtw_8225v2_rf_init(), urtw_8225v2b_rf_init(), urtw_adapter_start(), urtw_adapter_start_b(), urtw_reset(), and urtw_stop().
|
static |
Definition at line 1927 of file if_urtw.c.
Referenced by urtw_parent().
|
static |
Definition at line 1933 of file if_urtw.c.
References data, error, fail, URTW_BRSR, urtw_read16_m, URTW_RESP_MAX_RATE_SHIFT, URTW_RESP_MIN_RATE_SHIFT, URTW_RESP_RATE, URTW_RIDX_OFDM24, URTW_RIDX_OFDM6, urtw_write16_m, and urtw_write8_m.
Referenced by urtw_adapter_start().
|
static |
Definition at line 1439 of file if_urtw.c.
References next, urtw_softc::sc_flags, urtw_softc::sc_snd, urtw_softc::sc_tx_inactive, urtw_softc::sc_txtimer, urtw_softc::sc_watchdog_ch, URTW_ASSERT_LOCKED, urtw_getbuf(), URTW_PRIORITY_NORMAL, URTW_RUNNING, urtw_tx_start(), and urtw_watchdog().
Referenced by urtw_bulk_tx_callback(), and urtw_transmit().
|
static |
Definition at line 1335 of file if_urtw.c.
References error, fail, urtw_softc::sc_dev, urtw_softc::sc_flags, urtw_softc::sc_led_ch, urtw_softc::sc_rf_stop, urtw_softc::sc_watchdog_ch, urtw_abort_xfers(), URTW_ASSERT_LOCKED, URTW_CMD, URTW_CMD_RX_ENABLE, URTW_CMD_TX_ENABLE, URTW_CONFIG4, URTW_CONFIG4_VCOOFF, URTW_EPROM_CMD_CONFIG, URTW_EPROM_CMD_NORMAL, urtw_intr_disable(), urtw_read8_m, urtw_set_mode(), urtw_write8_m, usb_callout_stop, and usbd_errstr().
Referenced by urtw_detach(), urtw_init(), and urtw_parent().
|
static |
Definition at line 4371 of file if_urtw.c.
References child, urtw_softc::sc_dev, urtw_softc::sc_stats, urtw_stats::txrates, and URTW_SYSCTL_STAT_ADD32.
Referenced by urtw_attach().
|
static |
Definition at line 1417 of file if_urtw.c.
References error, urtw_softc::sc_flags, urtw_softc::sc_snd, URTW_LOCK, URTW_RUNNING, urtw_start(), and URTW_UNLOCK.
Referenced by urtw_attach().
|
static |
Definition at line 3844 of file if_urtw.c.
References data, error, fail, urtw_softc::sc_flags, urtw_softc::sc_rts_retry, urtw_softc::sc_tx_retry, URTW_CMD, URTW_CMD_TX_ENABLE, URTW_CW_CONF, URTW_CW_CONF_PERPACKET_CW, URTW_CW_CONF_PERPACKET_RETRY, URTW_MSR, URTW_MSR_LINK_ENEDCA, urtw_read32_m, urtw_read8_m, URTW_RTL8187B, URTW_TX_AGC_CTL, URTW_TX_CONF, URTW_TX_CWMIN, URTW_TX_DISCW, URTW_TX_DISREQQSIZE, URTW_TX_DPRETRY_MASK, URTW_TX_DPRETRY_SHIFT, URTW_TX_HW_SEQNUM, URTW_TX_LOOPBACK_NONE, URTW_TX_MXDMA_2048, URTW_TX_MXDMA_MASK, URTW_TX_NOCRC, URTW_TX_NOICV, URTW_TX_RTSRETRY_MASK, URTW_TX_RTSRETRY_SHIFT, urtw_write32_m, and urtw_write8_m.
Referenced by urtw_init().
|
static |
Definition at line 1673 of file if_urtw.c.
References data, error, usb_xfer::flags, k, next, urtw_8187b_txhdr::rtsdur, urtw_8187l_txhdr::rtsdur, urtw_softc::sc_currate, urtw_softc::sc_dev, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_preamble_mode, urtw_softc::sc_stats, urtw_softc::sc_tx_pending, urtw_softc::sc_txtap, urtw_softc::sc_xfer, tx, urtw_8187b_txhdr::txdur, urtw_stats::txrates, type, URTW_8187B_BULK_TX_BE, URTW_8187B_BULK_TX_BK, URTW_8187B_BULK_TX_EP12, URTW_8187B_BULK_TX_VI, URTW_8187B_BULK_TX_VO, URTW_8187B_TXPIPE_MAX, URTW_8187L_BULK_TX_LOW, URTW_8187L_BULK_TX_NORMAL, URTW_ACKCTS_LEN, URTW_ASIFS_TIME, URTW_ASSERT_LOCKED, urtw_compute_txtime(), urtw_led_ctl(), URTW_LED_CTL_TX, URTW_PREAMBLE_MODE_SHORT, URTW_PRIORITY_LOW, URTW_RIDX_CCK5, urtw_rtl2rate(), URTW_RTL8187B, URTW_TX_FLAG_CTS, URTW_TX_FLAG_MOREFRAG, URTW_TX_FLAG_NO_ENC, URTW_TX_FLAG_RTS, URTW_TX_FLAG_RTSRATE_SHIFT, URTW_TX_FLAG_SPLCP, URTW_TX_FLAG_TXRATE_SHIFT, URTW_TX_MAXRETRY, URTW_TX_MAXSIZE, usbd_transfer_start(), USETW, and urtw_tx_radiotap_header::wt_flags.
Referenced by urtw_raw_xmit(), and urtw_start().
Definition at line 4170 of file if_urtw.c.
References data, urtw_softc::sc_txtimer, URTW_ASSERT_LOCKED, and usbd_xfer_softc().
Referenced by urtw_bulk_tx_callback().
|
static |
Definition at line 4116 of file if_urtw.c.
References DPRINTF, urtw_softc::sc_ic, urtw_softc::sc_txstatus, type, URTW_STATUS_TYPE_TXCLOSE, URTW_TX_MAXRETRY, usbd_xfer_softc(), usbd_xfer_status(), and val.
Referenced by urtw_bulk_tx_status_callback().
|
static |
Definition at line 1666 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 1972 of file if_urtw.c.
References data, DPRINTF, error, fail, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_state, URTW_MSR, URTW_MSR_LINK_ADHOC, URTW_MSR_LINK_ENEDCA, URTW_MSR_LINK_HOSTAP, URTW_MSR_LINK_NONE, URTW_MSR_LINK_STA, urtw_read8_m, URTW_RTL8187B, urtw_write8_m, and USB_ERR_INVAL.
Referenced by urtw_adapter_start(), and urtw_newstate().
|
static |
Definition at line 1655 of file if_urtw.c.
References urtw_softc::sc_flags, URTW_LOCK, URTW_RUNNING, urtw_rx_setconf(), and URTW_UNLOCK.
Referenced by urtw_attach().
|
static |
Definition at line 4322 of file if_urtw.c.
References urtw_softc::sc_updateslot_task.
Referenced by urtw_attach().
|
static |
Definition at line 4330 of file if_urtw.c.
References error, fail, urtw_softc::sc_flags, urtw_softc::sc_ic, urtw_softc::sc_state, URTW_8187B_EIFS, URTW_CARRIER_SCOUNT, URTW_CW_VAL, URTW_DIFS, URTW_EIFS, URTW_LOCK, URTW_RTL8187B, URTW_RUNNING, URTW_SIFS, URTW_SLOT, URTW_UNLOCK, and urtw_write8_m.
Referenced by urtw_attach().
|
static |
Definition at line 1017 of file if_urtw.c.
References name, urtw_vap::newstate, urtw_newstate(), and urtw_vap::vap.
Referenced by urtw_attach().
|
static |
Definition at line 1050 of file if_urtw.c.
References URTW_VAP, and urtw_vap::vap.
Referenced by urtw_attach().
|
static |
Definition at line 1910 of file if_urtw.c.
References urtw_softc::sc_dev, urtw_softc::sc_ic, urtw_softc::sc_txtimer, urtw_softc::sc_watchdog_ch, and urtw_watchdog().
Referenced by urtw_init(), urtw_start(), and urtw_watchdog().
|
static |
Definition at line 2081 of file if_urtw.c.
References data, req, URTW_8187_SETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_WRITE_VENDOR_DEVICE, and val.
|
static |
Definition at line 2097 of file if_urtw.c.
References data, req, URTW_8187_SETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_WRITE_VENDOR_DEVICE, and val.
|
static |
Definition at line 2065 of file if_urtw.c.
References data, req, URTW_8187_SETREGS_REQ, URTW_ASSERT_LOCKED, urtw_do_request(), USETW, UT_WRITE_VENDOR_DEVICE, and val.
|
static |
Definition at line 3455 of file if_urtw.c.
References data, req, URTW_8187_SETREGS_REQ, urtw_do_request(), USETW, UT_WRITE_VENDOR_DEVICE, and val.
Referenced by urtw_8225_usb_init(), urtw_adapter_start_b(), and urtw_reset().
USB_PNP_HOST_INFO | ( | urtw_devs | ) |
|
static |
Definition at line 525 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 615 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 185 of file if_urtw.c.
Referenced by urtw_8225_rf_init(), and urtw_8225v2_rf_init().
|
static |
Definition at line 215 of file if_urtw.c.
Referenced by urtw_8225_rf_set_chan(), urtw_8225v2_rf_set_chan(), and urtw_8225v2b_rf_set_chan().
|
static |
Definition at line 233 of file if_urtw.c.
Referenced by urtw_8225_setgain().
|
static |
Definition at line 243 of file if_urtw.c.
Referenced by urtw_8225_rf_init().
|
static |
Definition at line 250 of file if_urtw.c.
Referenced by urtw_8225_rf_init().
|
static |
Definition at line 263 of file if_urtw.c.
Referenced by urtw_8225_rf_init().
|
static |
Definition at line 273 of file if_urtw.c.
Referenced by urtw_8225_rf_init().
|
static |
Definition at line 288 of file if_urtw.c.
Referenced by urtw_8225_rf_set_sens().
|
static |
Definition at line 292 of file if_urtw.c.
Referenced by urtw_8225_set_txpwrlvl().
|
static |
Definition at line 296 of file if_urtw.c.
Referenced by urtw_8225_set_txpwrlvl().
|
static |
Definition at line 305 of file if_urtw.c.
Referenced by urtw_8225_set_txpwrlvl().
|
static |
Definition at line 314 of file if_urtw.c.
Referenced by urtw_8225_set_txpwrlvl().
|
static |
Definition at line 318 of file if_urtw.c.
Referenced by urtw_8225v2_setgain().
|
static |
Definition at line 328 of file if_urtw.c.
Referenced by urtw_8225v2_rf_init().
|
static |
Definition at line 376 of file if_urtw.c.
Referenced by urtw_8225v2_rf_init().
|
static |
Definition at line 407 of file if_urtw.c.
Referenced by urtw_8225v2_rf_init().
|
static |
Definition at line 418 of file if_urtw.c.
Referenced by urtw_8225v2_rf_init().
|
static |
Definition at line 448 of file if_urtw.c.
Referenced by urtw_8225v2_set_txpwrlvl(), and urtw_8225v2b_set_txpwrlvl().
|
static |
Definition at line 457 of file if_urtw.c.
Referenced by urtw_8225v2_set_txpwrlvl().
|
static |
Definition at line 461 of file if_urtw.c.
Referenced by urtw_8225v2_set_txpwrlvl().
|
static |
Definition at line 335 of file if_urtw.c.
Referenced by urtw_8225v2b_rf_init().
|
static |
Definition at line 342 of file if_urtw.c.
Referenced by urtw_8225v2b_rf_init().
|
static |
Definition at line 389 of file if_urtw.c.
Referenced by urtw_8225v2b_rf_init().
|
static |
Definition at line 433 of file if_urtw.c.
Referenced by urtw_8225v2b_rf_init().
|
static |
Definition at line 465 of file if_urtw.c.
Referenced by urtw_8225v2b_set_txpwrlvl().
|
static |
Definition at line 472 of file if_urtw.c.
Referenced by urtw_8225v2b_set_txpwrlvl().
|
static |
Definition at line 200 of file if_urtw.c.
Referenced by urtw_8225v2b_rf_init().
|
static |
|
static |
|
static |
|
static |
Definition at line 110 of file if_urtw.c.
Referenced by urtw_match().
|
static |
|
static |
|
static |
Definition at line 97 of file if_urtw.c.
Referenced by urtw_attach().
|
static |
Definition at line 479 of file if_urtw.c.
Referenced by urtw_rtl2rate().