wifi: mt76: Add mt76_dma_get_rxdmad_c_buf utility routione

Introduce mt76_dma_get_rxdmad_c_buf routine to process packets received
by HW-RRO v3.1 module.
This is a preliminary patch to introduce SW path for HW-RRO v3.1 module
available on MT7992 chipset.

Co-developed-by: Rex Lu <[email protected]>
Signed-off-by: Rex Lu <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2025-09-04 19:09:11 +02:00
committed by Felix Fietkau
parent d82330a9d0
commit 0a32ae3cc2
3 changed files with 78 additions and 3 deletions
+15
View File
@@ -58,6 +58,21 @@ struct mt76_wed_rro_desc {
__le32 buf1;
} __packed __aligned(4);
/* data1 */
#define RRO_DATA1_LS_MASK BIT(30)
#define RRO_DATA1_SDL0_MASK GENMASK(29, 16)
/* data2 */
#define RRO_DATA2_RX_TOKEN_ID_MASK GENMASK(31, 16)
#define RRO_DATA2_IND_REASON_MASK GENMASK(15, 12)
/* data3 */
#define RRO_DATA3_MAGIC_CNT_MASK GENMASK(31, 28)
struct mt76_rro_rxdmad_c {
__le32 data0;
__le32 data1;
__le32 data2;
__le32 data3;
};
enum mt76_qsel {
MT_QSEL_MGMT,
MT_QSEL_HCCA,