linux/drivers/net/ethernet/huawei/hinic/hinic_hw_qp_ctxt.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Huawei HiNIC PCI Express Linux driver
 * Copyright(c) 2017 Huawei Technologies Co., Ltd
 */

#ifndef HINIC_HW_QP_CTXT_H
#define HINIC_HW_QP_CTXT_H

#include <linux/types.h>

#include "hinic_hw_cmdq.h"

#define HINIC_SQ_CTXT_CEQ_ATTR_GLOBAL_SQ_ID_SHIFT
#define HINIC_SQ_CTXT_CEQ_ATTR_EN_SHIFT

#define HINIC_SQ_CTXT_CEQ_ATTR_GLOBAL_SQ_ID_MASK
#define HINIC_SQ_CTXT_CEQ_ATTR_EN_MASK

#define HINIC_SQ_CTXT_CEQ_ATTR_SET(val, member)

#define HINIC_SQ_CTXT_CI_IDX_SHIFT
#define HINIC_SQ_CTXT_CI_WRAPPED_SHIFT

#define HINIC_SQ_CTXT_CI_IDX_MASK
#define HINIC_SQ_CTXT_CI_WRAPPED_MASK

#define HINIC_SQ_CTXT_CI_SET(val, member)

#define HINIC_SQ_CTXT_WQ_PAGE_HI_PFN_SHIFT
#define HINIC_SQ_CTXT_WQ_PAGE_PI_SHIFT

#define HINIC_SQ_CTXT_WQ_PAGE_HI_PFN_MASK
#define HINIC_SQ_CTXT_WQ_PAGE_PI_MASK

#define HINIC_SQ_CTXT_WQ_PAGE_SET(val, member)

#define HINIC_SQ_CTXT_PREF_CACHE_THRESHOLD_SHIFT
#define HINIC_SQ_CTXT_PREF_CACHE_MAX_SHIFT
#define HINIC_SQ_CTXT_PREF_CACHE_MIN_SHIFT

#define HINIC_SQ_CTXT_PREF_CACHE_THRESHOLD_MASK
#define HINIC_SQ_CTXT_PREF_CACHE_MAX_MASK
#define HINIC_SQ_CTXT_PREF_CACHE_MIN_MASK

#define HINIC_SQ_CTXT_PREF_WQ_HI_PFN_SHIFT
#define HINIC_SQ_CTXT_PREF_CI_SHIFT

#define HINIC_SQ_CTXT_PREF_WQ_HI_PFN_MASK
#define HINIC_SQ_CTXT_PREF_CI_MASK

#define HINIC_SQ_CTXT_PREF_SET(val, member)

#define HINIC_SQ_CTXT_WQ_BLOCK_HI_PFN_SHIFT

#define HINIC_SQ_CTXT_WQ_BLOCK_HI_PFN_MASK

#define HINIC_SQ_CTXT_WQ_BLOCK_SET(val, member)

#define HINIC_RQ_CTXT_CEQ_ATTR_EN_SHIFT
#define HINIC_RQ_CTXT_CEQ_ATTR_WRAPPED_SHIFT

#define HINIC_RQ_CTXT_CEQ_ATTR_EN_MASK
#define HINIC_RQ_CTXT_CEQ_ATTR_WRAPPED_MASK

#define HINIC_RQ_CTXT_CEQ_ATTR_SET(val, member)

#define HINIC_RQ_CTXT_PI_IDX_SHIFT
#define HINIC_RQ_CTXT_PI_INTR_SHIFT

#define HINIC_RQ_CTXT_PI_IDX_MASK
#define HINIC_RQ_CTXT_PI_INTR_MASK

#define HINIC_RQ_CTXT_PI_SET(val, member)

#define HINIC_RQ_CTXT_WQ_PAGE_HI_PFN_SHIFT
#define HINIC_RQ_CTXT_WQ_PAGE_CI_SHIFT

#define HINIC_RQ_CTXT_WQ_PAGE_HI_PFN_MASK
#define HINIC_RQ_CTXT_WQ_PAGE_CI_MASK

#define HINIC_RQ_CTXT_WQ_PAGE_SET(val, member)

#define HINIC_RQ_CTXT_PREF_CACHE_THRESHOLD_SHIFT
#define HINIC_RQ_CTXT_PREF_CACHE_MAX_SHIFT
#define HINIC_RQ_CTXT_PREF_CACHE_MIN_SHIFT

#define HINIC_RQ_CTXT_PREF_CACHE_THRESHOLD_MASK
#define HINIC_RQ_CTXT_PREF_CACHE_MAX_MASK
#define HINIC_RQ_CTXT_PREF_CACHE_MIN_MASK

#define HINIC_RQ_CTXT_PREF_WQ_HI_PFN_SHIFT
#define HINIC_RQ_CTXT_PREF_CI_SHIFT

#define HINIC_RQ_CTXT_PREF_WQ_HI_PFN_MASK
#define HINIC_RQ_CTXT_PREF_CI_MASK

#define HINIC_RQ_CTXT_PREF_SET(val, member)

#define HINIC_RQ_CTXT_WQ_BLOCK_HI_PFN_SHIFT

#define HINIC_RQ_CTXT_WQ_BLOCK_HI_PFN_MASK

#define HINIC_RQ_CTXT_WQ_BLOCK_SET(val, member)

#define HINIC_SQ_CTXT_SIZE(num_sqs)

#define HINIC_RQ_CTXT_SIZE(num_rqs)

#define HINIC_WQ_PAGE_PFN_SHIFT
#define HINIC_WQ_BLOCK_PFN_SHIFT

#define HINIC_WQ_PAGE_PFN(page_addr)
#define HINIC_WQ_BLOCK_PFN(page_addr)

#define HINIC_Q_CTXT_MAX

enum hinic_qp_ctxt_type {};

struct hinic_qp_ctxt_header {};

struct hinic_sq_ctxt {};

struct hinic_rq_ctxt {};

struct hinic_clean_queue_ctxt {};

struct hinic_sq_ctxt_block {};

struct hinic_rq_ctxt_block {};

#endif