1 /* QLogic qed NIC Driver
2 * Copyright (c) 2015 QLogic Corporation
4 * This software is available under the terms of the GNU General Public License
5 * (GPL) Version 2, available from the file COPYING in the main directory of
9 #ifndef _QED_INIT_OPS_H
10 #define _QED_INIT_OPS_H
12 #include <linux/types.h>
13 #include <linux/slab.h>
17 * @brief qed_init_iro_array - init iro_arr.
22 void qed_init_iro_array(struct qed_dev
*cdev
);
25 * @brief qed_init_run - Run the init-sequence.
33 * @return _qed_status_t
35 int qed_init_run(struct qed_hwfn
*p_hwfn
,
36 struct qed_ptt
*p_ptt
,
42 * @brief qed_init_hwfn_allocate - Allocate RT array, Store 'values' ptrs.
47 * @return _qed_status_t
49 int qed_init_alloc(struct qed_hwfn
*p_hwfn
);
52 * @brief qed_init_hwfn_deallocate
57 void qed_init_free(struct qed_hwfn
*p_hwfn
);
60 * @brief qed_init_clear_rt_data - Clears the runtime init array.
65 void qed_init_clear_rt_data(struct qed_hwfn
*p_hwfn
);
68 * @brief qed_init_store_rt_reg - Store a configuration value in the RT array.
75 void qed_init_store_rt_reg(struct qed_hwfn
*p_hwfn
,
79 #define STORE_RT_REG(hwfn, offset, val) \
80 qed_init_store_rt_reg(hwfn, offset, val)
82 #define OVERWRITE_RT_REG(hwfn, offset, val) \
83 qed_init_store_rt_reg(hwfn, offset, val)
94 void qed_init_store_rt_agg(struct qed_hwfn
*p_hwfn
,
99 #define STORE_RT_REG_AGG(hwfn, offset, val) \
100 qed_init_store_rt_agg(hwfn, offset, (u32 *)&val, sizeof(val))
104 * Initialize GTT global windows and set admin window
105 * related params of GTT/PTT to default values.
109 void qed_gtt_init(struct qed_hwfn
*p_hwfn
);
This page took 0.033752 seconds and 5 git commands to generate.