iwlwifi: consolidate hw scheduler configuration code
authorAvri Altman <avri.altman@intel.com>
Mon, 14 Jul 2014 06:40:27 +0000 (09:40 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:49:00 +0000 (22:49 +0300)
commitb5aeca3f00c30b95ff2f31ccd52d4633c2e92323
tree9816d75444d71b477425291e878b8339c2b8771b
parent17bb7eed66e8ae0219d11c930cfa6dafeaee65b7
iwlwifi: consolidate hw scheduler configuration code

Configuring the hw scheduler during queue enablement is done by
writing the appropriate values to the scheduler peripherals, and
it is essentially the same for all buses.

Whenever writing is done via the standard iwl_write_prph, we can
avoid duplicating the code for each bus. Those operations are
queue deactivation, RA/TID mapping, chain-building settings,
enabling/disabling aggregations and activating/deactivating the
TX FIFOs.

Consolidate this code using static inlines in a new header file.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-scd.h [new file with mode: 0644]
drivers/net/wireless/iwlwifi/pcie/tx.c