'\" t .\" Title: mpt_diag_reset .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "MPT_DIAG_RESET" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Message-based devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mpt_diag_reset \- Perform hard reset of the adapter\&. .SH "SYNOPSIS" .HP \w'int\ mpt_diag_reset('u .BI "int mpt_diag_reset(MPT_ADAPTER\ *\ " "ioc" ", int\ " "ignore" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT_ADAPTER structure .RE .PP \fIignore\fR .RS 4 Set if to honor and clear to ignore the reset history bit .RE .PP \fIsleepFlag\fR .RS 4 CAN_SLEEP if called in a non\-interrupt thread, else set to NO_SLEEP (use mdelay instead) .RE .SH "DESCRIPTION" .PP This routine places the adapter in diagnostic mode via the WriteSequence register and then performs a hard reset of adapter via the Diagnostic register\&. Adapter should be in ready state upon successful completion\&. .SH "RETURNS" .PP 1 hard reset successful 0 no reset performed because reset history bit set \-2 enabling diagnostic mode failed \-3 diagnostic reset failed .SH "COPYRIGHT" .br