1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) 2016 - 2018 Cavium Inc. 3 * All rights reserved. 4 * www.cavium.com 5 */ 6 7 #ifndef __ECORE_CXT_API_H__ 8 #define __ECORE_CXT_API_H__ 9 10 struct ecore_hwfn; 11 12 struct ecore_cxt_info { 13 void *p_cxt; 14 u32 iid; 15 enum protocol_type type; 16 }; 17 18 #define MAX_TID_BLOCKS 512 19 struct ecore_tid_mem { 20 u32 tid_size; 21 u32 num_tids_per_block; 22 u32 waste; 23 u8 *blocks[MAX_TID_BLOCKS]; /* 4K */ 24 }; 25 26 /** 27 * @brief ecoreo_cid_get_cxt_info - Returns the context info for a specific cid 28 * 29 * 30 * @param p_hwfn 31 * @param p_info in/out 32 * 33 * @return enum _ecore_status_t 34 */ 35 enum _ecore_status_t ecore_cxt_get_cid_info(struct ecore_hwfn *p_hwfn, 36 struct ecore_cxt_info *p_info); 37 38 #endif 39