summaryrefslogtreecommitdiffstats
path: root/sys/dev/wpi/if_wpivar.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-05-03 23:39:02 +0000
committeradrian <adrian@FreeBSD.org>2015-05-03 23:39:02 +0000
commit77a6558263babab0fa93201cc58d969bffe7e8ff (patch)
tree2a3ae90ee591a936e1ba719c039946ca9fe2b07e /sys/dev/wpi/if_wpivar.h
parent4f1505a6fabc980efb2d4d4c2101aca8fcd3b126 (diff)
downloadFreeBSD-src-77a6558263babab0fa93201cc58d969bffe7e8ff.zip
FreeBSD-src-77a6558263babab0fa93201cc58d969bffe7e8ff.tar.gz
Fix various powersave races + optimize tx/rx pointer update when powersave is off.
PR: kern/197143 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
Diffstat (limited to 'sys/dev/wpi/if_wpivar.h')
-rw-r--r--sys/dev/wpi/if_wpivar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpivar.h b/sys/dev/wpi/if_wpivar.h
index 6a1fc05..c20732f 100644
--- a/sys/dev/wpi/if_wpivar.h
+++ b/sys/dev/wpi/if_wpivar.h
@@ -164,6 +164,9 @@ struct wpi_softc {
struct ifnet *sc_ifp;
int sc_debug;
+ int sc_flags;
+#define WPI_PS_PATH (1 << 0)
+
struct mtx sc_mtx;
struct mtx tx_mtx;
@@ -210,6 +213,9 @@ struct wpi_softc {
struct mtx nt_mtx;
void (*sc_node_free)(struct ieee80211_node *);
+ void (*sc_update_rx_ring)(struct wpi_softc *);
+ void (*sc_update_tx_ring)(struct wpi_softc *,
+ struct wpi_tx_ring *);
struct wpi_rx_radiotap_header sc_rxtap;
struct wpi_tx_radiotap_header sc_txtap;
OpenPOWER on IntegriCloud