1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2018 Cavium, Inc 3 */ 4 5 #ifndef _CPT_PMD_OPS_HELPER_H_ 6 #define _CPT_PMD_OPS_HELPER_H_ 7 8 /* 9 * This file defines the agreement between the common layer and the individual 10 * crypto drivers for OCTEON TX series. Control path in otx* directory can 11 * directly call functions declared here. 12 */ 13 14 /* 15 * Get meta length required when operating in direct mode (single buffer 16 * in-place) 17 * 18 * @return 19 * - length 20 */ 21 22 int32_t 23 cpt_pmd_ops_helper_get_mlen_direct_mode(void); 24 25 /* 26 * Get size of contiguous meta buffer to be allocated when working in scatter 27 * gather mode. 28 * 29 * @return 30 * - length 31 */ 32 int 33 cpt_pmd_ops_helper_get_mlen_sg_mode(void); 34 #endif /* _CPT_PMD_OPS_HELPER_H_ */ 35