fp@2685: /* Intel(R) Gigabit Ethernet Linux driver
fp@2685: * Copyright(c) 2007-2014 Intel Corporation.
fp@2685: *
fp@2685: * This program is free software; you can redistribute it and/or modify it
fp@2685: * under the terms and conditions of the GNU General Public License,
fp@2685: * version 2, as published by the Free Software Foundation.
fp@2685: *
fp@2685: * This program is distributed in the hope it will be useful, but WITHOUT
fp@2685: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fp@2685: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
fp@2685: * more details.
fp@2685: *
fp@2685: * You should have received a copy of the GNU General Public License along with
fp@2685: * this program; if not, see .
fp@2685: *
fp@2685: * The full GNU General Public License is included in this distribution in
fp@2685: * the file called "COPYING".
fp@2685: *
fp@2685: * Contact Information:
fp@2685: * e1000-devel Mailing List
fp@2685: * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
fp@2685: */
fp@2685:
fp@2685: #ifndef _E1000_NVM_H_
fp@2685: #define _E1000_NVM_H_
fp@2685:
fp@2685: s32 igb_acquire_nvm(struct e1000_hw *hw);
fp@2685: void igb_release_nvm(struct e1000_hw *hw);
fp@2685: s32 igb_read_mac_addr(struct e1000_hw *hw);
fp@2685: s32 igb_read_part_num(struct e1000_hw *hw, u32 *part_num);
fp@2685: s32 igb_read_part_string(struct e1000_hw *hw, u8 *part_num,
fp@2685: u32 part_num_size);
fp@2685: s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
fp@2685: s32 igb_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
fp@2685: s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
fp@2685: s32 igb_validate_nvm_checksum(struct e1000_hw *hw);
fp@2685: s32 igb_update_nvm_checksum(struct e1000_hw *hw);
fp@2685:
fp@2685: struct e1000_fw_version {
fp@2685: u32 etrack_id;
fp@2685: u16 eep_major;
fp@2685: u16 eep_minor;
fp@2685: u16 eep_build;
fp@2685:
fp@2685: u8 invm_major;
fp@2685: u8 invm_minor;
fp@2685: u8 invm_img_type;
fp@2685:
fp@2685: bool or_valid;
fp@2685: u16 or_major;
fp@2685: u16 or_build;
fp@2685: u16 or_patch;
fp@2685: };
fp@2685: void igb_get_fw_version(struct e1000_hw *hw, struct e1000_fw_version *fw_vers);
fp@2685:
fp@2685: #endif