svn commit: r219773 - head/sys/dev/ath/ath_hal
Adrian Chadd
adrian at FreeBSD.org
Sat Mar 19 14:38:29 UTC 2011
Author: adrian
Date: Sat Mar 19 14:38:28 2011
New Revision: 219773
URL: http://svn.freebsd.org/changeset/base/219773
Log:
Add in the channel survey data structures. These will be filled out
by the HAL at some point in the future.
Modified:
head/sys/dev/ath/ath_hal/ah.h
Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h Sat Mar 19 14:37:13 2011 (r219772)
+++ head/sys/dev/ath/ath_hal/ah.h Sat Mar 19 14:38:28 2011 (r219773)
@@ -596,6 +596,33 @@ struct ath_rx_status;
struct ieee80211_channel;
/*
+ * This is a channel survey sample entry.
+ *
+ * The AR5212 ANI routines fill these samples. The ANI code then uses it
+ * when calculating listen time; it is also exported via a diagnostic
+ * API.
+ */
+typedef struct {
+ uint32_t seq_num;
+ uint32_t tx_busy;
+ uint32_t rx_busy;
+ uint32_t chan_busy;
+ uint32_t cycle_count;
+} HAL_SURVEY_SAMPLE;
+
+/*
+ * This provides 3.2 seconds of sample space given an
+ * ANI time of 1/10th of a second. This may not be enough!
+ */
+#define CHANNEL_SURVEY_SAMPLE_COUNT 32
+
+typedef struct {
+ HAL_SURVEY_SAMPLE samples[CHANNEL_SURVEY_SAMPLE_COUNT];
+ uint32_t cur_sample; /* current sample in sequence */
+ uint32_t cur_seq; /* current sequence number */
+} HAL_CHANNEL_SURVEY;
+
+/*
* Hardware Access Layer (HAL) API.
*
* Clients of the HAL call ath_hal_attach to obtain a reference to an
More information about the svn-src-all
mailing list