Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iwn/if_iwnvar.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | |||||
struct iwn_vap { | struct iwn_vap { | ||||
struct ieee80211vap iv_vap; | struct ieee80211vap iv_vap; | ||||
uint8_t iv_ridx; | uint8_t iv_ridx; | ||||
int (*iv_newstate)(struct ieee80211vap *, | int (*iv_newstate)(struct ieee80211vap *, | ||||
enum ieee80211_state, int); | enum ieee80211_state, int); | ||||
int ctx; | int ctx; | ||||
int beacon_int; | int beacon_int; | ||||
uint8_t macaddr[IEEE80211_ADDR_LEN]; | |||||
}; | }; | ||||
#define IWN_VAP(_vap) ((struct iwn_vap *)(_vap)) | #define IWN_VAP(_vap) ((struct iwn_vap *)(_vap)) | ||||
struct iwn_softc { | struct iwn_softc { | ||||
device_t sc_dev; | device_t sc_dev; | ||||
struct ifnet *sc_ifp; | |||||
int sc_debug; | int sc_debug; | ||||
struct mtx sc_mtx; | struct mtx sc_mtx; | ||||
struct ieee80211com sc_ic; | |||||
struct mbufq sc_snd; | |||||
u_int sc_flags; | u_int sc_flags; | ||||
#define IWN_FLAG_HAS_OTPROM (1 << 1) | #define IWN_FLAG_HAS_OTPROM (1 << 1) | ||||
#define IWN_FLAG_CALIB_DONE (1 << 2) | #define IWN_FLAG_CALIB_DONE (1 << 2) | ||||
#define IWN_FLAG_USE_ICT (1 << 3) | #define IWN_FLAG_USE_ICT (1 << 3) | ||||
#define IWN_FLAG_INTERNAL_PA (1 << 4) | #define IWN_FLAG_INTERNAL_PA (1 << 4) | ||||
#define IWN_FLAG_HAS_11N (1 << 6) | #define IWN_FLAG_HAS_11N (1 << 6) | ||||
#define IWN_FLAG_ENH_SENS (1 << 7) | #define IWN_FLAG_ENH_SENS (1 << 7) | ||||
#define IWN_FLAG_ADV_BTCOEX (1 << 8) | #define IWN_FLAG_ADV_BTCOEX (1 << 8) | ||||
#define IWN_FLAG_PAN_SUPPORT (1 << 9) | #define IWN_FLAG_PAN_SUPPORT (1 << 9) | ||||
#define IWN_FLAG_BTCOEX (1 << 10) | #define IWN_FLAG_BTCOEX (1 << 10) | ||||
#define IWN_FLAG_RUNNING (1 << 11) | |||||
uint8_t hw_type; | uint8_t hw_type; | ||||
/* subdevice_id used to adjust configuration */ | /* subdevice_id used to adjust configuration */ | ||||
uint16_t subdevice_id; | uint16_t subdevice_id; | ||||
struct iwn_ops ops; | struct iwn_ops ops; | ||||
const char *fwname; | const char *fwname; | ||||
const struct iwn_sensitivity_limits | const struct iwn_sensitivity_limits | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | #define IWN_FLAG_RUNNING (1 << 11) | ||||
struct taskqueue *sc_tq; | struct taskqueue *sc_tq; | ||||
/* Calibration information */ | /* Calibration information */ | ||||
struct callout calib_to; | struct callout calib_to; | ||||
int calib_cnt; | int calib_cnt; | ||||
struct iwn_calib_state calib; | struct iwn_calib_state calib; | ||||
int last_calib_ticks; | int last_calib_ticks; | ||||
struct callout watchdog_to; | struct callout watchdog_to; | ||||
struct callout ct_kill_exit_to; | |||||
struct iwn_fw_info fw; | struct iwn_fw_info fw; | ||||
struct iwn_calib_info calibcmd[IWN5000_PHY_CALIB_MAX_RESULT]; | struct iwn_calib_info calibcmd[IWN5000_PHY_CALIB_MAX_RESULT]; | ||||
uint32_t errptr; | uint32_t errptr; | ||||
struct iwn_rx_stat last_rx_stat; | struct iwn_rx_stat last_rx_stat; | ||||
int last_rx_valid; | int last_rx_valid; | ||||
struct iwn_ucode_info ucode_info; | struct iwn_ucode_info ucode_info; | ||||
struct iwn_rxon rx_on[IWN_NUM_RXON_CTX]; | struct iwn_rxon rx_on[IWN_NUM_RXON_CTX]; | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |