Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_urtwvar.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
struct urtw_vap { | struct urtw_vap { | ||||
struct ieee80211vap vap; | struct ieee80211vap vap; | ||||
int (*newstate)(struct ieee80211vap *, | int (*newstate)(struct ieee80211vap *, | ||||
enum ieee80211_state, int); | enum ieee80211_state, int); | ||||
}; | }; | ||||
#define URTW_VAP(vap) ((struct urtw_vap *)(vap)) | #define URTW_VAP(vap) ((struct urtw_vap *)(vap)) | ||||
struct urtw_softc { | struct urtw_softc { | ||||
struct ifnet *sc_ifp; | struct ieee80211com sc_ic; | ||||
struct mbufq sc_snd; | |||||
device_t sc_dev; | device_t sc_dev; | ||||
struct usb_device *sc_udev; | struct usb_device *sc_udev; | ||||
struct mtx sc_mtx; | struct mtx sc_mtx; | ||||
void *sc_tx_dma_buf; | void *sc_tx_dma_buf; | ||||
int sc_debug; | int sc_debug; | ||||
int sc_if_flags; | |||||
int sc_flags; | int sc_flags; | ||||
#define URTW_INIT_ONCE (1 << 1) | #define URTW_INIT_ONCE (1 << 1) | ||||
#define URTW_RTL8187B (1 << 2) | #define URTW_RTL8187B (1 << 2) | ||||
#define URTW_RTL8187B_REV_B (1 << 3) | #define URTW_RTL8187B_REV_B (1 << 3) | ||||
#define URTW_RTL8187B_REV_D (1 << 4) | #define URTW_RTL8187B_REV_D (1 << 4) | ||||
#define URTW_RTL8187B_REV_E (1 << 5) | #define URTW_RTL8187B_REV_E (1 << 5) | ||||
#define URTW_DETACHED (1 << 6) | #define URTW_DETACHED (1 << 6) | ||||
#define URTW_RUNNING (1 << 7) | |||||
enum ieee80211_state sc_state; | enum ieee80211_state sc_state; | ||||
int sc_epromtype; | int sc_epromtype; | ||||
#define URTW_EEPROM_93C46 0 | #define URTW_EEPROM_93C46 0 | ||||
#define URTW_EEPROM_93C56 1 | #define URTW_EEPROM_93C56 1 | ||||
uint8_t sc_crcmon; | uint8_t sc_crcmon; | ||||
uint8_t sc_bssid[IEEE80211_ADDR_LEN]; | |||||
struct ieee80211_channel *sc_curchan; | struct ieee80211_channel *sc_curchan; | ||||
/* for RF */ | /* for RF */ | ||||
usb_error_t (*sc_rf_init)(struct urtw_softc *); | usb_error_t (*sc_rf_init)(struct urtw_softc *); | ||||
usb_error_t (*sc_rf_set_chan)(struct urtw_softc *, | usb_error_t (*sc_rf_set_chan)(struct urtw_softc *, | ||||
int); | int); | ||||
usb_error_t (*sc_rf_set_sens)(struct urtw_softc *, | usb_error_t (*sc_rf_set_sens)(struct urtw_softc *, | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |