1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2019, Intel Corporation. */ 3 4 #ifndef _ICE_NVM_H_ 5 #define _ICE_NVM_H_ 6 7 enum ice_status 8 ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access); 9 void ice_release_nvm(struct ice_hw *hw); 10 enum ice_status 11 ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data, 12 bool read_shadow_ram); 13 enum ice_status 14 ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size); 15 enum ice_status ice_init_nvm(struct ice_hw *hw); 16 #endif /* _ICE_NVM_H_ */ 17