ice_common.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (c) 2018, Intel Corporation. */
  3. #ifndef _ICE_COMMON_H_
  4. #define _ICE_COMMON_H_
  5. #include "ice.h"
  6. #include "ice_type.h"
  7. #include "ice_switch.h"
  8. void ice_debug_cq(struct ice_hw *hw, u32 mask, void *desc, void *buf,
  9. u16 buf_len);
  10. enum ice_status ice_init_hw(struct ice_hw *hw);
  11. void ice_deinit_hw(struct ice_hw *hw);
  12. enum ice_status ice_check_reset(struct ice_hw *hw);
  13. enum ice_status ice_reset(struct ice_hw *hw, enum ice_reset_req req);
  14. enum ice_status ice_init_all_ctrlq(struct ice_hw *hw);
  15. void ice_shutdown_all_ctrlq(struct ice_hw *hw);
  16. enum ice_status
  17. ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res,
  18. enum ice_aq_res_access_type access);
  19. void ice_release_res(struct ice_hw *hw, enum ice_aq_res_ids res);
  20. enum ice_status ice_init_nvm(struct ice_hw *hw);
  21. enum ice_status
  22. ice_sq_send_cmd(struct ice_hw *hw, struct ice_ctl_q_info *cq,
  23. struct ice_aq_desc *desc, void *buf, u16 buf_size,
  24. struct ice_sq_cd *cd);
  25. void ice_clear_pxe_mode(struct ice_hw *hw);
  26. enum ice_status ice_get_caps(struct ice_hw *hw);
  27. bool ice_check_sq_alive(struct ice_hw *hw, struct ice_ctl_q_info *cq);
  28. enum ice_status ice_aq_q_shutdown(struct ice_hw *hw, bool unloading);
  29. void ice_fill_dflt_direct_cmd_desc(struct ice_aq_desc *desc, u16 opcode);
  30. enum ice_status
  31. ice_aq_send_cmd(struct ice_hw *hw, struct ice_aq_desc *desc,
  32. void *buf, u16 buf_size, struct ice_sq_cd *cd);
  33. enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd);
  34. enum ice_status ice_clear_pf_cfg(struct ice_hw *hw);
  35. #endif /* _ICE_COMMON_H_ */