freebsd-nq/sys/dev/ath/ath_hal/ar5211
Adrian Chadd 8a67b42a74 Migrate the chip power mode status to public ath_hal, rather than the
private per-chip HAL.

This allows the ah_osdep.[ch] code to check whether the power state is
valid for doing chip programming.

It should be a no-op for normal driver work but it does require a
clean kernel/module rebuild, as the size of HAL structures have changed.

Now, this doesn't track whether the hardware is ACTUALLY awake,
as NETWORK_SLEEP wakes the chip up for a short period when traffic
is received.  This doesn't actually set the power mode to AWAKE, so
we have to be careful about how we touch things.

But it's enough to start down the path of implementing station mode
chipset power savings, as a large part of the silliness is making
sure the chip is awake during periodic calibration / ANI and
random places where transmit may be occuring.  I'd rather not a repeat
of debugging power save on ath9k, where races with calibration
and transmit path stuff took a couple years to shake out.

Tested:

* AR5416, STA mode
2014-03-10 06:03:35 +00:00
..
ar5211_attach.c Begin adding support to explicitly set the current chainmask. 2013-02-25 22:42:43 +00:00
ar5211_beacon.c Update the TSF and next-TBTT methods to work for the AR5416 and later NICs. 2011-09-08 01:23:05 +00:00
ar5211_interrupts.c
ar5211_keycache.c
ar5211_misc.c Begin adding support to explicitly set the current chainmask. 2013-02-25 22:42:43 +00:00
ar5211_phy.c
ar5211_power.c Migrate the chip power mode status to public ath_hal, rather than the 2014-03-10 06:03:35 +00:00
ar5211_recv.c Extend the RX HAL API to include the RX queue identifier. 2012-07-09 07:19:11 +00:00
ar5211_reset.c Stop using the hardware register value byte order swapping for now, 2012-04-19 03:26:21 +00:00
ar5211_xmit.c Migrate the ath_hal_filltxdesc() API to take a list of buffer/seglen values. 2012-08-05 10:12:27 +00:00
ar5211.h Migrate the chip power mode status to public ath_hal, rather than the 2014-03-10 06:03:35 +00:00
ar5211desc.h Remove this include, it isn't needed. 2012-11-18 20:41:46 +00:00
ar5211phy.h
ar5211reg.h Reapply r228785 now it has been tested by Adrian. Also add comments 2011-12-30 02:58:37 +00:00
boss.ini Clean some 'svn:executable' properties in the tree. 2013-01-26 22:08:21 +00:00