X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_core%2Ftf_util.h;h=4225c756f62915905b8191cafa3b54fb62fe9911;hb=7100b0e5511e58269498900aea30bc03e15ba2fd;hp=ad8edaf301a4963a685d569bacfc553b3741bf97;hpb=48d3dff2b98680c6315593e8b6495b64e678b004;p=dpdk.git diff --git a/drivers/net/bnxt/tf_core/tf_util.h b/drivers/net/bnxt/tf_core/tf_util.h index ad8edaf301..4225c756f6 100644 --- a/drivers/net/bnxt/tf_core/tf_util.h +++ b/drivers/net/bnxt/tf_core/tf_util.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2014-2019 Broadcom + * Copyright(c) 2014-2021 Broadcom * All rights reserved. */ @@ -7,6 +7,7 @@ #define _TF_UTIL_H_ #include "tf_core.h" +#include "tf_device.h" /** * Helper function converting direction to text string @@ -63,4 +64,35 @@ const char *tf_tbl_type_2_str(enum tf_tbl_type tbl_type); */ const char *tf_em_tbl_type_2_str(enum tf_em_tbl_type em_type); +/** + * Helper function converting device module type and module type to + * text string. + * + * [in] dm_type + * Device Module type + * + * [in] mod_type + * Module specific type + * + * Returns: + * Pointer to a char string holding the string for the EM type + */ +const char *tf_device_module_type_subtype_2_str + (enum tf_device_module_type dm_type, + uint16_t mod_type); + +/** + * Helper function converting device module type to text string + * + * [in] dm_type + * Device Module type + * + * [in] mod_type + * Module specific type + * + * Returns: + * Pointer to a char string holding the string for the EM type + */ +const char *tf_device_module_type_2_str(enum tf_device_module_type dm_type); + #endif /* _TF_UTIL_H_ */