numam-dpdk/drivers/common/cpt/cpt_pmd_ops_helper.h
Anoob Joseph 8846a756eb common/cpt: add PMD ops helper functions
Adding pmd ops helper functions. Control path accessed APIs would be
added as helper functions. Adding microcode defined macros etc as
dependencies to the helper functions.

Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Signed-off-by: Murthy NSSR <nidadavolu.murthy@caviumnetworks.com>
Signed-off-by: Nithin Dabilpuram <nithin.dabilpuram@caviumnetworks.com>
Signed-off-by: Ragothaman Jayaraman <rjayaraman@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Tejasree Kondoj <kondoj.tejasree@caviumnetworks.com>
2018-10-17 12:20:06 +02:00

35 lines
736 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Cavium, Inc
*/
#ifndef _CPT_PMD_OPS_HELPER_H_
#define _CPT_PMD_OPS_HELPER_H_
/*
* This file defines the agreement between the common layer and the individual
* crypto drivers for OCTEON TX series. Control path in otx* directory can
* directly call functions declared here.
*/
/*
* Get meta length required when operating in direct mode (single buffer
* in-place)
*
* @return
* - length
*/
int32_t
cpt_pmd_ops_helper_get_mlen_direct_mode(void);
/*
* Get size of contiguous meta buffer to be allocated when working in scatter
* gather mode.
*
* @return
* - length
*/
int
cpt_pmd_ops_helper_get_mlen_sg_mode(void);
#endif /* _CPT_PMD_OPS_HELPER_H_ */