X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_core%2Ftf_tbl.h;h=b175573457ba5a35701c9ab93626aa8ab0223f0b;hb=77805a17a3e082f1ae1366ea59f61035985446cc;hp=7a54436786a602f5acabb54992a7fabad2410269;hpb=ae2ebb98405aa0bbd9b5fc68ae14eeab32a143cb;p=dpdk.git diff --git a/drivers/net/bnxt/tf_core/tf_tbl.h b/drivers/net/bnxt/tf_core/tf_tbl.h index 7a54436786..b175573457 100644 --- a/drivers/net/bnxt/tf_core/tf_tbl.h +++ b/drivers/net/bnxt/tf_core/tf_tbl.h @@ -7,46 +7,11 @@ #define _TF_TBL_H_ #include -#include "stack.h" - -enum tf_pg_tbl_lvl { - PT_LVL_0, - PT_LVL_1, - PT_LVL_2, - PT_LVL_MAX -}; - -enum tf_em_table_type { - KEY0_TABLE, - KEY1_TABLE, - RECORD_TABLE, - EFC_TABLE, - MAX_TABLE -}; - -struct tf_em_page_tbl { - uint32_t pg_count; - uint32_t pg_size; - void **pg_va_tbl; - uint64_t *pg_pa_tbl; -}; -struct tf_em_table { - int type; - uint32_t num_entries; - uint16_t ctx_id; - uint32_t entry_size; - int num_lvl; - uint32_t page_cnt[PT_LVL_MAX]; - uint64_t num_data_pages; - void *l0_addr; - uint64_t l0_dma_addr; - struct tf_em_page_tbl pg_tbl[PT_LVL_MAX]; -}; +#include "tf_core.h" +#include "stack.h" -struct tf_em_ctx_mem_info { - struct tf_em_table em_tables[MAX_TABLE]; -}; +struct tf_session; /** table scope control block content */ struct tf_em_caps { @@ -70,18 +35,14 @@ struct tf_em_caps { struct tf_tbl_scope_cb { uint32_t tbl_scope_id; int index; - struct tf_em_ctx_mem_info em_ctx_info[TF_DIR_MAX]; + struct hcapi_cfa_em_ctx_mem_info em_ctx_info[TF_DIR_MAX]; struct tf_em_caps em_caps[TF_DIR_MAX]; struct stack ext_act_pool[TF_DIR_MAX]; uint32_t *ext_act_pool_mem[TF_DIR_MAX]; }; -/** - * Hardware Page sizes supported for EEM: - * 4K, 8K, 64K, 256K, 1M, 2M, 4M, 1G. - * - * Round-down other page sizes to the lower hardware page - * size supported. +/** Hardware Page sizes supported for EEM: 4K, 8K, 64K, 256K, 1M, 2M, 4M, 1G. + * Round-down other page sizes to the lower hardware page size supported. */ #define TF_EM_PAGE_SIZE_4K 12 #define TF_EM_PAGE_SIZE_8K 13