public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Shayne Chen <shayne.chen@mediatek.com>
To: Felix Fietkau <nbd@nbd.name>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	Lorenzo Bianconi <lorenzo@kernel.org>,
	Ryder Lee <ryder.lee@mediatek.com>,
	Evelyn Tsai <evelyn.tsai@mediatek.com>,
	Bo Jiao <Bo.Jiao@mediatek.com>,
	linux-mediatek <linux-mediatek@lists.infradead.org>,
	Shayne Chen <shayne.chen@mediatek.com>,
	Peter Chiu <chui-hao.chiu@mediatek.com>
Subject: [PATCH 06/10] wifi: mt76: connac: introduce unified event table
Date: Tue, 1 Nov 2022 00:39:56 +0800	[thread overview]
Message-ID: <20221031164000.17063-7-shayne.chen@mediatek.com> (raw)
In-Reply-To: <20221031164000.17063-1-shayne.chen@mediatek.com>

Add event IDs and related bit fields for unified event support.
This is a preliminary patch to add mt7996 chipset support.

Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
index 7f97d4b70e95..909b2ba67c11 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
@@ -993,6 +993,17 @@ enum {
 	MCU_EXT_EVENT_MURU_CTRL = 0x9f,
 };
 
+/* unified event table */
+enum {
+	MCU_UNI_EVENT_RESULT = 0x01,
+	MCU_UNI_EVENT_FW_LOG_2_HOST = 0x04,
+	MCU_UNI_EVENT_IE_COUNTDOWN = 0x09,
+	MCU_UNI_EVENT_RDD_REPORT = 0x11,
+};
+
+#define MCU_UNI_CMD_EVENT			BIT(1)
+#define MCU_UNI_CMD_UNSOLICITED_EVENT		BIT(2)
+
 enum {
 	MCU_Q_QUERY,
 	MCU_Q_SET,
-- 
2.25.1


  parent reply	other threads:[~2022-10-31 16:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 16:39 [PATCH 00/10] Add driver for MediaTek Wi-Fi 7 devices Shayne Chen
2022-10-31 16:39 ` [PATCH 01/10] wifi: mt76: extend aggr_stats for tri-band support Shayne Chen
2022-11-02 22:37   ` Lorenzo Bianconi
2022-11-07  7:00     ` Shayne Chen (陳軒丞)
2022-10-31 16:39 ` [PATCH 02/10] wifi: mt76: connac: rework macros for unified command Shayne Chen
2022-10-31 16:39 ` [PATCH 03/10] wifi: mt76: connac: update struct sta_rec_phy Shayne Chen
2022-10-31 16:39 ` [PATCH 04/10] wifi: mt76: connac: rework fields for larger bandwidth support in sta_rec_bf Shayne Chen
2022-10-31 16:39 ` [PATCH 05/10] wifi: mt76: connac: add more unified command IDs Shayne Chen
2022-10-31 16:39 ` Shayne Chen [this message]
2022-10-31 16:39 ` [PATCH 07/10] wifi: mt76: connac: add more bss info command tags Shayne Chen
2022-10-31 16:39 ` [PATCH 08/10] wifi: mt76: connac: add more starec " Shayne Chen
2022-11-09 12:03   ` Lorenzo Bianconi
2022-11-09 12:23     ` Lorenzo Bianconi
2022-11-09 12:46       ` shayne.chen
2022-10-31 16:39 ` [PATCH 09/10] wifi: mt76: connac: introduce helper for mt7996 chipset Shayne Chen
2022-10-31 16:40 ` [PATCH 10/10] wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices Shayne Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221031164000.17063-7-shayne.chen@mediatek.com \
    --to=shayne.chen@mediatek.com \
    --cc=Bo.Jiao@mediatek.com \
    --cc=chui-hao.chiu@mediatek.com \
    --cc=evelyn.tsai@mediatek.com \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=ryder.lee@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox