linux/drivers/crypto/marvell/octeontx2/cn10k_cpt.h

/* SPDX-License-Identifier: GPL-2.0-only
 * Copyright (C) 2021 Marvell.
 */
#ifndef __CN10K_CPT_H
#define __CN10K_CPT_H

#include "otx2_cpt_common.h"
#include "otx2_cptpf.h"
#include "otx2_cptvf.h"

#define CN10K_CPT_HW_CTX_SIZE

cn10k_cpt_hw_ctx;

struct cn10k_cpt_errata_ctx {};

static inline u8 cn10k_cpt_get_compcode(union otx2_cpt_res_s *result)
{}

static inline u8 cn10k_cpt_get_uc_compcode(union otx2_cpt_res_s *result)
{}

static inline u8 otx2_cpt_get_compcode(union otx2_cpt_res_s *result)
{}

static inline u8 otx2_cpt_get_uc_compcode(union otx2_cpt_res_s *result)
{}

int cn10k_cptpf_lmtst_init(struct otx2_cptpf_dev *cptpf);
int cn10k_cptvf_lmtst_init(struct otx2_cptvf_dev *cptvf);
void cn10k_cpt_ctx_flush(struct pci_dev *pdev, u64 cptr, bool inval);
int cn10k_cpt_hw_ctx_init(struct pci_dev *pdev,
			  struct cn10k_cpt_errata_ctx *er_ctx);
void cn10k_cpt_hw_ctx_clear(struct pci_dev *pdev,
			    struct cn10k_cpt_errata_ctx *er_ctx);
void cn10k_cpt_hw_ctx_set(union cn10k_cpt_hw_ctx *hctx, u16 ctx_sz);
void cptvf_hw_ops_get(struct otx2_cptvf_dev *cptvf);

#endif /* __CN10K_CPTLF_H */