tg3: Detect APE firmware types
This patch adds code to determine the APE firmware type and report this along with the firmware version. Reviewed-by: Benjamin Li <benli@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8c69b1e702
commit
ecc796486f
@@ -2161,6 +2161,8 @@
|
||||
/* APE shared memory. Accessible through BAR1 */
|
||||
#define TG3_APE_FW_STATUS 0x400c
|
||||
#define APE_FW_STATUS_READY 0x00000100
|
||||
#define TG3_APE_FW_FEATURES 0x4010
|
||||
#define TG3_APE_FW_FEATURE_NCSI 0x00000002
|
||||
#define TG3_APE_FW_VERSION 0x4018
|
||||
#define APE_FW_VERSION_MAJMSK 0xff000000
|
||||
#define APE_FW_VERSION_MAJSFT 24
|
||||
|
Reference in New Issue
Block a user