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

Commit c333bd4a authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Ian Maund
Browse files

wil6210: map MAC timer for packet lifetime into debugfs



expose reading RGF_MAC_MTRL_COUNTER_0 in debugfs

Change-Id: Iac9fcb93521851aa229e33a49cbbcf3827b91383
Signed-off-by: default avatarDedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Git-commit: 91b775edf7ad54f849895e021677f7d9c15a9f5d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git


Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 3511ae2a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1017,6 +1017,9 @@ int wil6210_debugfs_init(struct wil6210_priv *wil)
				   HOSTADDR(RGF_DMA_EP_MISC_ICR));
	wil6210_debugfs_create_pseudo_ISR(wil, dbg);
	wil6210_debugfs_create_ITR_CNT(wil, dbg);
	wil_debugfs_create_iomem_x32("MAC_MTRL_COUNTER_0", S_IRUGO, dbg,
				     wil->csr +
				     HOSTADDR(RGF_MAC_MTRL_COUNTER_0));

	wil_debugfs_create_iomem_x32("RGF_USER_USAGE_1", S_IRUGO, dbg,
				     wil->csr +
+3 −0
Original line number Diff line number Diff line
@@ -133,6 +133,9 @@ struct RGF_ICR {
#define RGF_HP_CTRL			(0x88265c)
#define RGF_PCIE_LOS_COUNTER_CTL	(0x882dc4)

/* MAC timer, usec, for packet lifetime */
#define RGF_MAC_MTRL_COUNTER_0		(0x886aa8)

/* popular locations */
#define HOST_MBOX   HOSTADDR(RGF_USER_USER_SCRATCH_PAD)
#define HOST_SW_INT (HOSTADDR(RGF_USER_USER_ICR) + \