FreeBSD/sys/dev/bxe/bxe.c
/* request unload mode from the MCP: COMMON, PORT or FUNCTION */
request unload mode from the MCP: COMMON, PORT or FUNCTION
request unload mode from the MCP : COMMON PORT or FUNCTION
static uint32_t
bxe_send_unload_req(struct bxe_softc *sc,
                    int              unload_mode)
{
    uint32_t reset_code = 0;
    if (unload_mode == UNLOAD_NORMAL) {
        reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
    } else {
        reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
    }
    if (!BXE_NOMCP(sc)) {
        reset_code = bxe_fw_command(sc, reset_code, 0);
    } else {
        reset_code = bxe_nic_unload_no_mcp(sc);
    }
    return (reset_code);
}
static uint32_t bxe_send_unload_req ( struct bxe_softc * sc , int unload_mode ) { uint32_t reset_code = 0 ; if ( unload_mode == UNLOAD_NORMAL ) { reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS ; } else { reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS ; } if ( ! BXE_NOMCP ( sc ) ) { reset_code = bxe_fw_command ( sc , reset_code , 0 ) ; } else { reset_code = bxe_nic_unload_no_mcp ( sc ) ; } return ( reset_code ) ; }
request unload mode from the MCP: COMMON, PORT or FUNCTION
request unload mode from the MCP : COMMON PORT or FUNCTION
/* Select the UNLOAD request mode */ /* Send the request to the MCP */