2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
9 #ifndef __ECORE_CXT_API_H__
10 #define __ECORE_CXT_API_H__
14 struct ecore_cxt_info {
17 enum protocol_type type;
20 #define MAX_TID_BLOCKS 512
21 struct ecore_tid_mem {
23 u32 num_tids_per_block;
25 u8 *blocks[MAX_TID_BLOCKS]; /* 4K */
29 * @brief ecore_cxt_acquire - Acquire a new cid of a specific protocol type
35 * @return enum _ecore_status_t
37 enum _ecore_status_t ecore_cxt_acquire_cid(struct ecore_hwfn *p_hwfn,
38 enum protocol_type type,
42 * @brief ecoreo_cid_get_cxt_info - Returns the context info for a specific cid
46 * @param p_info in/out
48 * @return enum _ecore_status_t
50 enum _ecore_status_t ecore_cxt_get_cid_info(struct ecore_hwfn *p_hwfn,
51 struct ecore_cxt_info *p_info);
54 * @brief ecore_cxt_get_tid_mem_info
59 * @return enum _ecore_status_t
61 enum _ecore_status_t ecore_cxt_get_tid_mem_info(struct ecore_hwfn *p_hwfn,
62 struct ecore_tid_mem *p_info);