linux/drivers/crypto/intel/qat/qat_common/icp_qat_fw.h

/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
/* Copyright(c) 2014 - 2020 Intel Corporation */
#ifndef _ICP_QAT_FW_H_
#define _ICP_QAT_FW_H_
#include <linux/types.h>
#include "icp_qat_hw.h"

#define QAT_FIELD_SET(flags, val, bitpos, mask)

#define QAT_FIELD_GET(flags, bitpos, mask)

#define ICP_QAT_FW_REQ_DEFAULT_SZ
#define ICP_QAT_FW_RESP_DEFAULT_SZ
#define ICP_QAT_FW_COMN_ONE_BYTE_SHIFT
#define ICP_QAT_FW_COMN_SINGLE_BYTE_MASK
#define ICP_QAT_FW_NUM_LONGWORDS_1
#define ICP_QAT_FW_NUM_LONGWORDS_2
#define ICP_QAT_FW_NUM_LONGWORDS_3
#define ICP_QAT_FW_NUM_LONGWORDS_4
#define ICP_QAT_FW_NUM_LONGWORDS_5
#define ICP_QAT_FW_NUM_LONGWORDS_6
#define ICP_QAT_FW_NUM_LONGWORDS_7
#define ICP_QAT_FW_NUM_LONGWORDS_10
#define ICP_QAT_FW_NUM_LONGWORDS_13
#define ICP_QAT_FW_NULL_REQ_SERV_ID

enum icp_qat_fw_comn_resp_serv_id {};

enum icp_qat_fw_comn_request_id {};

struct icp_qat_fw_comn_req_hdr_cd_pars {};

struct icp_qat_fw_comn_req_mid {};

struct icp_qat_fw_comn_req_cd_ctrl {};

struct icp_qat_fw_comn_req_hdr {};

struct icp_qat_fw_comn_req_rqpars {};

struct icp_qat_fw_comn_req {};

struct icp_qat_fw_comn_error {};

struct icp_qat_fw_comn_resp_hdr {};

struct icp_qat_fw_comn_resp {};

#define ICP_QAT_FW_COMN_REQ_FLAG_SET
#define ICP_QAT_FW_COMN_REQ_FLAG_CLR
#define ICP_QAT_FW_COMN_VALID_FLAG_BITPOS
#define ICP_QAT_FW_COMN_VALID_FLAG_MASK
#define ICP_QAT_FW_COMN_HDR_RESRVD_FLD_MASK
#define ICP_QAT_FW_COMN_CNV_FLAG_BITPOS
#define ICP_QAT_FW_COMN_CNV_FLAG_MASK
#define ICP_QAT_FW_COMN_CNVNR_FLAG_BITPOS
#define ICP_QAT_FW_COMN_CNVNR_FLAG_MASK

#define ICP_QAT_FW_COMN_OV_SRV_TYPE_GET(icp_qat_fw_comn_req_hdr_t)

#define ICP_QAT_FW_COMN_OV_SRV_TYPE_SET(icp_qat_fw_comn_req_hdr_t, val)

#define ICP_QAT_FW_COMN_OV_SRV_CMD_ID_GET(icp_qat_fw_comn_req_hdr_t)

#define ICP_QAT_FW_COMN_OV_SRV_CMD_ID_SET(icp_qat_fw_comn_req_hdr_t, val)

#define ICP_QAT_FW_COMN_HDR_VALID_FLAG_GET(hdr_t)

#define ICP_QAT_FW_COMN_HDR_CNVNR_FLAG_GET(hdr_flags)

#define ICP_QAT_FW_COMN_HDR_CNVNR_FLAG_SET(hdr_t, val)

#define ICP_QAT_FW_COMN_HDR_CNV_FLAG_GET(hdr_flags)

#define ICP_QAT_FW_COMN_HDR_CNV_FLAG_SET(hdr_t, val)

#define ICP_QAT_FW_COMN_HDR_VALID_FLAG_SET(hdr_t, val)

#define ICP_QAT_FW_COMN_VALID_FLAG_GET(hdr_flags)

#define ICP_QAT_FW_COMN_HDR_RESRVD_FLD_GET(hdr_flags)

#define ICP_QAT_FW_COMN_VALID_FLAG_SET(hdr_t, val)

#define ICP_QAT_FW_COMN_HDR_FLAGS_BUILD(valid)

