FreeBSD/sys/dev/bxe/bxe.c
/* checks the GLOBAL_RESET bit, should be run under rtnl lock */
checks the GLOBAL_RESET bit, should be run under rtnl lock
checks the GLOBAL_RESET bit should be run under rtnl lock
static uint8_t
bxe_reset_is_global(struct bxe_softc *sc)
{
    uint32_t val = REG_RD(sc, BXE_RECOVERY_GLOB_REG);
    BLOGD(sc, DBG_LOAD, "GLOB_REG=0x%08x\n", val);
    return (val & BXE_GLOBAL_RESET_BIT) ? TRUE : FALSE;
}
static uint8_t bxe_reset_is_global ( struct bxe_softc * sc ) { uint32_t val = REG_RD ( sc , BXE_RECOVERY_GLOB_REG ) ; BLOGD ( sc , DBG_LOAD , " \n " , val ) ; return ( val & BXE_GLOBAL_RESET_BIT ) ? TRUE : FALSE ; }
checks the GLOBAL_RESET bit, should be run under rtnl lock
checks the GLOBAL_RESET bit should be run under rtnl lock