linux/drivers/net/wireless/mediatek/mt7601u/dma.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2014 Felix Fietkau <[email protected]>
 * Copyright (C) 2015 Jakub Kicinski <[email protected]>
 */

#ifndef __MT7601U_DMA_H
#define __MT7601U_DMA_H

#include <asm/unaligned.h>
#include <linux/skbuff.h>

#define MT_DMA_HDR_LEN
#define MT_RX_INFO_LEN
#define MT_FCE_INFO_LEN
#define MT_DMA_HDRS

/* Common Tx DMA descriptor fields */
#define MT_TXD_INFO_LEN
#define MT_TXD_INFO_D_PORT
#define MT_TXD_INFO_TYPE

enum mt76_msg_port {};

enum mt76_info_type {};

/* Tx DMA packet specific flags */
#define MT_TXD_PKT_INFO_NEXT_VLD
#define MT_TXD_PKT_INFO_TX_BURST
#define MT_TXD_PKT_INFO_80211
#define MT_TXD_PKT_INFO_TSO
#define MT_TXD_PKT_INFO_CSO
#define MT_TXD_PKT_INFO_WIV
#define MT_TXD_PKT_INFO_QSEL

enum mt76_qsel {};

/* Tx DMA MCU command specific flags */
#define MT_TXD_CMD_INFO_SEQ
#define MT_TXD_CMD_INFO_TYPE

static inline int mt7601u_dma_skb_wrap(struct sk_buff *skb,
				       enum mt76_msg_port d_port,
				       enum mt76_info_type type, u32 flags)
{}

static inline int
mt7601u_dma_skb_wrap_pkt(struct sk_buff *skb, enum mt76_qsel qsel, u32 flags)
{}

/* Common Rx DMA descriptor fields */
#define MT_RXD_INFO_LEN
#define MT_RXD_INFO_PCIE_INTR
#define MT_RXD_INFO_QSEL
#define MT_RXD_INFO_PORT
#define MT_RXD_INFO_TYPE

/* Rx DMA packet specific flags */
#define MT_RXD_PKT_INFO_UDP_ERR
#define MT_RXD_PKT_INFO_TCP_ERR
#define MT_RXD_PKT_INFO_IP_ERR
#define MT_RXD_PKT_INFO_PKT_80211
#define MT_RXD_PKT_INFO_L3L4_DONE
#define MT_RXD_PKT_INFO_MAC_LEN

/* Rx DMA MCU command specific flags */
#define MT_RXD_CMD_INFO_SELF_GEN
#define MT_RXD_CMD_INFO_CMD_SEQ
#define MT_RXD_CMD_INFO_EVT_TYPE

enum mt76_evt_type {};

#endif