#define QAT_COMN_PTR_TYPE_BITPOS
#define QAT_COMN_PTR_TYPE_MASK
#define QAT_COMN_CD_FLD_TYPE_BITPOS
#define QAT_COMN_CD_FLD_TYPE_MASK
#define QAT_COMN_PTR_TYPE_FLAT
#define QAT_COMN_PTR_TYPE_SGL
#define QAT_COMN_CD_FLD_TYPE_64BIT_ADR
#define QAT_COMN_CD_FLD_TYPE_16BYTE_DATA

#define ICP_QAT_FW_COMN_FLAGS_BUILD(cdt, ptr)

#define ICP_QAT_FW_COMN_PTR_TYPE_GET(flags)

#define ICP_QAT_FW_COMN_CD_FLD_TYPE_GET(flags)

#define ICP_QAT_FW_COMN_PTR_TYPE_SET(flags, val)

#define ICP_QAT_FW_COMN_CD_FLD_TYPE_SET(flags, val)

#define ICP_QAT_FW_COMN_NEXT_ID_BITPOS
#define ICP_QAT_FW_COMN_NEXT_ID_MASK
#define ICP_QAT_FW_COMN_CURR_ID_BITPOS
#define ICP_QAT_FW_COMN_CURR_ID_MASK

#define ICP_QAT_FW_COMN_NEXT_ID_GET(cd_ctrl_hdr_t)

#define ICP_QAT_FW_COMN_NEXT_ID_SET(cd_ctrl_hdr_t, val)

#define ICP_QAT_FW_COMN_CURR_ID_GET(cd_ctrl_hdr_t)

#define ICP_QAT_FW_COMN_CURR_ID_SET(cd_ctrl_hdr_t, val)

#define QAT_COMN_RESP_CRYPTO_STATUS_BITPOS
#define QAT_COMN_RESP_CRYPTO_STATUS_MASK
#define QAT_COMN_RESP_PKE_STATUS_BITPOS
#define QAT_COMN_RESP_PKE_STATUS_MASK
#define QAT_COMN_RESP_CMP_STATUS_BITPOS
#define QAT_COMN_RESP_CMP_STATUS_MASK
#define QAT_COMN_RESP_XLAT_STATUS_BITPOS
#define QAT_COMN_RESP_XLAT_STATUS_MASK
#define QAT_COMN_RESP_CMP_END_OF_LAST_BLK_BITPOS
#define QAT_COMN_RESP_CMP_END_OF_LAST_BLK_MASK

#define ICP_QAT_FW_COMN_RESP_STATUS_BUILD(crypto, comp, xlat, eolb)

#define ICP_QAT_FW_COMN_RESP_CRYPTO_STAT_GET(status)

#define ICP_QAT_FW_COMN_RESP_CMP_STAT_GET(status)

#define ICP_QAT_FW_COMN_RESP_XLAT_STAT_GET(status)

#define ICP_QAT_FW_COMN_RESP_CMP_END_OF_LAST_BLK_FLAG_GET(status)

#define ICP_QAT_FW_COMN_STATUS_FLAG_OK
#define ICP_QAT_FW_COMN_STATUS_FLAG_ERROR
#define ICP_QAT_FW_COMN_STATUS_CMP_END_OF_LAST_BLK_FLAG_CLR
#define ICP_QAT_FW_COMN_STATUS_CMP_END_OF_LAST_BLK_FLAG_SET
#define ERR_CODE_NO_ERROR
#define ERR_CODE_INVALID_BLOCK_TYPE
#define ERR_CODE_NO_MATCH_ONES_COMP
#define ERR_CODE_TOO_MANY_LEN_OR_DIS
#define ERR_CODE_INCOMPLETE_LEN
#define ERR_CODE_RPT_LEN_NO_FIRST_LEN
#define ERR_CODE_RPT_GT_SPEC_LEN
#define ERR_CODE_INV_LIT_LEN_CODE_LEN
#define ERR_CODE_INV_DIS_CODE_LEN
#define ERR_CODE_INV_LIT_LEN_DIS_IN_BLK
#define ERR_CODE_DIS_TOO_FAR_BACK
#define ERR_CODE_OVERFLOW_ERROR
#define ERR_CODE_SOFT_ERROR
#define ERR_CODE_FATAL_ERROR
#define ERR_CODE_SSM_ERROR
#define ERR_CODE_ENDPOINT_ERROR

enum icp_qat_fw_slice {};
#endif