Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp361099rwb; Thu, 10 Nov 2022 01:44:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM4gJk+ihUj2u60TACAN7muMjJqyaom80LvVlF9+r6Xrzf0p4VMnU/oSagxAhS7joNnBJgm7 X-Received: by 2002:a17:906:8a54:b0:7ad:e517:1eb with SMTP id gx20-20020a1709068a5400b007ade51701ebmr45808383ejc.567.1668073472458; Thu, 10 Nov 2022 01:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668073472; cv=none; d=google.com; s=arc-20160816; b=UFiyN57SJf4856NP5SKEbuxf2zUP79I+2B95rCiOEAcIOTlQNkt4O/IEQvvVLyrZJT JzIF3CU2AkFCnu89rApe27OIrSxBBs+BGzWzcH0i6vFu+GaNrGlEkQoXFnkXuPRWQvoa gdSKOacW9iDUeYkKmwVfoF3BKVFDMEkaRTWHcl6uLF5T0UR2sOano1dWKdZLyRF0WHBG QAg5BBn0agIw3Be/r4b2KJ4raBlWFyXfEnVL5mj0AP10vQPcyPwYDC/lr5x5j1idcrXT hdxavDNjPWjxlPa6BAwnj0rbTOWeBbj+Ersr8RbMt6a6tHTTDTQmeK7dWfA0wxI3JAL2 +vrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3F3HImJCHmVaqvOnCxjgMFNvZD+TONuV9hSruXhWSQQ=; b=yUSgLSUY78VNUfdkhNWtTUVd1S0LDYEhZ6kO38LDNElfnLuxGCG1zgbTLmxegAYBB9 ij+DO/uN2cOS5Vn4lvn26tmTJwVW2qLNCZDcJMg7I5ilUrINo7wWrvvlxUEHHo2QMAhr WPM+Cwwi45SyH2C82bafcWvuNGWFtx5h8YV7vOQzhQoSqOH9e6ss5PgMnvaW0mZsEAJb UMNyvvBgsCMmP4K2wgLUTFoxSrUC97XQkzWOYd8T53ziSPszEqukWk1SfQdWZIuPp5PA BYek8JUgcXJlS4ygxb9LemMS+xyBZ98JNWwgtekX3n4cBRA7CW2UCl7SYEHGoduth+sJ EsJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SRfhfE7D; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a50eb49000000b00458ea275c22si17974115edp.325.2022.11.10.01.44.14; Thu, 10 Nov 2022 01:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SRfhfE7D; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbiKJJhM (ORCPT + 66 others); Thu, 10 Nov 2022 04:37:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiKJJhG (ORCPT ); Thu, 10 Nov 2022 04:37:06 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525EB69DCD for ; Thu, 10 Nov 2022 01:37:04 -0800 (PST) X-UUID: 774be310011e4d139d36601d06f30cf1-20221110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=3F3HImJCHmVaqvOnCxjgMFNvZD+TONuV9hSruXhWSQQ=; b=SRfhfE7DHrt8uX2QNiKLo2UOwMXexTmdfkxlRaeNs0ZXEfXYdV2j7nvXOq7tXtRb1iekUTu67x3/Og5sGk5KouG1mVU9LZSGbijVo/yL5Q52ODtsiBiA7WK0qfsDpvz7zRT/216UtqpUJMACFuFdQPI614J2V5iKpcwpWKOJLhQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:86fa0155-7786-4fce-8035-d70d02791d7c,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:57fe2c5d-100c-4555-952b-a62c895efded,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 774be310011e4d139d36601d06f30cf1-20221110 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 649637006; Thu, 10 Nov 2022 17:36:52 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 10 Nov 2022 17:36:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 10 Nov 2022 17:36:51 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Shayne Chen , Peter Chiu Subject: [PATCH v2 5/9] wifi: mt76: connac: introduce unified event table Date: Thu, 10 Nov 2022 17:35:21 +0800 Message-ID: <20221110093525.29649-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221110093525.29649-1-shayne.chen@mediatek.com> References: <20221110093525.29649-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 Signed-off-by: Peter Chiu Signed-off-by: Shayne Chen --- 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 f8f974f36554..91f2f1d7ca7e 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