1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2013 - 2015 Intel Corporation
5 #ifndef _FM10K_COMMON_H_
6 #define _FM10K_COMMON_H_
8 #include "fm10k_type.h"
10 u16 fm10k_get_pcie_msix_count_generic(struct fm10k_hw *hw);
11 s32 fm10k_init_ops_generic(struct fm10k_hw *hw);
12 s32 fm10k_disable_queues_generic(struct fm10k_hw *hw, u16 q_cnt);
13 s32 fm10k_start_hw_generic(struct fm10k_hw *hw);
14 s32 fm10k_stop_hw_generic(struct fm10k_hw *hw);
15 u32 fm10k_read_hw_stats_32b(struct fm10k_hw *hw, u32 addr,
16 struct fm10k_hw_stat *stat);
17 #define fm10k_update_hw_base_32b(stat, delta) ((stat)->base_l += (delta))
18 void fm10k_update_hw_stats_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q,
20 #define fm10k_unbind_hw_stats_32b(s) ((s)->base_h = 0)
21 void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count);
22 s32 fm10k_get_host_state_generic(struct fm10k_hw *hw, bool *host_ready);
23 #endif /* _FM10K_COMMON_H_ */