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,
40 * @brief ecore_init_hwfn_allocate - Allocate RT array, Store 'values' ptrs.
45 * @return _ecore_status_t
47 enum _ecore_status_t ecore_init_alloc(struct ecore_hwfn *p_hwfn);
50 * @brief ecore_init_hwfn_deallocate
55 void ecore_init_free(struct ecore_hwfn *p_hwfn);
59 * @brief ecore_init_clear_rt_data - Clears the runtime init array.
64 void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn);
67 * @brief ecore_init_store_rt_reg - Store a configuration value in the RT array.
74 void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn,
78 #define STORE_RT_REG(hwfn, offset, val) \
79 ecore_init_store_rt_reg(hwfn, offset, val)
81 #define OVERWRITE_RT_REG(hwfn, offset, val) \
82 ecore_init_store_rt_reg(hwfn, offset, val)
94 void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn,
99 #define STORE_RT_REG_AGG(hwfn, offset, val) \
100 ecore_init_store_rt_agg(hwfn, offset, (u32 *)&val, sizeof(val))
105 * Initialize GTT global windows and set admin window
106 * related params of GTT/PTT to default values.
110 void ecore_gtt_init(struct ecore_hwfn *p_hwfn,
111 struct ecore_ptt *p_ptt);
112 #endif /* __ECORE_INIT_OPS__ */