1031f2147SMd Fahad Iqbal Polash /* SPDX-License-Identifier: GPL-2.0 */ 2031f2147SMd Fahad Iqbal Polash /* Copyright (c) 2019, Intel Corporation. */ 3031f2147SMd Fahad Iqbal Polash 4031f2147SMd Fahad Iqbal Polash #ifndef _ICE_NVM_H_ 5031f2147SMd Fahad Iqbal Polash #define _ICE_NVM_H_ 6031f2147SMd Fahad Iqbal Polash 7e9450990SJacob Keller enum ice_status 884a24798SJesse Brandeburg ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access); 984a24798SJesse Brandeburg void ice_release_nvm(struct ice_hw *hw); 1084a24798SJesse Brandeburg enum ice_status 11e9450990SJacob Keller ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data, 12e9450990SJacob Keller bool read_shadow_ram); 13e961b679SJacob Keller enum ice_status 14e961b679SJacob Keller ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len, 15e961b679SJacob Keller u16 module_type); 16e961b679SJacob Keller enum ice_status 17e961b679SJacob Keller ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size); 1884a24798SJesse Brandeburg enum ice_status ice_init_nvm(struct ice_hw *hw); 19031f2147SMd Fahad Iqbal Polash enum ice_status ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data); 20031f2147SMd Fahad Iqbal Polash #endif /* _ICE_NVM_H_ */ 21