1. NAME

mpt_HardResetHandler - Generic reset handler

2. SYNOPSIS

int mpt_HardResetHandler(MPT_ADAPTER *  ioc , int  sleepFlag );

3. ARGUMENTS

ioc
    Pointer to MPT_ADAPTER structure

sleepFlag
    Indicates if sleep or schedule must be called.

4. DESCRIPTION

Issues SCSI Task Management call based on input arg values. If TaskMgmt fails, returns associated SCSI request.

5. REMARK

_HardResetHandler can be invoked from an interrupt thread (timer) or a non-interrupt thread. In the former, must not call schedule.

6. NOTE

A return of -1 is a FATAL error case, as it means a FW reload/initialization failed.

Returns 0 for SUCCESS or -1 if FAILED.

7. COPYRIGHT