linux/drivers/net/wireless/mediatek/mt76/mt76x02_dma.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (C) 2018 Lorenzo Bianconi <[email protected]>
 */

#ifndef __MT76x02_DMA_H
#define __MT76x02_DMA_H

#include "mt76x02.h"
#include "dma.h"

#define MT_TXD_INFO_LEN
#define MT_TXD_INFO_NEXT_VLD
#define MT_TXD_INFO_TX_BURST
#define MT_TXD_INFO_80211
#define MT_TXD_INFO_TSO
#define MT_TXD_INFO_CSO
#define MT_TXD_INFO_WIV
#define MT_TXD_INFO_QSEL
#define MT_TXD_INFO_DPORT
#define MT_TXD_INFO_TYPE

#define MT_RX_FCE_INFO_LEN
#define MT_RX_FCE_INFO_SELF_GEN
#define MT_RX_FCE_INFO_CMD_SEQ
#define MT_RX_FCE_INFO_EVT_TYPE
#define MT_RX_FCE_INFO_PCIE_INTR
#define MT_RX_FCE_INFO_QSEL
#define MT_RX_FCE_INFO_D_PORT
#define MT_RX_FCE_INFO_TYPE

/* MCU request message header  */
#define MT_MCU_MSG_LEN
#define MT_MCU_MSG_CMD_SEQ
#define MT_MCU_MSG_CMD_TYPE
#define MT_MCU_MSG_PORT
#define MT_MCU_MSG_TYPE
#define MT_MCU_MSG_TYPE_CMD

#define MT_RX_HEADROOM
#define MT76X02_RX_RING_SIZE

enum dma_msg_port {};

static inline bool
mt76x02_wait_for_wpdma(struct mt76_dev *dev, int timeout)
{}

int mt76x02_dma_init(struct mt76x02_dev *dev);
void mt76x02_dma_disable(struct mt76x02_dev *dev);

#endif /* __MT76x02_DMA_H */