linux/drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie_ipc.h

/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2018 Quantenna Communications */

#ifndef _QTN_FMAC_PCIE_IPC_H_
#define _QTN_FMAC_PCIE_IPC_H_

#include <linux/types.h>

#include "shm_ipc_defs.h"

/* EP/RC status and flags */
#define QTN_BDA_PCIE_INIT
#define QTN_BDA_PCIE_RDY
#define QTN_BDA_FW_LOAD_RDY
#define QTN_BDA_FW_LOAD_DONE
#define QTN_BDA_FW_START
#define QTN_BDA_FW_RUN
#define QTN_BDA_FW_HOST_RDY
#define QTN_BDA_FW_TARGET_RDY
#define QTN_BDA_FW_TARGET_BOOT
#define QTN_BDA_FW_FLASH_BOOT
#define QTN_BDA_FW_QLINK_DONE
#define QTN_BDA_FW_HOST_LOAD
#define QTN_BDA_FW_BLOCK_DONE
#define QTN_BDA_FW_BLOCK_RDY
#define QTN_BDA_FW_EP_RDY
#define QTN_BDA_FW_BLOCK_END
#define QTN_BDA_FW_CONFIG
#define QTN_BDA_FW_RUNNING
#define QTN_BDA_PCIE_FAIL
#define QTN_BDA_FW_LOAD_FAIL

#define QTN_BDA_RCMODE
#define QTN_BDA_MSI
#define QTN_BDA_HOST_CALCMD
#define QTN_BDA_FLASH_PRESENT
#define QTN_BDA_FLASH_BOOT
#define QTN_BDA_XMIT_UBOOT
#define QTN_BDA_HOST_QLINK_DRV
#define QTN_BDA_TARGET_FBOOT_ERR
#define QTN_BDA_TARGET_FWLOAD_ERR
#define QTN_BDA_HOST_NOFW_ERR
#define QTN_BDA_HOST_MEMALLOC_ERR
#define QTN_BDA_HOST_MEMMAP_ERR
#define QTN_BDA_VER(x)
#define QTN_BDA_ERROR_MASK

/* registers and shmem address macros */
#if BITS_PER_LONG == 64
#define QTN_HOST_HI32(a)
#define QTN_HOST_LO32(a)
#define QTN_HOST_ADDR(h, l)
#elif BITS_PER_LONG == 32
#define QTN_HOST_HI32
#define QTN_HOST_LO32
#define QTN_HOST_ADDR
#else
#error Unexpected BITS_PER_LONG value
#endif

#define QTN_PCIE_BDA_VERSION

#define PCIE_BDA_NAMELEN

#define QTN_PCIE_RC_TX_QUEUE_LEN
#define QTN_PCIE_TX_VALID_PKT
#define QTN_PCIE_PKT_LEN_MASK

#define QTN_BD_EMPTY
#define QTN_BD_WRAP
#define QTN_BD_MASK_LEN
#define QTN_BD_MASK_OFFSET

#define QTN_GET_LEN(x)
#define QTN_GET_OFFSET(x)
#define QTN_SET_LEN(len)
#define QTN_SET_OFFSET(of)

#define RX_DONE_INTR_MSK

#define PCIE_DMA_OFFSET_ERROR
#define PCIE_DMA_OFFSET_ERROR_MASK

#define QTN_PCI_ENDIAN_DETECT_DATA
#define QTN_PCI_ENDIAN_REVERSE_DATA
#define QTN_PCI_ENDIAN_VALID_STATUS
#define QTN_PCI_ENDIAN_INVALID_STATUS
#define QTN_PCI_LITTLE_ENDIAN
#define QTN_PCI_BIG_ENDIAN

#define NBLOCKS(size, blksize)

#endif /* _QTN_FMAC_PCIE_IPC_H_ */