1MPT_DIAG_RESET(9) Message-based devices MPT_DIAG_RESET(9)
2
3
4
6 mpt_diag_reset - Perform hard reset of the adapter.
7
9 int mpt_diag_reset(MPT_ADAPTER * ioc, int ignore, int sleepFlag);
10
12 ioc
13 Pointer to MPT_ADAPTER structure
14
15 ignore
16 Set if to honor and clear to ignore the reset history bit
17
18 sleepFlag
19 CAN_SLEEP if called in a non-interrupt thread, else set to NO_SLEEP
20 (use mdelay instead)
21
23 This routine places the adapter in diagnostic mode via the
24 WriteSequence register and then performs a hard reset of adapter via
25 the Diagnostic register. Adapter should be in ready state upon
26 successful completion.
27
29 1 hard reset successful 0 no reset performed because reset history bit
30 set -2 enabling diagnostic mode failed -3 diagnostic reset failed
31
33Kernel Hackers Manual 2.6. November 2011 MPT_DIAG_RESET(9)