FreeBSD kernel usb device Code
|
#include <if_runvar.h>
Data Fields | |
struct mtx | sc_mtx |
struct ieee80211com | sc_ic |
struct ieee80211_ratectl_tx_stats | sc_txs |
struct mbufq | sc_snd |
device_t | sc_dev |
struct usb_device * | sc_udev |
int | sc_need_fwload |
int | sc_flags |
uint16_t | wcid_stats [RT2870_WCID_MAX+1][3] |
int(* | sc_srom_read )(struct run_softc *, uint16_t, uint16_t *) |
uint16_t | mac_ver |
uint16_t | mac_rev |
uint16_t | rf_rev |
uint8_t | freq |
uint8_t | ntxchains |
uint8_t | nrxchains |
uint8_t | bbp25 |
uint8_t | bbp26 |
uint8_t | rf24_20mhz |
uint8_t | rf24_40mhz |
uint8_t | patch_dac |
uint8_t | rfswitch |
uint8_t | ext_2ghz_lna |
uint8_t | ext_5ghz_lna |
uint8_t | calib_2ghz |
uint8_t | calib_5ghz |
uint8_t | txmixgain_2ghz |
uint8_t | txmixgain_5ghz |
int8_t | txpow1 [54] |
int8_t | txpow2 [54] |
int8_t | txpow3 [54] |
int8_t | rssi_2ghz [3] |
int8_t | rssi_5ghz [3] |
uint8_t | lna [4] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | bbp [10] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rf [10] |
uint8_t | leds |
uint16_t | led [3] |
uint32_t | txpow20mhz [5] |
uint32_t | txpow40mhz_2ghz [5] |
uint32_t | txpow40mhz_5ghz [5] |
struct run_endpoint_queue | sc_epq [RUN_EP_QUEUES] |
struct task | ratectl_task |
struct usb_callout | ratectl_ch |
uint8_t | ratectl_run |
struct run_cmdq | cmdq [RUN_CMDQ_MAX] |
struct task | cmdq_task |
uint32_t | cmdq_store |
uint8_t | cmdq_exec |
uint8_t | cmdq_run |
uint8_t | cmdq_key_set |
struct usb_xfer * | sc_xfer [RUN_N_XFER] |
struct mbuf * | rx_m |
uint8_t | fifo_cnt |
uint8_t | running |
uint8_t | runbmap |
uint8_t | ap_running |
uint8_t | adhoc_running |
uint8_t | sta_running |
uint8_t | rvp_cnt |
uint8_t | rvp_bmap |
uint8_t | sc_detached |
uint8_t | sc_bssid [IEEE80211_ADDR_LEN] |
union { | |
struct run_rx_radiotap_header th | |
uint8_t pad [64] | |
} | sc_rxtapu |
union { | |
struct run_tx_radiotap_header th | |
uint8_t pad [64] | |
} | sc_txtapu |
Definition at line 158 of file if_runvar.h.
uint8_t run_softc::adhoc_running |
Definition at line 243 of file if_runvar.h.
Referenced by run_newstate().
uint8_t run_softc::ap_running |
Definition at line 242 of file if_runvar.h.
Referenced by run_newstate().
struct { ... } run_softc::bbp[10] |
Referenced by run_init_locked(), run_read_eeprom(), and run_set_agc().
uint8_t run_softc::bbp25 |
Definition at line 186 of file if_runvar.h.
Referenced by run_rt3070_rf_init(), run_rt3572_set_chan(), run_rt3593_rf_init(), and run_rt3593_set_chan().
uint8_t run_softc::bbp26 |
Definition at line 187 of file if_runvar.h.
Referenced by run_rt3070_rf_init(), run_rt3572_set_chan(), run_rt3593_rf_init(), and run_rt3593_set_chan().
uint8_t run_softc::calib_2ghz |
Definition at line 194 of file if_runvar.h.
Referenced by run_read_eeprom().
uint8_t run_softc::calib_5ghz |
Definition at line 195 of file if_runvar.h.
Referenced by run_read_eeprom().
struct run_cmdq run_softc::cmdq[RUN_CMDQ_MAX] |
Definition at line 225 of file if_runvar.h.
Referenced by run_bulk_tx_callbackN(), run_cmdq_cb(), run_key_delete(), run_key_delete_cb(), run_key_set(), run_newassoc(), run_newassoc_cb(), run_tx(), run_update_beacon(), run_updateprot(), and run_updateslot().
uint8_t run_softc::cmdq_exec |
Definition at line 228 of file if_runvar.h.
Referenced by run_cmdq_cb().
uint8_t run_softc::cmdq_key_set |
Definition at line 230 of file if_runvar.h.
Referenced by run_detach(), run_init_locked(), run_key_set(), and run_stop().
uint8_t run_softc::cmdq_run |
Definition at line 229 of file if_runvar.h.
Referenced by run_cmdq_cb(), run_detach(), run_init_locked(), run_stop(), and run_vap_create().
uint32_t run_softc::cmdq_store |
Definition at line 227 of file if_runvar.h.
Referenced by run_bulk_tx_callbackN(), run_key_delete(), run_key_set(), run_newassoc(), run_tx(), run_update_beacon(), run_updateprot(), and run_updateslot().
struct task run_softc::cmdq_task |
Definition at line 226 of file if_runvar.h.
Referenced by run_attach(), run_bulk_tx_callbackN(), run_detach(), run_key_delete(), run_key_set(), run_newassoc(), run_tx(), run_update_beacon(), run_updateprot(), and run_updateslot().
uint8_t run_softc::ext_2ghz_lna |
Definition at line 192 of file if_runvar.h.
Referenced by run_read_eeprom(), run_rt3070_rf_init(), and run_select_chan_group().
uint8_t run_softc::ext_5ghz_lna |
Definition at line 193 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_select_chan_group().
uint8_t run_softc::fifo_cnt |
Definition at line 238 of file if_runvar.h.
Referenced by run_drain_fifo(), and run_tx().
uint8_t run_softc::freq |
Definition at line 182 of file if_runvar.h.
Referenced by run_adjust_freq_offset(), run_read_eeprom(), run_rt2870_set_chan(), run_rt3070_set_chan(), and run_rt3572_set_chan().
uint16_t run_softc::led[3] |
Definition at line 210 of file if_runvar.h.
Referenced by run_init_locked(), and run_read_eeprom().
uint8_t run_softc::leds |
Definition at line 209 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_set_leds().
uint8_t run_softc::lna[4] |
Definition at line 203 of file if_runvar.h.
Referenced by run_read_eeprom(), run_rssi2dbm(), and run_select_chan_group().
uint16_t run_softc::mac_rev |
Definition at line 180 of file if_runvar.h.
Referenced by run_attach(), run_bbp_init(), run_init_locked(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3593_rf_setup(), run_rt5390_bbp_init(), run_rt5390_rf_init(), run_rt5390_rf_setup(), and run_rt5390_set_chan().
uint16_t run_softc::mac_ver |
Definition at line 179 of file if_runvar.h.
Referenced by run_attach(), run_bbp_init(), run_bulk_rx_callback(), run_bulk_tx_callbackN(), run_get_txpower(), run_init_locked(), run_load_microcode(), run_read_eeprom(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt5390_bbp_init(), run_rt5390_rf_init(), run_rt5390_rf_setup(), run_rt5390_set_chan(), run_rx_frame(), run_select_chan_group(), run_set_agc(), run_set_chan(), run_set_tx_desc(), and run_update_beacon_cb().
uint8_t run_softc::nrxchains |
Definition at line 184 of file if_runvar.h.
Referenced by run_attach(), run_init_locked(), run_maxrssi_chain(), run_read_eeprom(), run_rt2870_set_chan(), run_rt3070_rf_setup(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_rf_setup(), run_rt5390_bbp_init(), run_rt5390_rf_setup(), run_rt5592_set_chan(), and run_select_chan_group().
uint8_t run_softc::ntxchains |
Definition at line 183 of file if_runvar.h.
Referenced by run_attach(), run_init_locked(), run_read_eeprom(), run_rt2870_set_chan(), run_rt3070_rf_setup(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_get_txpower(), run_rt3593_set_chan(), run_rt5390_rf_setup(), run_rt5592_set_chan(), and run_select_chan_group().
uint8_t run_softc::pad[64] |
Definition at line 253 of file if_runvar.h.
uint8_t run_softc::patch_dac |
Definition at line 190 of file if_runvar.h.
Referenced by run_read_eeprom(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3593_rf_setup(), and run_rt5390_rf_setup().
struct usb_callout run_softc::ratectl_ch |
Definition at line 218 of file if_runvar.h.
Referenced by run_attach(), run_detach(), run_newassoc(), run_newstate(), and run_ratectl_cb().
uint8_t run_softc::ratectl_run |
Definition at line 219 of file if_runvar.h.
Referenced by run_detach(), run_newassoc(), run_newstate(), run_ratectl_cb(), run_stop(), and run_vap_delete().
struct task run_softc::ratectl_task |
Definition at line 217 of file if_runvar.h.
Referenced by run_attach(), run_detach(), and run_ratectl_to().
uint8_t run_softc::reg |
Definition at line 206 of file if_runvar.h.
Referenced by run_init_locked(), run_read_eeprom(), and run_rt3070_rf_setup().
struct { ... } run_softc::rf[10] |
Referenced by run_read_eeprom(), and run_rt3070_rf_setup().
uint8_t run_softc::rf24_20mhz |
Definition at line 188 of file if_runvar.h.
Referenced by run_rt3070_rf_init(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt3593_set_chan(), and run_rt5390_rf_init().
uint8_t run_softc::rf24_40mhz |
Definition at line 189 of file if_runvar.h.
Referenced by run_rt3070_rf_init(), run_rt3593_rf_init(), and run_rt5390_rf_init().
uint16_t run_softc::rf_rev |
Definition at line 181 of file if_runvar.h.
Referenced by run_attach(), run_getradiocaps(), run_init_locked(), run_read_eeprom(), and run_set_rx_antenna().
uint8_t run_softc::rfswitch |
Definition at line 191 of file if_runvar.h.
Referenced by run_read_eeprom().
int8_t run_softc::rssi_2ghz[3] |
Definition at line 201 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_rssi2dbm().
int8_t run_softc::rssi_5ghz[3] |
Definition at line 202 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_rssi2dbm().
uint8_t run_softc::runbmap |
Definition at line 241 of file if_runvar.h.
Referenced by run_newstate().
uint8_t run_softc::running |
Definition at line 240 of file if_runvar.h.
Referenced by run_newstate().
uint8_t run_softc::rvp_bmap |
Definition at line 246 of file if_runvar.h.
Referenced by run_vap_create(), and run_vap_delete().
uint8_t run_softc::rvp_cnt |
Definition at line 245 of file if_runvar.h.
Referenced by run_iter_func(), run_parent(), run_ratectl_cb(), run_tx(), run_vap_create(), and run_vap_delete().
struct mbuf* run_softc::rx_m |
Definition at line 236 of file if_runvar.h.
Referenced by run_bulk_rx_callback(), and run_stop().
uint8_t run_softc::sc_bssid[IEEE80211_ADDR_LEN] |
Definition at line 249 of file if_runvar.h.
Referenced by run_newstate(), and run_scan_end().
uint8_t run_softc::sc_detached |
Definition at line 247 of file if_runvar.h.
Referenced by run_detach(), and run_parent().
device_t run_softc::sc_dev |
Definition at line 163 of file if_runvar.h.
Referenced by run_attach(), run_bulk_rx_callback(), run_bulk_tx_callbackN(), run_init_locked(), run_load_microcode(), run_newassoc(), run_read_eeprom(), run_stop(), and run_vap_create().
struct run_endpoint_queue run_softc::sc_epq[RUN_EP_QUEUES] |
Definition at line 215 of file if_runvar.h.
Referenced by run_bulk_tx_callbackN(), run_detach(), run_init_locked(), run_sendprot(), run_stop(), run_tx(), run_tx_mgt(), and run_tx_param().
int run_softc::sc_flags |
Definition at line 167 of file if_runvar.h.
Referenced by run_attach(), run_init_locked(), run_load_microcode(), run_parent(), run_raw_xmit(), run_start(), run_stop(), run_transmit(), and run_update_promisc().
struct ieee80211com run_softc::sc_ic |
Definition at line 160 of file if_runvar.h.
Referenced by run_attach(), run_bulk_rx_callback(), run_bulk_tx_callbackN(), run_detach(), run_drain_fifo(), run_enable_tsf_sync(), run_init_locked(), run_ratectl_cb(), run_ratectl_to(), run_read_eeprom(), run_rssi2dbm(), run_rx_frame(), run_set_basicrates(), run_set_chan(), run_set_tx_desc(), run_set_txpreamble(), run_tx(), run_tx_mgt(), run_txrx_enable(), and run_update_promisc_locked().
struct mtx run_softc::sc_mtx |
Definition at line 159 of file if_runvar.h.
Referenced by run_attach(), run_delay(), run_detach(), run_do_request(), run_eeprom_read_2(), run_load_microcode(), and run_reset().
int run_softc::sc_need_fwload |
Definition at line 165 of file if_runvar.h.
union { ... } run_softc::sc_rxtapu |
struct mbufq run_softc::sc_snd |
Definition at line 162 of file if_runvar.h.
Referenced by run_attach(), run_drain_mbufq(), run_start(), and run_transmit().
int(* run_softc::sc_srom_read) (struct run_softc *, uint16_t, uint16_t *) |
Definition at line 176 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_srom_read().
struct ieee80211_ratectl_tx_stats run_softc::sc_txs |
Definition at line 161 of file if_runvar.h.
Referenced by run_iter_func().
union { ... } run_softc::sc_txtapu |
struct usb_device* run_softc::sc_udev |
Definition at line 164 of file if_runvar.h.
Referenced by run_attach(), run_do_request(), run_eeprom_read_2(), run_load_microcode(), and run_reset().
struct usb_xfer* run_softc::sc_xfer[RUN_N_XFER] |
Definition at line 234 of file if_runvar.h.
Referenced by run_attach(), run_detach(), run_init_locked(), run_sendprot(), run_stop(), run_tx(), run_tx_mgt(), and run_tx_param().
uint8_t run_softc::sta_running |
Definition at line 244 of file if_runvar.h.
Referenced by run_newstate().
struct run_rx_radiotap_header run_softc::th |
Definition at line 252 of file if_runvar.h.
struct run_tx_radiotap_header run_softc::th |
Definition at line 258 of file if_runvar.h.
uint8_t run_softc::txmixgain_2ghz |
Definition at line 196 of file if_runvar.h.
Referenced by run_read_eeprom(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3572_set_chan(), and run_rt3593_rf_setup().
uint8_t run_softc::txmixgain_5ghz |
Definition at line 197 of file if_runvar.h.
Referenced by run_read_eeprom(), and run_rt3572_set_chan().
int8_t run_softc::txpow1[54] |
Definition at line 198 of file if_runvar.h.
Referenced by run_get_txpower(), run_rt2870_set_chan(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_get_txpower(), run_rt3593_set_chan(), run_rt5390_set_chan(), and run_rt5592_set_chan().
int8_t run_softc::txpow2[54] |
Definition at line 199 of file if_runvar.h.
Referenced by run_get_txpower(), run_rt2870_set_chan(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_get_txpower(), run_rt3593_set_chan(), run_rt5390_set_chan(), and run_rt5592_set_chan().
uint32_t run_softc::txpow20mhz[5] |
Definition at line 211 of file if_runvar.h.
Referenced by run_init_locked(), and run_read_eeprom().
int8_t run_softc::txpow3[54] |
Definition at line 200 of file if_runvar.h.
Referenced by run_rt3593_get_txpower(), and run_rt3593_set_chan().
uint32_t run_softc::txpow40mhz_2ghz[5] |
Definition at line 212 of file if_runvar.h.
Referenced by run_read_eeprom().
uint32_t run_softc::txpow40mhz_5ghz[5] |
Definition at line 213 of file if_runvar.h.
Referenced by run_read_eeprom().
uint8_t run_softc::val |
Definition at line 207 of file if_runvar.h.
Referenced by run_init_locked(), run_read_eeprom(), and run_rt3070_rf_setup().
uint16_t run_softc::wcid_stats[RT2870_WCID_MAX+1][3] |
Definition at line 171 of file if_runvar.h.
Referenced by run_drain_fifo(), run_iter_func(), and run_newassoc_cb().