1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2001 - 2015 Intel Corporation
13 struct e1000_fw_version {
30 void e1000_init_nvm_ops_generic(struct e1000_hw *hw);
31 s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
32 void e1000_null_nvm_generic(struct e1000_hw *hw);
33 s32 e1000_null_led_default(struct e1000_hw *hw, u16 *data);
34 s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
35 s32 e1000_acquire_nvm_generic(struct e1000_hw *hw);
37 s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg);
38 s32 e1000_read_mac_addr_generic(struct e1000_hw *hw);
39 s32 e1000_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num);
40 s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num,
42 s32 e1000_read_pba_length_generic(struct e1000_hw *hw, u32 *pba_num_size);
43 s32 e1000_read_pba_raw(struct e1000_hw *hw, u16 *eeprom_buf,
44 u32 eeprom_buf_size, u16 max_pba_block_size,
45 struct e1000_pba *pba);
46 s32 e1000_write_pba_raw(struct e1000_hw *hw, u16 *eeprom_buf,
47 u32 eeprom_buf_size, struct e1000_pba *pba);
48 s32 e1000_get_pba_block_size(struct e1000_hw *hw, u16 *eeprom_buf,
49 u32 eeprom_buf_size, u16 *pba_block_size);
50 s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
51 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset,
52 u16 words, u16 *data);
53 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words,
55 s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data);
56 s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw);
57 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset,
58 u16 words, u16 *data);
59 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
61 s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw);
62 void e1000_stop_nvm(struct e1000_hw *hw);
63 void e1000_release_nvm_generic(struct e1000_hw *hw);
64 void e1000_get_fw_version(struct e1000_hw *hw,
65 struct e1000_fw_version *fw_vers);
67 #define E1000_STM_OPCODE 0xDB00