You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

igb_nvm.h 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*******************************************************************************
  2. Intel(R) Gigabit Ethernet Linux driver
  3. Copyright(c) 2007-2009 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. FILE_LICENCE ( GPL2_ONLY );
  21. #ifndef _IGB_NVM_H_
  22. #define _IGB_NVM_H_
  23. void igb_init_nvm_ops_generic(struct e1000_hw *hw);
  24. s32 igb_acquire_nvm_generic(struct e1000_hw *hw);
  25. s32 igb_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg);
  26. s32 igb_read_mac_addr_generic(struct e1000_hw *hw);
  27. s32 igb_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num);
  28. s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words,
  29. u16 *data);
  30. s32 igb_valid_led_default_generic(struct e1000_hw *hw, u16 *data);
  31. s32 igb_validate_nvm_checksum_generic(struct e1000_hw *hw);
  32. s32 igb_write_nvm_eewr(struct e1000_hw *hw, u16 offset,
  33. u16 words, u16 *data);
  34. s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
  35. u16 *data);
  36. s32 igb_update_nvm_checksum_generic(struct e1000_hw *hw);
  37. void igb_release_nvm_generic(struct e1000_hw *hw);
  38. #define E1000_STM_OPCODE 0xDB00
  39. #endif /* _IGB_NVM_H_ */