diff options
author | adrian <adrian@FreeBSD.org> | 2011-03-19 14:38:28 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-03-19 14:38:28 +0000 |
commit | f12f2f2a3d6fa2f70b63b68e2476ea4814196c0d (patch) | |
tree | 1779b0c9f8d0d74d7358c14159e6ecf82a6922be | |
parent | 4483667ac915e3f5399a0e286dfbd3f3730c424d (diff) | |
download | FreeBSD-src-f12f2f2a3d6fa2f70b63b68e2476ea4814196c0d.zip FreeBSD-src-f12f2f2a3d6fa2f70b63b68e2476ea4814196c0d.tar.gz |
Add in the channel survey data structures. These will be filled out
by the HAL at some point in the future.
-rw-r--r-- | sys/dev/ath/ath_hal/ah.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.h b/sys/dev/ath/ath_hal/ah.h index 60fae59..9b1b8b4 100644 --- a/sys/dev/ath/ath_hal/ah.h +++ b/sys/dev/ath/ath_hal/ah.h @@ -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 |