aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/defines.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2010-11-24 01:01:51 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-12-11 01:13:37 -0500
commit073287c037083497ebaaf75ead469b769f218615 (patch)
tree42ebaf5df93e5dd9666039af6d3424b1684823af /drivers/net/e1000e/defines.h
parent664dc878ed6f0476b875547547a49e06f7a4e73b (diff)
e1000e: support new PBA format from EEPROM
Provide support to e1000e for displaying the new format of the PBA found in the EEPROM. The unique PBA identifier is no longer restricted to hexadecimal numbers and must now be read and displayed as a string. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/defines.h')
-rw-r--r--drivers/net/e1000e/defines.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/e1000e/defines.h b/drivers/net/e1000e/defines.h
index 016ea383145a..7245dc2e0b7c 100644
--- a/drivers/net/e1000e/defines.h
+++ b/drivers/net/e1000e/defines.h
@@ -488,6 +488,9 @@
488#define E1000_BLK_PHY_RESET 12 488#define E1000_BLK_PHY_RESET 12
489#define E1000_ERR_SWFW_SYNC 13 489#define E1000_ERR_SWFW_SYNC 13
490#define E1000_NOT_IMPLEMENTED 14 490#define E1000_NOT_IMPLEMENTED 14
491#define E1000_ERR_INVALID_ARGUMENT 16
492#define E1000_ERR_NO_SPACE 17
493#define E1000_ERR_NVM_PBA_SECTION 18
491 494
492/* Loop limit on how long we wait for auto-negotiation to complete */ 495/* Loop limit on how long we wait for auto-negotiation to complete */
493#define FIBER_LINK_UP_LIMIT 50 496#define FIBER_LINK_UP_LIMIT 50
@@ -650,13 +653,16 @@
650/* Mask bits for fields in Word 0x03 of the EEPROM */ 653/* Mask bits for fields in Word 0x03 of the EEPROM */
651#define NVM_COMPAT_LOM 0x0800 654#define NVM_COMPAT_LOM 0x0800
652 655
656/* length of string needed to store PBA number */
657#define E1000_PBANUM_LENGTH 11
658
653/* For checksumming, the sum of all words in the NVM should equal 0xBABA. */ 659/* For checksumming, the sum of all words in the NVM should equal 0xBABA. */
654#define NVM_SUM 0xBABA 660#define NVM_SUM 0xBABA
655 661
656/* PBA (printed board assembly) number words */ 662/* PBA (printed board assembly) number words */
657#define NVM_PBA_OFFSET_0 8 663#define NVM_PBA_OFFSET_0 8
658#define NVM_PBA_OFFSET_1 9 664#define NVM_PBA_OFFSET_1 9
659 665#define NVM_PBA_PTR_GUARD 0xFAFA
660#define NVM_WORD_SIZE_BASE_SHIFT 6 666#define NVM_WORD_SIZE_BASE_SHIFT 6
661 667
662/* NVM Commands - SPI */ 668/* NVM Commands - SPI */