Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f20d35 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by John W. Linville
Browse files

iwlagn: introduce iwl-shared.h



It will hold declaration of functions and forward declaration of struct that
are used by several layers.
This will allow modules not to include iwl_priv. iwl_bus and iwl_trans are
still visible to all.

All the layers share the module parameters, move the struct to iwl-shared.h.
Also add all module parameters to iwl_mod_params instead of having them as
global static. This includes

* debug_level
* ant_coupling
* bt_ch_announce
* wanted_ucode_alternative

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a294b96f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
#include "iwl-agn.h"
#include "iwl-helpers.h"
#include "iwl-agn-hw.h"
#include "iwl-shared.h"

/* Highest firmware API version supported */
#define IWL1000_UCODE_API_MAX 6
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
#include "iwl-helpers.h"
#include "iwl-agn-hw.h"
#include "iwl-6000-hw.h"
#include "iwl-shared.h"

/* Highest firmware API version supported */
#define IWL2030_UCODE_API_MAX 6
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@
#include "iwl-agn-hw.h"
#include "iwl-5000-hw.h"
#include "iwl-trans.h"
#include "iwl-shared.h"

/* Highest firmware API version supported */
#define IWL5000_UCODE_API_MAX 5
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
#include "iwl-agn-hw.h"
#include "iwl-6000-hw.h"
#include "iwl-trans.h"
#include "iwl-shared.h"

/* Highest firmware API version supported */
#define IWL6000_UCODE_API_MAX 4
+3 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#include "iwl-agn.h"
#include "iwl-sta.h"
#include "iwl-trans.h"
#include "iwl-shared.h"

static inline u32 iwlagn_get_scd_ssn(struct iwlagn_tx_resp *tx_resp)
{
@@ -609,6 +610,8 @@ struct iwl_mod_params iwlagn_mod_params = {
	.bt_coex_active = true,
	.no_sleep_autoadjust = true,
	.power_level = IWL_POWER_INDEX_1,
	.bt_ch_announce = 1,
	.wanted_ucode_alternative = 1,
	/* the rest are 0 by default */
};

Loading