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>
This commit is contained in:
parent
5d7cd49622
commit
b0efbb996e
2 changed files with 9 additions and 3 deletions
|
@ -1373,6 +1373,14 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,
|
||||||
#define BNX2X_VPD_LEN 128
|
#define BNX2X_VPD_LEN 128
|
||||||
#define VENDOR_ID_LEN 4
|
#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 */
|
/* MISC_REG_RESET_REG - this is here for the hsi to work don't touch */
|
||||||
|
|
||||||
#endif /* bnx2x.h */
|
#endif /* bnx2x.h */
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
|
|
||||||
|
#define BNX2X_MAIN
|
||||||
#include "bnx2x.h"
|
#include "bnx2x.h"
|
||||||
#include "bnx2x_init.h"
|
#include "bnx2x_init.h"
|
||||||
#include "bnx2x_init_ops.h"
|
#include "bnx2x_init_ops.h"
|
||||||
|
@ -121,8 +121,6 @@ static int debug;
|
||||||
module_param(debug, int, 0);
|
module_param(debug, int, 0);
|
||||||
MODULE_PARM_DESC(debug, " Default debug msglevel");
|
MODULE_PARM_DESC(debug, " Default debug msglevel");
|
||||||
|
|
||||||
static int load_count[3]; /* 0-common, 1-port0, 2-port1 */
|
|
||||||
|
|
||||||
static struct workqueue_struct *bnx2x_wq;
|
static struct workqueue_struct *bnx2x_wq;
|
||||||
|
|
||||||
enum bnx2x_board_type {
|
enum bnx2x_board_type {
|
||||||
|
|
Reference in a new issue