rt2560var.h (286437) | rt2560var.h (287197) |
---|---|
1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 286437 2015-08-08 01:10:17Z adrian $ */ | 1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 287197 2015-08-27 08:56:39Z glebius $ */ |
2 3/*- 4 * Copyright (c) 2005, 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. --- 90 unchanged lines hidden (view full) --- 100 struct ieee80211_beacon_offsets ral_bo; 101 102 int (*ral_newstate)(struct ieee80211vap *, 103 enum ieee80211_state, int); 104}; 105#define RT2560_VAP(vap) ((struct rt2560_vap *)(vap)) 106 107struct rt2560_softc { | 2 3/*- 4 * Copyright (c) 2005, 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. --- 90 unchanged lines hidden (view full) --- 100 struct ieee80211_beacon_offsets ral_bo; 101 102 int (*ral_newstate)(struct ieee80211vap *, 103 enum ieee80211_state, int); 104}; 105#define RT2560_VAP(vap) ((struct rt2560_vap *)(vap)) 106 107struct rt2560_softc { |
108 struct ifnet *sc_ifp; | 108 struct ieee80211com sc_ic; 109 struct mtx sc_mtx; 110 struct mbufq sc_snd; |
109 device_t sc_dev; 110 bus_space_tag_t sc_st; 111 bus_space_handle_t sc_sh; 112 | 111 device_t sc_dev; 112 bus_space_tag_t sc_st; 113 bus_space_handle_t sc_sh; 114 |
113 struct mtx sc_mtx; 114 | |
115 struct callout watchdog_ch; 116 117 int sc_tx_timer; 118 int sc_invalid; 119 int sc_debug; 120/* 121 * The same in both up to here 122 * ------------------------------------------------ --- 24 unchanged lines hidden (view full) --- 147 int nb_ant; 148 149 struct rt2560_rx_radiotap_header sc_rxtap; 150 int sc_rxtap_len; 151 152 struct rt2560_tx_radiotap_header sc_txtap; 153 int sc_txtap_len; 154#define RT2560_F_INPUT_RUNNING 0x1 | 115 struct callout watchdog_ch; 116 117 int sc_tx_timer; 118 int sc_invalid; 119 int sc_debug; 120/* 121 * The same in both up to here 122 * ------------------------------------------------ --- 24 unchanged lines hidden (view full) --- 147 int nb_ant; 148 149 struct rt2560_rx_radiotap_header sc_rxtap; 150 int sc_rxtap_len; 151 152 struct rt2560_tx_radiotap_header sc_txtap; 153 int sc_txtap_len; 154#define RT2560_F_INPUT_RUNNING 0x1 |
155#define RT2560_F_PRIO_OACTIVE 0x2 156#define RT2560_F_DATA_OACTIVE 0x4 | 155#define RT2560_F_RUNNING 0x2 |
157 int sc_flags; 158}; 159 160int rt2560_attach(device_t, int); 161int rt2560_detach(void *); 162void rt2560_stop(void *); 163void rt2560_resume(void *); 164void rt2560_intr(void *); 165 166#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 167#define RAL_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 168#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) | 156 int sc_flags; 157}; 158 159int rt2560_attach(device_t, int); 160int rt2560_detach(void *); 161void rt2560_stop(void *); 162void rt2560_resume(void *); 163void rt2560_intr(void *); 164 165#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 166#define RAL_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 167#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) |