diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-07-27 14:33:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-28 05:35:40 +0200 |
commit | b0efbb996e8554ed8fe59e3f79e0bc83218083ab (patch) | |
tree | 06d9b551bd7d5fd166cf49a270b8232243ad390f /drivers/net/bnx2x/bnx2x.h | |
parent | bnx2x: store module parameters in driver main structure (diff) | |
download | linux-b0efbb996e8554ed8fe59e3f79e0bc83218083ab.tar.xz linux-b0efbb996e8554ed8fe59e3f79e0bc83218083ab.zip |
bnx2x: move global variable load_count to bnx2x.h
This will allow access to this global variable (used in no-mcp
mode) from different object files.
Signed-off-by: Dmitry Kravkov <dmitry@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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 237609f84855..4afd29201a5c 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h @@ -1373,6 +1373,14 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, #define BNX2X_VPD_LEN 128 #define VENDOR_ID_LEN 4 +#ifdef BNX2X_MAIN +#define BNX2X_EXTERN +#else +#define BNX2X_EXTERN extern +#endif + +BNX2X_EXTERN int load_count[3]; /* 0-common, 1-port0, 2-port1 */ + /* MISC_REG_RESET_REG - this is here for the hsi to work don't touch */ #endif /* bnx2x.h */ |