diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-08-12 10:22:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 08:02:12 +0200 |
commit | 2691d51d7243560aa0870dadbf5c6b98f647f751 (patch) | |
tree | b1d19b51005395517e35c632501715edf7e20c7c /drivers/net/bnx2x.h | |
parent | bnx2x: Removing old FW files (diff) | |
download | linux-2691d51d7243560aa0870dadbf5c6b98f647f751.tar.xz linux-2691d51d7243560aa0870dadbf5c6b98f647f751.zip |
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 @@ #define SHMEM_RD(bp, field) REG_RD(bp, SHMEM_ADDR(bp, field)) #define SHMEM_WR(bp, field, val) REG_WR(bp, SHMEM_ADDR(bp, field), val) +#define SHMEM2_ADDR(bp, field) (bp->common.shmem2_base + \ + offsetof(struct shmem2_region, field)) +#define SHMEM2_RD(bp, field) REG_RD(bp, SHMEM2_ADDR(bp, field)) +#define SHMEM2_WR(bp, field, val) REG_WR(bp, SHMEM2_ADDR(bp, field), val) + #define EMAC_RD(bp, reg) REG_RD(bp, emac_base + reg) #define EMAC_WR(bp, reg, val) REG_WR(bp, emac_base + reg, val) @@ -535,6 +540,7 @@ struct bnx2x_common { #define NVRAM_PAGE_SIZE 256 u32 shmem_base; + u32 shmem2_base; u32 hw_config; |