e1000_nvm.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*******************************************************************************
  2. Intel(R) Gigabit Ethernet Linux driver
  3. Copyright(c) 2007 Intel Corporation.
  4. This program is free software; you can redistribute it and/or modify it
  5. under the terms and conditions of the GNU General Public License,
  6. version 2, as published by the Free Software Foundation.
  7. This program is distributed in the hope it will be useful, but WITHOUT
  8. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. this program; if not, write to the Free Software Foundation, Inc.,
  13. 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  14. The full GNU General Public License is included in this distribution in
  15. the file called "COPYING".
  16. Contact Information:
  17. e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
  18. Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  19. *******************************************************************************/
  20. #ifndef _E1000_NVM_H_
  21. #define _E1000_NVM_H_
  22. s32 igb_acquire_nvm(struct e1000_hw *hw);
  23. void igb_release_nvm(struct e1000_hw *hw);
  24. s32 igb_read_mac_addr(struct e1000_hw *hw);
  25. s32 igb_read_part_num(struct e1000_hw *hw, u32 *part_num);
  26. s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
  27. s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
  28. s32 igb_validate_nvm_checksum(struct e1000_hw *hw);
  29. s32 igb_update_nvm_checksum(struct e1000_hw *hw);
  30. #endif