Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ice/ice_common.h
Show All 40 Lines | |||||
enum ice_fw_modes { | enum ice_fw_modes { | ||||
ICE_FW_MODE_NORMAL, | ICE_FW_MODE_NORMAL, | ||||
ICE_FW_MODE_DBG, | ICE_FW_MODE_DBG, | ||||
ICE_FW_MODE_REC, | ICE_FW_MODE_REC, | ||||
ICE_FW_MODE_ROLLBACK | ICE_FW_MODE_ROLLBACK | ||||
}; | }; | ||||
/* prototype for functions used for SW locks */ | |||||
void ice_free_list(struct LIST_HEAD_TYPE *list); | |||||
void ice_init_lock(struct ice_lock *lock); | |||||
void ice_acquire_lock(struct ice_lock *lock); | |||||
void ice_release_lock(struct ice_lock *lock); | |||||
void ice_destroy_lock(struct ice_lock *lock); | |||||
void *ice_alloc_dma_mem(struct ice_hw *hw, struct ice_dma_mem *m, u64 size); | |||||
void ice_free_dma_mem(struct ice_hw *hw, struct ice_dma_mem *m); | |||||
void ice_idle_aq(struct ice_hw *hw, struct ice_ctl_q_info *cq); | void ice_idle_aq(struct ice_hw *hw, struct ice_ctl_q_info *cq); | ||||
bool ice_sq_done(struct ice_hw *hw, struct ice_ctl_q_info *cq); | bool ice_sq_done(struct ice_hw *hw, struct ice_ctl_q_info *cq); | ||||
enum ice_status ice_update_sr_checksum(struct ice_hw *hw); | enum ice_status ice_update_sr_checksum(struct ice_hw *hw); | ||||
enum ice_status ice_validate_sr_checksum(struct ice_hw *hw, u16 *checksum); | enum ice_status ice_validate_sr_checksum(struct ice_hw *hw, u16 *checksum); | ||||
enum ice_status ice_nvm_validate_checksum(struct ice_hw *hw); | enum ice_status ice_nvm_validate_checksum(struct ice_hw *hw); | ||||
enum ice_status ice_init_hw(struct ice_hw *hw); | enum ice_status ice_init_hw(struct ice_hw *hw); | ||||
void ice_deinit_hw(struct ice_hw *hw); | void ice_deinit_hw(struct ice_hw *hw); | ||||
enum ice_status ice_check_reset(struct ice_hw *hw); | enum ice_status ice_check_reset(struct ice_hw *hw); | ||||
enum ice_status ice_reset(struct ice_hw *hw, enum ice_reset_req req); | enum ice_status ice_reset(struct ice_hw *hw, enum ice_reset_req req); | ||||
enum ice_status ice_create_all_ctrlq(struct ice_hw *hw); | enum ice_status ice_create_all_ctrlq(struct ice_hw *hw); | ||||
enum ice_status ice_init_all_ctrlq(struct ice_hw *hw); | enum ice_status ice_init_all_ctrlq(struct ice_hw *hw); | ||||
void ice_shutdown_all_ctrlq(struct ice_hw *hw); | void ice_shutdown_all_ctrlq(struct ice_hw *hw); | ||||
void ice_destroy_all_ctrlq(struct ice_hw *hw); | void ice_destroy_all_ctrlq(struct ice_hw *hw); | ||||
enum ice_status | enum ice_status | ||||
ice_clean_rq_elem(struct ice_hw *hw, struct ice_ctl_q_info *cq, | ice_clean_rq_elem(struct ice_hw *hw, struct ice_ctl_q_info *cq, | ||||
struct ice_rq_event_info *e, u16 *pending); | struct ice_rq_event_info *e, u16 *pending); | ||||
enum ice_status | enum ice_status | ||||
ice_get_link_status(struct ice_port_info *pi, bool *link_up); | ice_get_link_status(struct ice_port_info *pi, bool *link_up); | ||||
enum ice_status ice_update_link_info(struct ice_port_info *pi); | enum ice_status ice_update_link_info(struct ice_port_info *pi); | ||||
enum ice_status | |||||
ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access); | |||||
void ice_release_nvm(struct ice_hw *hw); | |||||
enum ice_status | |||||
ice_aq_read_nvm(struct ice_hw *hw, u16 module_typeid, u32 offset, u16 length, | |||||
void *data, bool last_command, bool read_shadow_ram, | |||||
struct ice_sq_cd *cd); | |||||
enum ice_status | enum ice_status | ||||
ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res, | ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res, | ||||
enum ice_aq_res_access_type access, u32 timeout); | enum ice_aq_res_access_type access, u32 timeout); | ||||
void ice_release_res(struct ice_hw *hw, enum ice_aq_res_ids res); | void ice_release_res(struct ice_hw *hw, enum ice_aq_res_ids res); | ||||
enum ice_status | enum ice_status | ||||
ice_alloc_hw_res(struct ice_hw *hw, u16 type, u16 num, bool btm, u16 *res); | ice_alloc_hw_res(struct ice_hw *hw, u16 type, u16 num, bool btm, u16 *res); | ||||
enum ice_status | enum ice_status | ||||
ice_free_hw_res(struct ice_hw *hw, u16 type, u16 num, u16 *res); | ice_free_hw_res(struct ice_hw *hw, u16 type, u16 num, u16 *res); | ||||
▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines |