diff options
author | Vladislav Zolotarov <vladz@broadcom.com> | 2011-01-08 21:20:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-09 18:47:38 -0500 |
commit | 4a33bc03ab66631e844080bf1189d2afd7aae929 (patch) | |
tree | 785d551a0b8556c581e70be5654da69b2abd32c9 /drivers/net/bnx2x/bnx2x.h | |
parent | 0744db2394ff1ee908169e38ab9308163c4cede5 (diff) |
bnx2x: registers dump fixes
Fixes in registers dump:
- Properly calculate dump length for 57712.
- Prevent HW blocks parity attentions when dumping registers in order to
prevent false parity errors handling.
- Update the bnx2x_dump.h file: old one had a few bugs that could cause
fatal HW error as a result of a registers dump.
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 77d6c8d6d86b..6a858a29db56 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -636,6 +636,7 @@ struct bnx2x_common { | |||
636 | 636 | ||
637 | #define CHIP_METAL(bp) (bp->common.chip_id & 0x00000ff0) | 637 | #define CHIP_METAL(bp) (bp->common.chip_id & 0x00000ff0) |
638 | #define CHIP_BOND_ID(bp) (bp->common.chip_id & 0x0000000f) | 638 | #define CHIP_BOND_ID(bp) (bp->common.chip_id & 0x0000000f) |
639 | #define CHIP_PARITY_ENABLED(bp) (CHIP_IS_E1(bp) || CHIP_IS_E1H(bp)) | ||
639 | 640 | ||
640 | int flash_size; | 641 | int flash_size; |
641 | #define NVRAM_1MB_SIZE 0x20000 /* 1M bit in bytes */ | 642 | #define NVRAM_1MB_SIZE 0x20000 /* 1M bit in bytes */ |