aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2011-04-13 07:05:08 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-13 20:10:08 -0400
commitc3e945006ab2295e9a3f4327aa74a502ad123fe6 (patch)
tree06bb8b4e44ea7db96f3c6c751a39020ad3d76b47 /drivers/net/tg3.h
parent4852a8614f63999e38539ad16615054dcd20a05d (diff)
tg3: Add support for extended VPD blocks
In some devices, the VPD block is relocated to a different area in NVRAM. The original location can still contain old, but still valid VPD data. This patch changes the code to look for an extended VPD block in NVRAM. If one is found, that block is used for all VPD operations instead. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index b3ccfcc9ffea..224c3e0ec695 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2009,7 +2009,9 @@
2009#define TG3_NVM_DIR_END 0x78 2009#define TG3_NVM_DIR_END 0x78
2010#define TG3_NVM_DIRENT_SIZE 0xc 2010#define TG3_NVM_DIRENT_SIZE 0xc
2011#define TG3_NVM_DIRTYPE_SHIFT 24 2011#define TG3_NVM_DIRTYPE_SHIFT 24
2012#define TG3_NVM_DIRTYPE_LENMSK 0x003fffff
2012#define TG3_NVM_DIRTYPE_ASFINI 1 2013#define TG3_NVM_DIRTYPE_ASFINI 1
2014#define TG3_NVM_DIRTYPE_EXTVPD 20
2013#define TG3_NVM_PTREV_BCVER 0x94 2015#define TG3_NVM_PTREV_BCVER 0x94
2014#define TG3_NVM_BCVER_MAJMSK 0x0000ff00 2016#define TG3_NVM_BCVER_MAJMSK 0x0000ff00
2015#define TG3_NVM_BCVER_MAJSFT 8 2017#define TG3_NVM_BCVER_MAJSFT 8