[TG3]: Fix nvram selftest failures
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 13 Nov 2007 05:10:58 +0000 (21:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2007 05:10:58 +0000 (21:10 -0800)
commita5767dec1980463aef5614b7ad8a800bb4f4c353
treebe204ff73acbaf61f0f95e4530fdc0ff615943c6
parent9acb961e7d780291659bf950b3b718ff9e085620
[TG3]: Fix nvram selftest failures

Newer devices contain bootcode in the chip's private ROM area.  This
bootcode is called selfboot.  Selfboot can be patched in the device's
NVRAM and the patches can have several formats.  In one particular
format, the checksum calculation needs to be slightly modified.  This
patch adjusts the NVRAM test code for that case, and add support for the
missing formats.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h