diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-08-12 04:22:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 02:02:12 -0400 |
commit | 2691d51d7243560aa0870dadbf5c6b98f647f751 (patch) | |
tree | b1d19b51005395517e35c632501715edf7e20c7c /drivers/net/bnx2x.h | |
parent | a1d58179d1337ff8f8530c9fac8b9e98b2f7761f (diff) |
bnx2x: Supporting Device Control Channel
In multi-function mode, the FW can receive special management control commands
to set the Min/Max BW and the the function link state
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 16ccba8dda1b..5864ae2faabc 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h | |||
@@ -128,6 +128,11 @@ | |||
128 | #define SHMEM_RD(bp, field) REG_RD(bp, SHMEM_ADDR(bp, field)) | 128 | #define SHMEM_RD(bp, field) REG_RD(bp, SHMEM_ADDR(bp, field)) |
129 | #define SHMEM_WR(bp, field, val) REG_WR(bp, SHMEM_ADDR(bp, field), val) | 129 | #define SHMEM_WR(bp, field, val) REG_WR(bp, SHMEM_ADDR(bp, field), val) |
130 | 130 | ||
131 | #define SHMEM2_ADDR(bp, field) (bp->common.shmem2_base + \ | ||
132 | offsetof(struct shmem2_region, field)) | ||
133 | #define SHMEM2_RD(bp, field) REG_RD(bp, SHMEM2_ADDR(bp, field)) | ||
134 | #define SHMEM2_WR(bp, field, val) REG_WR(bp, SHMEM2_ADDR(bp, field), val) | ||
135 | |||
131 | #define EMAC_RD(bp, reg) REG_RD(bp, emac_base + reg) | 136 | #define EMAC_RD(bp, reg) REG_RD(bp, emac_base + reg) |
132 | #define EMAC_WR(bp, reg, val) REG_WR(bp, emac_base + reg, val) | 137 | #define EMAC_WR(bp, reg, val) REG_WR(bp, emac_base + reg, val) |
133 | 138 | ||
@@ -535,6 +540,7 @@ struct bnx2x_common { | |||
535 | #define NVRAM_PAGE_SIZE 256 | 540 | #define NVRAM_PAGE_SIZE 256 |
536 | 541 | ||
537 | u32 shmem_base; | 542 | u32 shmem_base; |
543 | u32 shmem2_base; | ||
538 | 544 | ||
539 | u32 hw_config; | 545 | u32 hw_config; |
540 | 546 | ||