2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
9 #ifndef __ECORE_INIT_OPS__
10 #define __ECORE_INIT_OPS__
15 * @brief ecore_init_iro_array - init iro_arr.
20 void ecore_init_iro_array(struct ecore_dev *p_dev);
23 * @brief ecore_init_run - Run the init-sequence.
31 * @return _ecore_status_t
33 enum _ecore_status_t ecore_init_run(struct ecore_hwfn *p_hwfn,
34 struct ecore_ptt *p_ptt,
35 int phase, int phase_id, int modes);
38 * @brief ecore_init_hwfn_allocate - Allocate RT array, Store 'values' ptrs.
43 * @return _ecore_status_t
45 enum _ecore_status_t ecore_init_alloc(struct ecore_hwfn *p_hwfn);
48 * @brief ecore_init_hwfn_deallocate
53 void ecore_init_free(struct ecore_hwfn *p_hwfn);
56 * @brief ecore_init_clear_rt_data - Clears the runtime init array.
61 void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn);
64 * @brief ecore_init_store_rt_reg - Store a configuration value in the RT array.
71 void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn, u32 rt_offset, u32 val);
73 #define STORE_RT_REG(hwfn, offset, val) \
74 ecore_init_store_rt_reg(hwfn, offset, val)
76 #define OVERWRITE_RT_REG(hwfn, offset, val) \
77 ecore_init_store_rt_reg(hwfn, offset, val)
89 void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn,
90 u32 rt_offset, u32 *val, osal_size_t size);
92 #define STORE_RT_REG_AGG(hwfn, offset, val) \
93 ecore_init_store_rt_agg(hwfn, offset, (u32 *)&val, sizeof(val))
97 * Initialize GTT global windows and set admin window
98 * related params of GTT/PTT to default values.
102 void ecore_gtt_init(struct ecore_hwfn *p_hwfn);
103 #endif /* __ECORE_INIT_OPS__ */