Commit cdf711f2 authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller
Browse files

bnx2x: Add support for idlechk tests.



This patch populates a database of idlechk tests (registers and
predicates) and performs the idlechk using this data.

Signed-off-by: default avatarSudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4365f35b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5,5 +5,5 @@


obj-$(CONFIG_BNX2X) += bnx2x.o
obj-$(CONFIG_BNX2X) += bnx2x.o


bnx2x-y := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o bnx2x_sp.o
bnx2x-y := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o bnx2x_sp.o bnx2x_self_test.o
bnx2x-$(CONFIG_BNX2X_SRIOV) += bnx2x_vfpf.o bnx2x_sriov.o
bnx2x-$(CONFIG_BNX2X_SRIOV) += bnx2x_vfpf.o bnx2x_sriov.o
+3 −7
Original line number Original line Diff line number Diff line
@@ -1979,6 +1979,9 @@ struct bnx2x_func_init_params {


#define skip_queue(bp, idx)	(NO_FCOE(bp) && IS_FCOE_IDX(idx))
#define skip_queue(bp, idx)	(NO_FCOE(bp) && IS_FCOE_IDX(idx))


/*self test*/
int bnx2x_idle_chk(struct bnx2x *bp);

/**
/**
 * bnx2x_set_mac_one - configure a single MAC address
 * bnx2x_set_mac_one - configure a single MAC address
 *
 *
@@ -2430,13 +2433,6 @@ int bnx2x_compare_fw_ver(struct bnx2x *bp, u32 load_code, bool print_err);
#define HC_SEG_ACCESS_ATTN		4
#define HC_SEG_ACCESS_ATTN		4
#define HC_SEG_ACCESS_NORM		0   /*Driver decision 0-1*/
#define HC_SEG_ACCESS_NORM		0   /*Driver decision 0-1*/


static const u32 dmae_reg_go_c[] = {
	DMAE_REG_GO_C0, DMAE_REG_GO_C1, DMAE_REG_GO_C2, DMAE_REG_GO_C3,
	DMAE_REG_GO_C4, DMAE_REG_GO_C5, DMAE_REG_GO_C6, DMAE_REG_GO_C7,
	DMAE_REG_GO_C8, DMAE_REG_GO_C9, DMAE_REG_GO_C10, DMAE_REG_GO_C11,
	DMAE_REG_GO_C12, DMAE_REG_GO_C13, DMAE_REG_GO_C14, DMAE_REG_GO_C15
};

void bnx2x_set_ethtool_ops(struct bnx2x *bp, struct net_device *netdev);
void bnx2x_set_ethtool_ops(struct bnx2x *bp, struct net_device *netdev);
void bnx2x_notify_link_changed(struct bnx2x *bp);
void bnx2x_notify_link_changed(struct bnx2x *bp);


+7 −0
Original line number Original line Diff line number Diff line
@@ -276,6 +276,13 @@ static const struct pci_device_id bnx2x_pci_tbl[] = {


MODULE_DEVICE_TABLE(pci, bnx2x_pci_tbl);
MODULE_DEVICE_TABLE(pci, bnx2x_pci_tbl);


const u32 dmae_reg_go_c[] = {
	DMAE_REG_GO_C0, DMAE_REG_GO_C1, DMAE_REG_GO_C2, DMAE_REG_GO_C3,
	DMAE_REG_GO_C4, DMAE_REG_GO_C5, DMAE_REG_GO_C6, DMAE_REG_GO_C7,
	DMAE_REG_GO_C8, DMAE_REG_GO_C9, DMAE_REG_GO_C10, DMAE_REG_GO_C11,
	DMAE_REG_GO_C12, DMAE_REG_GO_C13, DMAE_REG_GO_C14, DMAE_REG_GO_C15
};

/* Global resources for unloading a previously loaded device */
/* Global resources for unloading a previously loaded device */
#define BNX2X_PREV_WAIT_NEEDED 1
#define BNX2X_PREV_WAIT_NEEDED 1
static DEFINE_SEMAPHORE(bnx2x_prev_sem);
static DEFINE_SEMAPHORE(bnx2x_prev_sem);
+3183 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,8 @@
#include "bnx2x_cmn.h"
#include "bnx2x_cmn.h"
#include "bnx2x_sriov.h"
#include "bnx2x_sriov.h"


extern const u32 dmae_reg_go_c[];

/* Statistics */
/* Statistics */


/*
/*