ad8edaf301a4963a685d569bacfc553b3741bf97
[dpdk.git] / drivers / net / bnxt / tf_core / tf_util.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2014-2019 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _TF_UTIL_H_
7 #define _TF_UTIL_H_
8
9 #include "tf_core.h"
10
11 /**
12  * Helper function converting direction to text string
13  *
14  * [in] dir
15  *   Receive or transmit direction identifier
16  *
17  * Returns:
18  *   Pointer to a char string holding the string for the direction
19  */
20 const char *tf_dir_2_str(enum tf_dir dir);
21
22 /**
23  * Helper function converting identifier to text string
24  *
25  * [in] id_type
26  *   Identifier type
27  *
28  * Returns:
29  *   Pointer to a char string holding the string for the identifier
30  */
31 const char *tf_ident_2_str(enum tf_identifier_type id_type);
32
33 /**
34  * Helper function converting tcam type to text string
35  *
36  * [in] tcam_type
37  *   TCAM type
38  *
39  * Returns:
40  *   Pointer to a char string holding the string for the tcam
41  */
42 const char *tf_tcam_tbl_2_str(enum tf_tcam_tbl_type tcam_type);
43
44 /**
45  * Helper function converting tbl type to text string
46  *
47  * [in] tbl_type
48  *   Table type
49  *
50  * Returns:
51  *   Pointer to a char string holding the string for the table type
52  */
53 const char *tf_tbl_type_2_str(enum tf_tbl_type tbl_type);
54
55 /**
56  * Helper function converting em tbl type to text string
57  *
58  * [in] em_type
59  *   EM type
60  *
61  * Returns:
62  *   Pointer to a char string holding the string for the EM type
63  */
64 const char *tf_em_tbl_type_2_str(enum tf_em_tbl_type em_type);
65
66 #endif /* _TF_UTIL_H_ */