src/dpdk/drivers/net/bnx2x/bnx2x.c
static uint8_t bnx2x_reset_is_done(struct bnx2x_softc *sc, int engine)
{
	uint32_t val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	uint32_t bit = engine ? BNX2X_PATH1_RST_IN_PROG_BIT :
	    BNX2X_PATH0_RST_IN_PROG_BIT;

	/* return false if bit is set */
	return (val & bit) ? FALSE : TRUE;
}
/* check RESET_IN_PROGRESS bit for an engine, should be run under rtnl lock */
check RESET_IN_PROGRESS bit for an engine, should be run under rtnl lock
check RESET_IN_PROGRESS bit for an engine should be run under rtnl lock
static uint8_t bnx2x_reset_is_done(struct bnx2x_softc *sc, int engine)
{
	uint32_t val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	uint32_t bit = engine ? BNX2X_PATH1_RST_IN_PROG_BIT :
	    BNX2X_PATH0_RST_IN_PROG_BIT;
	return (val & bit) ? FALSE : TRUE;
}
static uint8_t bnx2x_reset_is_done ( struct bnx2x_softc * sc , int engine ) { uint32_t val = REG_RD ( sc , BNX2X_RECOVERY_GLOB_REG ) ; uint32_t bit = engine ? BNX2X_PATH1_RST_IN_PROG_BIT : BNX2X_PATH0_RST_IN_PROG_BIT ; return ( val & bit ) ? FALSE : TRUE ; }
check RESET_IN_PROGRESS bit for an engine, should be run under rtnl lock
check RESET_IN_PROGRESS bit for an engine should be run under rtnl lock
/* return false if bit is set */