0001
0002
0003
0004 #ifndef _E1000_NVM_H_
0005 #define _E1000_NVM_H_
0006
0007 s32 igb_acquire_nvm(struct e1000_hw *hw);
0008 void igb_release_nvm(struct e1000_hw *hw);
0009 s32 igb_read_mac_addr(struct e1000_hw *hw);
0010 s32 igb_read_part_num(struct e1000_hw *hw, u32 *part_num);
0011 s32 igb_read_part_string(struct e1000_hw *hw, u8 *part_num,
0012 u32 part_num_size);
0013 s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
0014 s32 igb_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
0015 s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
0016 s32 igb_validate_nvm_checksum(struct e1000_hw *hw);
0017 s32 igb_update_nvm_checksum(struct e1000_hw *hw);
0018
0019 struct e1000_fw_version {
0020 u32 etrack_id;
0021 u16 eep_major;
0022 u16 eep_minor;
0023 u16 eep_build;
0024
0025 u8 invm_major;
0026 u8 invm_minor;
0027 u8 invm_img_type;
0028
0029 bool or_valid;
0030 u16 or_major;
0031 u16 or_build;
0032 u16 or_patch;
0033 };
0034 void igb_get_fw_version(struct e1000_hw *hw, struct e1000_fw_version *fw_vers);
0035
0036 #endif