X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_core%2Ftf_em.h;h=23591272bd33d4dbb39afb27aa61572332a48bd0;hb=0475c7770502cb4166b2577df3ff446af9d85515;hp=ae2e64dd7480355b2a6fd9e7681e55916e8ee43b;hpb=be19e7fe871af8e76dd98dd768f7e7defadfd5fe;p=dpdk.git diff --git a/drivers/net/bnxt/tf_core/tf_em.h b/drivers/net/bnxt/tf_core/tf_em.h index ae2e64dd74..23591272bd 100644 --- a/drivers/net/bnxt/tf_core/tf_em.h +++ b/drivers/net/bnxt/tf_core/tf_em.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2019-2020 Broadcom + * Copyright(c) 2019-2021 Broadcom * All rights reserved. */ @@ -9,21 +9,6 @@ #include "tf_core.h" #include "tf_session.h" -#ifdef TF_USE_SYSTEM_MEM -/** - * Select EEM sysmem mmap export to be done at init - * or on the first write to EEM. - */ -#define TF_EM_SYSMEM_DELAY_EXPORT 1 -#else -#define TF_EM_SYSMEM_DELAY_EXPORT 0 -#endif - -#define SUPPORT_CFA_HW_P4 1 -#define SUPPORT_CFA_HW_P58 0 -#define SUPPORT_CFA_HW_P59 0 -#define SUPPORT_CFA_HW_ALL 0 - #include "hcapi/hcapi_cfa_defs.h" #define TF_EM_MIN_ENTRIES (1 << 15) /* 32K */ @@ -85,13 +70,8 @@ /* * System memory always uses 4K pages */ -#ifdef TF_USE_SYSTEM_MEM -#define TF_EM_PAGE_SIZE (1 << TF_EM_PAGE_SIZE_4K) -#define TF_EM_PAGE_ALIGNMENT (1 << TF_EM_PAGE_SIZE_4K) -#else #define TF_EM_PAGE_SIZE (1 << TF_EM_PAGE_SHIFT) #define TF_EM_PAGE_ALIGNMENT (1 << TF_EM_PAGE_SHIFT) -#endif /* * Used to build GFID: @@ -176,13 +156,9 @@ struct tf_em_cfg_parms { * * @ref tf_em_ext_common_unbind * - * @ref tf_em_ext_host_alloc - * - * @ref tf_em_ext_host_free + * @ref tf_em_ext_alloc * - * @ref tf_em_ext_system_alloc - * - * @ref tf_em_ext_system_free + * @ref tf_em_ext_free * * @ref tf_em_ext_common_free * @@ -382,7 +358,7 @@ int tf_em_ext_free(struct tf *tfp, struct tf_free_tbl_scope_parms *parms); /** - * Common free for external EEM using host or system memory + * Common free table scope for external EEM using host or system memory * * [in] tfp * Pointer to TruFlow handle @@ -398,7 +374,7 @@ int tf_em_ext_common_free(struct tf *tfp, struct tf_free_tbl_scope_parms *parms); /** - * Common alloc for external EEM using host or system memory + * Common alloc table scope for external EEM using host or system memory * * [in] tfp * Pointer to TruFlow handle @@ -412,6 +388,21 @@ int tf_em_ext_common_free(struct tf *tfp, */ int tf_em_ext_common_alloc(struct tf *tfp, struct tf_alloc_tbl_scope_parms *parms); +/** + * Map a set of parifs to a set of EEM base addresses (table scope) + * + * [in] tfp + * Pointer to TruFlow handle + * + * [in] parms + * Pointer to input parameters + * + * Returns: + * 0 - Success + * -EINVAL - Parameter error + */ +int tf_em_ext_map_tbl_scope(struct tf *tfp, + struct tf_map_tbl_scope_parms *parms); /** * Allocate External Tbl entry from the scope pool.