xref: /dpdk/drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.h (revision dd0191d5e70d0e65a7f041a88af480fc673160e1)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2023-2024 Broadcom
3  * All rights reserved.
4  */
5 
6 #ifndef _BNXT_ULP_TF_H_
7 #define _BNXT_ULP_TF_H_
8 
9 #include "bnxt.h"
10 #include <inttypes.h>
11 #include "ulp_template_db_enum.h"
12 
13 struct tf *
14 bnxt_ulp_bp_tfp_get(struct bnxt *bp, enum bnxt_ulp_session_type type);
15 
16 struct tf *
17 bnxt_get_tfp_session(struct bnxt *bp, enum bnxt_session_type type);
18 
19 /* Function to set the tfp session details in the ulp context. */
20 int32_t
21 bnxt_ulp_cntxt_tfp_set(struct bnxt_ulp_context *ulp,
22 		       enum bnxt_ulp_session_type s_type,
23 		       struct tf *tfp);
24 
25 /* Function to get the tfp session details from ulp context. */
26 struct tf *
27 bnxt_ulp_cntxt_tfp_get(struct bnxt_ulp_context *ulp,
28 		       enum bnxt_ulp_session_type s_type);
29 #endif
30