6f2dc9c0b4
Now that we have the internal tag, let's avoid confusion with exported symbols in common drivers that were using the experimental tag as a workaround. There is also no need to put internal API symbols in the public stable ABI. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Ray Kinsella <mdr@ashroe.eu>
65 lines
1.2 KiB
C
65 lines
1.2 KiB
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
|
|
*/
|
|
__rte_internal
|
|
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
|
|
*/
|
|
__rte_internal
|
|
int
|
|
cpt_pmd_ops_helper_get_mlen_sg_mode(void);
|
|
|
|
/*
|
|
* Get size of meta buffer to be allocated for asymmetric crypto operations
|
|
*
|
|
* @return
|
|
* - length
|
|
*/
|
|
__rte_internal
|
|
int
|
|
cpt_pmd_ops_helper_asym_get_mlen(void);
|
|
|
|
/*
|
|
* Initialize ECC FMUL precomputed table
|
|
*
|
|
* @param
|
|
* - pointer to fpm_table iova address
|
|
*
|
|
* @return
|
|
* - 0 on success, negative on error
|
|
*/
|
|
__rte_internal
|
|
int cpt_fpm_init(uint64_t *fpm_table_iova);
|
|
|
|
/*
|
|
* Clear ECC FMUL precomputed table
|
|
*/
|
|
__rte_internal
|
|
void cpt_fpm_clear(void);
|
|
|
|
#endif /* _CPT_PMD_OPS_HELPER_H_ */
|