FreeBSD/sys/dev/bxe/bxe.c
/* returns the "mcp load_code" according to global load_count array */
returns the "mcp load_code" according to global load_count array
returns the " mcp load_code " according to global load_count array
static int
bxe_nic_load_no_mcp(struct bxe_softc *sc)
{
    int path = SC_PATH(sc);
    int port = SC_PORT(sc);
    BLOGI(sc, "NO MCP - load counts[%d]      %d, %d, %d\n",
          path, load_count[path][0], load_count[path][1],
          load_count[path][2]);
    load_count[path][0]++;
    load_count[path][1 + port]++;
    BLOGI(sc, "NO MCP - new load counts[%d]  %d, %d, %d\n",
          path, load_count[path][0], load_count[path][1],
          load_count[path][2]);
    if (load_count[path][0] == 1) {
        return (FW_MSG_CODE_DRV_LOAD_COMMON);
    } else if (load_count[path][1 + port] == 1) {
        return (FW_MSG_CODE_DRV_LOAD_PORT);
    } else {
        return (FW_MSG_CODE_DRV_LOAD_FUNCTION);
    }
}
static int bxe_nic_load_no_mcp ( struct bxe_softc * sc ) { int path = SC_PATH ( sc ) ; int port = SC_PORT ( sc ) ; BLOGI ( sc , " \n " , path , load_count [ path ] [ 0 ] , load_count [ path ] [ 1 ] , load_count [ path ] [ 2 ] ) ; load_count [ path ] [ 0 ] ++ ; load_count [ path ] [ 1 + port ] ++ ; BLOGI ( sc , " \n " , path , load_count [ path ] [ 0 ] , load_count [ path ] [ 1 ] , load_count [ path ] [ 2 ] ) ; if ( load_count [ path ] [ 0 ] == 1 ) { return ( FW_MSG_CODE_DRV_LOAD_COMMON ) ; } else if ( load_count [ path ] [ 1 + port ] == 1 ) { return ( FW_MSG_CODE_DRV_LOAD_PORT ) ; } else { return ( FW_MSG_CODE_DRV_LOAD_FUNCTION ) ; } }
returns the "mcp load_code" according to global load_count array
returns the " mcp load_code " according to global load_count array