summaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_nvm.h
diff options
context:
space:
mode:
authorCarolyn Wyborny <carolyn.wyborny@intel.com>2010-11-22 18:17:21 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-12-11 07:14:01 +0100
commit9835fd7321a67feba6432e63bf2cba43f5a56bd9 (patch)
treef7df41d2ba5675d6405ec1cfbfd5479abc1f938d /drivers/net/igb/e1000_nvm.h
parente1000e: increment the driver version (diff)
downloadlinux-9835fd7321a67feba6432e63bf2cba43f5a56bd9.tar.xz
linux-9835fd7321a67feba6432e63bf2cba43f5a56bd9.zip
igb: Add new function to read part number from EEPROM in string format
New adapters will have part numbers stored in string format rather than simple hex format. This function will read part number formats in either hex or string. Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/igb/e1000_nvm.h')
-rw-r--r--drivers/net/igb/e1000_nvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/igb/e1000_nvm.h b/drivers/net/igb/e1000_nvm.h
index 1041c34dcbe1..29c956a84bd0 100644
--- a/drivers/net/igb/e1000_nvm.h
+++ b/drivers/net/igb/e1000_nvm.h
@@ -32,6 +32,8 @@ s32 igb_acquire_nvm(struct e1000_hw *hw);
void igb_release_nvm(struct e1000_hw *hw);
s32 igb_read_mac_addr(struct e1000_hw *hw);
s32 igb_read_part_num(struct e1000_hw *hw, u32 *part_num);
+s32 igb_read_part_string(struct e1000_hw *hw, u8 *part_num,
+ u32 part_num_size);
s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
s32 igb_validate_nvm_checksum(struct e1000_hw *hw);