1 /* SPDX-License-Identifier: ISC */
3 * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
8 #define DMA_DUMMY_DATA ((void *)~0)
10 #define MT_RING_SIZE 0x10
12 #define MT_DMA_CTL_SD_LEN1 GENMASK(13, 0)
13 #define MT_DMA_CTL_LAST_SEC1 BIT(14)
14 #define MT_DMA_CTL_BURST BIT(15)
15 #define MT_DMA_CTL_SD_LEN0 GENMASK(29, 16)
16 #define MT_DMA_CTL_LAST_SEC0 BIT(30)
17 #define MT_DMA_CTL_DMA_DONE BIT(31)
19 #define MT_DMA_HDR_LEN 4
20 #define MT_RX_INFO_LEN 4
21 #define MT_FCE_INFO_LEN 4
22 #define MT_RX_RXWI_LEN 32
29 } __packed
__aligned(4);
38 enum mt76_mcu_evt_type
{
44 EVT_EVENT_CARRIER_DETECT_RSP
,
45 EVT_EVENT_DFS_DETECT_RSP
,
48 void mt76_dma_attach(struct mt76_dev
*dev
);
49 void mt76_dma_cleanup(struct mt76_dev
*dev
);