---
name: "mpt_do_ioc_recovery"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mpt_do_ioc_recovery"
---

# mpt\_do\_ioc\_recovery(9)

Initialize or recover MPT adapter.

## NAME

mpt\_do\_ioc\_recovery - Initialize or recover MPT adapter.

## SYNOPSIS

**int mpt\_do\_ioc\_recovery(MPT\_ADAPTER \*** *ioc***, u32** *reason***, int** *sleepFlag***);**

## ARGUMENTS

*ioc*

Pointer to MPT adapter structure

*reason*

Event word / reason

*sleepFlag*

Use schedule if CAN\_SLEEP else use udelay.

## DESCRIPTION

This routine performs all the steps necessary to bring the IOC to a OPERATIONAL state.

This routine also pre-fetches the LAN MAC address of a Fibre Channel MPT adapter.

## RETURNS

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

## COPYRIGHT
