1 /*- 2 * Copyright 2021 Intel Corp 3 * Copyright 2021 Rubicon Communications, LLC (Netgate) 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 * $FreeBSD$ 7 */ 8 9 #ifndef _IGC_NVM_H_ 10 #define _IGC_NVM_H_ 11 12 void igc_init_nvm_ops_generic(struct igc_hw *hw); 13 s32 igc_null_read_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c); 14 void igc_null_nvm_generic(struct igc_hw *hw); 15 s32 igc_null_led_default(struct igc_hw *hw, u16 *data); 16 s32 igc_null_write_nvm(struct igc_hw *hw, u16 a, u16 b, u16 *c); 17 s32 igc_acquire_nvm_generic(struct igc_hw *hw); 18 19 s32 igc_poll_eerd_eewr_done(struct igc_hw *hw, int ee_reg); 20 s32 igc_read_mac_addr_generic(struct igc_hw *hw); 21 s32 igc_read_pba_string_generic(struct igc_hw *hw, u8 *pba_num, 22 u32 pba_num_size); 23 s32 igc_read_nvm_eerd(struct igc_hw *hw, u16 offset, u16 words, 24 u16 *data); 25 s32 igc_valid_led_default_generic(struct igc_hw *hw, u16 *data); 26 s32 igc_validate_nvm_checksum_generic(struct igc_hw *hw); 27 s32 igc_write_nvm_spi(struct igc_hw *hw, u16 offset, u16 words, 28 u16 *data); 29 s32 igc_update_nvm_checksum_generic(struct igc_hw *hw); 30 void igc_release_nvm_generic(struct igc_hw *hw); 31 32 #endif 33