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_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,
15 		       u16 module_type);
16 enum ice_status
17 ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size);
18 enum ice_status ice_init_nvm(struct ice_hw *hw);
19 enum ice_status ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data);
20 #endif /* _ICE_NVM_H_ */
21