Queries the state of the physical reset signal to the I/O Adapter and the Enhanced Error Handling (EEH) slot's capabilities.
#include <sys/pdiagex_dds.h> #include <sys/pdiag_def.h> int32 pdiag_read_slot_reset( char *device_instance, int32 operation_type )
The pdiag_read_slot_reset subroutine issues a Run-Time Abstraction service (RTAS) call to query the state of the physical reset signal to the I/O Adapter and the EEH slot's capability.
The pdiag_read_slot_reset subroutine returns one of the following values for the Query Reset State operation:
Return Code | Description |
-2 | Software error |
-1 | Hardware error |
0 | Reset deactivated and I/O Adapter is not in the EEH stopped state. |
1 | Reset activated and I/O Adapter is not in the EEH stopped state. |
2 | I/O Adapter is in the EEH stopped state with the reset signal deactivated and the Load/Store Path is disabled. |
3 | I/O Adapter is in the EEH stopped state with the reset signal deactivated and the Load/Store Path is enabled. |
4 | I/O Adapter is permanently unavailable. |
The pdiag_read_slot_reset subroutine returns one of the following values for the Query Slot Capabilities operation:
Return Code | Description |
-2 | Software error. |
-1 | Hardware error. |
0 | EEH not supported. |
1 | EEH supported. |
The pdiag_set_slot_reset and pdiag_set_eeh_option subroutines.