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

Commit 2f89a5d7 authored by Golan Ben-Ami's avatar Golan Ben-Ami Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: move fw-dbg code to separate file



The fw debug functionality is big enough to warrant
a separate file. Move existing related functions to the new file.

Signed-off-by: default avatarGolan Ben-Ami <golan.ben.ami@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 6f730662
Loading
Loading
Loading
Loading
+0 −17
Original line number Original line Diff line number Diff line
@@ -305,21 +305,4 @@ iwl_fw_dbg_conf_usniffer(const struct iwl_fw *fw, u8 id)
	return conf_tlv->usniffer;
	return conf_tlv->usniffer;
}
}


#define iwl_fw_dbg_trigger_enabled(fw, id) ({			\
	void *__dbg_trigger = (fw)->dbg_trigger_tlv[(id)];	\
	unlikely(__dbg_trigger);				\
})

static inline struct iwl_fw_dbg_trigger_tlv*
_iwl_fw_dbg_get_trigger(const struct iwl_fw *fw, enum iwl_fw_dbg_trigger id)
{
	return fw->dbg_trigger_tlv[id];
}

#define iwl_fw_dbg_get_trigger(fw, id) ({			\
	BUILD_BUG_ON(!__builtin_constant_p(id));		\
	BUILD_BUG_ON((id) >= FW_DBG_TRIGGER_MAX);		\
	_iwl_fw_dbg_get_trigger((fw), (id));			\
})

#endif  /* __iwl_fw_h__ */
#endif  /* __iwl_fw_h__ */
+1 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,7 @@ iwlmvm-y += power.o coex.o coex_legacy.o
iwlmvm-y += tt.o offloading.o tdls.o
iwlmvm-y += tt.o offloading.o tdls.o
iwlmvm-$(CONFIG_IWLWIFI_DEBUGFS) += debugfs.o debugfs-vif.o
iwlmvm-$(CONFIG_IWLWIFI_DEBUGFS) += debugfs.o debugfs-vif.o
iwlmvm-$(CONFIG_IWLWIFI_LEDS) += led.o
iwlmvm-$(CONFIG_IWLWIFI_LEDS) += led.o
iwlmvm-y += tof.o
iwlmvm-y += tof.o fw-dbg.o
iwlmvm-$(CONFIG_PM_SLEEP) += d3.o
iwlmvm-$(CONFIG_PM_SLEEP) += d3.o


ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/../
ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/../
+1 −0
Original line number Original line Diff line number Diff line
@@ -65,6 +65,7 @@
#include <linux/vmalloc.h>
#include <linux/vmalloc.h>


#include "mvm.h"
#include "mvm.h"
#include "fw-dbg.h"
#include "sta.h"
#include "sta.h"
#include "iwl-io.h"
#include "iwl-io.h"
#include "debugfs.h"
#include "debugfs.h"
Loading