mirror of https://gitee.com/openkylin/linux.git
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: Sudarsana Reddy Kalluru <skalluru@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4365f35b12
commit
cdf711f20b
|
@ -5,5 +5,5 @@
|
|||
|
||||
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
|
||||
|
|
|
@ -1979,6 +1979,9 @@ struct bnx2x_func_init_params {
|
|||
|
||||
#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
|
||||
*
|
||||
|
@ -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_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_notify_link_changed(struct bnx2x *bp);
|
||||
|
||||
|
|
|
@ -276,6 +276,13 @@ static const struct pci_device_id 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 */
|
||||
#define BNX2X_PREV_WAIT_NEEDED 1
|
||||
static DEFINE_SEMAPHORE(bnx2x_prev_sem);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -23,6 +23,8 @@
|
|||
#include "bnx2x_cmn.h"
|
||||
#include "bnx2x_sriov.h"
|
||||
|
||||
extern const u32 dmae_reg_go_c[];
|
||||
|
||||
/* Statistics */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue