diff options
author | adrian <adrian@FreeBSD.org> | 2012-11-27 02:24:05 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-11-27 02:24:05 +0000 |
commit | 5f317c87f2108aef0bca7d9e58ff0f19539bd4f6 (patch) | |
tree | e83fdff657122fda01facf94e8a8f2627e815a0f | |
parent | c5c46f8668be23d7b5cacaa2e18d493491fffa66 (diff) | |
download | FreeBSD-src-5f317c87f2108aef0bca7d9e58ff0f19539bd4f6.zip FreeBSD-src-5f317c87f2108aef0bca7d9e58ff0f19539bd4f6.tar.gz |
Add in specific TDMA logging types.
-rw-r--r-- | sys/dev/ath/if_ath_alq.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_alq.h b/sys/dev/ath/if_ath_alq.h index 2720e63..cb37452 100644 --- a/sys/dev/ath/if_ath_alq.h +++ b/sys/dev/ath/if_ath_alq.h @@ -43,6 +43,55 @@ struct if_ath_alq_init_state { #define ATH_ALQ_EDMA_RXSTATUS 3 #define ATH_ALQ_EDMA_TXDESC 4 +#define ATH_ALQ_TDMA_BEACON_STATE 5 +struct if_ath_alq_tdma_beacon_state { + uint64_t rx_tsf; /* RX TSF of beacon frame */ + uint64_t beacon_tsf; /* TSF inside beacon frame */ + uint64_t tsf64; + uint64_t nextslot_tsf; + uint32_t nextslot_tu; + uint32_t txtime; +}; + +#define ATH_ALQ_TDMA_TIMER_CONFIG 6 +struct if_ath_alq_tdma_timer_config { + uint32_t tdma_slot; + uint32_t tdma_slotlen; + uint32_t tdma_slotcnt; + uint32_t tdma_bintval; + uint32_t tdma_guard; + uint32_t tdma_scbintval; + uint32_t tdma_dbaprep; +}; + +#define ATH_ALQ_TDMA_SLOT_CALC 7 +struct if_ath_alq_tdma_slot_calc { + uint64_t nexttbtt; + uint64_t next_slot; + int32_t tsfdelta; + int32_t avg_plus; + int32_t avg_minus; +}; + +#define ATH_ALQ_TDMA_TSF_ADJUST 8 +struct if_ath_alq_tdma_tsf_adjust { + uint64_t tsf64_old; + uint64_t tsf64_new; + int32_t tsfdelta; +}; + +#define ATH_ALQ_TDMA_TIMER_SET 9 +struct if_ath_alq_tdma_timer_set { + uint32_t bt_intval; + uint32_t bt_nexttbtt; + uint32_t bt_nextdba; + uint32_t bt_nextswba; + uint32_t bt_nextatim; + uint32_t bt_flags; + uint32_t sc_tdmadbaprep; + uint32_t sc_tdmaswbaprep; +}; + /* * These will always be logged, regardless. */ |