'\" t .\" Title: mpt_do_ioc_recovery .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "MPT_DO_IOC_RECOVERY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_do_ioc_recovery \- Initialize or recover MPT adapter\&. .SH "SYNOPSIS" .HP \w'int\ mpt_do_ioc_recovery('u .BI "int mpt_do_ioc_recovery(MPT_ADAPTER\ *\ " "ioc" ", u32\ " "reason" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT adapter structure .RE .PP \fIreason\fR .RS 4 Event word / reason .RE .PP \fIsleepFlag\fR .RS 4 Use schedule if CAN_SLEEP else use udelay\&. .RE .SH "DESCRIPTION" .PP This routine performs all the steps necessary to bring the IOC to a OPERATIONAL state\&. .PP This routine also pre\-fetches the LAN MAC address of a Fibre Channel MPT adapter\&. .SH "RETURN" .PP 0 for success \-1 if failed to get board READY \-2 if READY but IOCFacts Failed \-3 if READY but PrimeIOCFifos Failed \-4 if READY but IOCInit Failed \-5 if failed to enable_device and/or request_selected_regions \-6 if failed to upload firmware .SH "COPYRIGHT" .br