FreeBSD/sys/dev/bxe/bxe.c
/* 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
bxe_reset_is_done(struct bxe_softc *sc,
                  int              engine)
{
    uint32_t val = REG_RD(sc, BXE_RECOVERY_GLOB_REG);
    uint32_t bit = engine ? BXE_PATH1_RST_IN_PROG_BIT :
                            BXE_PATH0_RST_IN_PROG_BIT;
    return (val & bit) ? FALSE : TRUE;
}
static uint8_t bxe_reset_is_done ( struct bxe_softc * sc , int engine ) { uint32_t val = REG_RD ( sc , BXE_RECOVERY_GLOB_REG ) ; uint32_t bit = engine ? BXE_PATH1_RST_IN_PROG_BIT : BXE_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 */