If device end is not indicated, the
device remains busy, and a subse
quent device-end condition is
generated by the device.
4. TheI/O device is interruption
pending, or the control unit is
interruption-pending for the
addressed device. TheCSW unit
status field contains one in the
busy-bit position, identifies the
interruption condition, and may
contain other bits provided by the
device or control unit. The inter
ruption condition is cleared. TheI/O operation is not initiated.
The channel-status field indicates
any errors detected by the channel.
5. TheI/O device or the control unit
is executinga previously initiated
operation, or the control unit is
interruption-pending for a device
other than the one addressed. TheCSW unit-status field contains one
in the busy-bit position or, if the
control unit is busy, the busy and
status-modifier bits are ones. TheI/O operation is not initiated.
The channel-status field indicates
any errors detected by the channel,
and thePCI bit is one if specified
in the first ccw.
6. TheI/O device or control unit
detected an equipment or program
ming error during the initiation,
or the addressed device is not
ready. TheCSW identifies the
error. The channel-end and busy
bits are zeros, unless the device
was busy, in which case the busy
bit, as well as any bits causing
interruption conditions, are ones.
The interruption conditions indi
cated in theCSW have been cleared
at the device. TheI/O operation
is not initiated. No interruption
conditions are generated at theI/O device or subchannel.
When theSIO or SIOF function cannot be
executed because of a pending logout
which affects the operational capability
of the channel or subchannel,a full CSW is stored. The fields in the CSWare all set to zeros, with the exception of
the logout-pending bit and the channel
control-check bit, which are set to
ones. No channel logout occurs in this
case.Certain situations encountered during
the execution ofSIO cause condition
code 1 to be set. WhenSIOF is
executed, these same situations may be
encountered after condition code0 is
set. When the latter occurs, a
deferred-condition-code-11/0- interruption condition is generated to
report these situations to the program.
An exception to this may occur when
start-I/O-fast queuing is provided for
the subchannel. With start-I/O-fast
queuing, control-unit-busy or device
busy conditions encountered while
attempting to initiate theI/O operation
may be handled by the channel instead of
a deferred-condition-code-1I/O inter
ruption generated.
When theSIOF function causes condition
code0 to be set and, subsequently, it
is determined that the device is not
operational, a deferred-condition-code-3
I/O-interruption condition is generated.
In both of the above cases, in the
resultingI/O interruption, a full CSW is stored, and the deferred condition
code appears in theCSW. When start-I/O-fast queuing is provided, I/O operations may remain pending at the
subchannel while the control unit or
device is busy. The control unit or
device signals the end of the busy peri
od by presenting a status byte
containing control-unit end or device
end, respectively.
When device-end status signals the end
of a previously signaled device-busy
period, and anI/O operation is pending
at the subchannel for the device, the
channel attempts to initiate the pending
operation without causing anI/O inter
ruption. When the status is control
unit end, and one or more devices
attached to the control unit haveI/O operations pending, the channel attempts
to initiate one of the pending oper
ations.
If a control unit presents a status byte
and the channel is unable to accept that
status byte because of anI/O operation
that is pending at the associated
subchannel fora different device to
which a busy indication had previously
been presented, then theI/O operation
that is queued at the subchannel is
terminated and the subchannel becomes
interruption-pending. When the associ
ated interruption occurs, theCSW that
is stored contains the busy indication
in the unit-status byte, and the
deferred condition code is 1.
If the busy indication received by the
channel when the device or control unit
was interrogated while busy was not
presented to the program, the no
longer-busy indication is not presented
to the program. If the device-busy
indication was presented to the program
and noI/O operation is pending for that
device when the device-end indication is
received, an interruption condition is
recognized, and the device-end indi
cation is presented to the program.
If the control-unit busy indication was
presented to the program, receipt of the
corresponding control-unit-end(CUE) indication causes the channel to recog
nize an interruption condition. If the
subchannel corresponding to the unit
address with which theCUE indication is Chapter 13. Input/Output Operations 13-29
device remains busy, and a subse
quent device-end condition is
generated by the device.
4. The
pending, or the control unit is
interruption-pending for the
addressed device. The
status field contains one in the
busy-bit position, identifies the
interruption condition, and may
contain other bits provided by the
device or control unit. The inter
ruption condition is cleared. The
The channel-status field indicates
any errors detected by the channel.
5. The
is executing
operation, or the control unit is
interruption-pending for a device
other than the one addressed. The
in the busy-bit position or, if the
control unit is busy, the busy and
status-modifier bits are ones. The
The channel-status field indicates
any errors detected by the channel,
and the
in the first ccw.
6. The
detected an equipment or program
ming error during the initiation,
or the addressed device is not
ready. The
error. The channel-end and busy
bits are zeros, unless the device
was busy, in which case the busy
bit, as well as any bits causing
interruption conditions, are ones.
The interruption conditions indi
cated in the
at the device. The
is not initiated. No interruption
conditions are generated at the
When the
executed because of a pending logout
which affects the operational capability
of the channel or subchannel,
the logout-pending bit and the channel
control-check bit, which are set to
ones. No channel logout occurs in this
case.
the execution of
code 1 to be set. When
executed, these same situations may be
encountered after condition code
set. When the latter occurs, a
deferred-condition-code-1
report these situations to the program.
An exception to this may occur when
start-I/O-fast queuing is provided for
the subchannel. With start-I/O-fast
queuing, control-unit-busy or device
busy conditions encountered while
attempting to initiate the
may be handled by the channel instead of
a deferred-condition-code-1
ruption generated.
When the
code
is determined that the device is not
operational, a deferred-condition-code-3
I/O-interruption condition is generated.
In both of the above cases, in the
resulting
code appears in the
subchannel while the control unit or
device is busy. The control unit or
device signals the end of the busy peri
od by presenting a status byte
containing control-unit end or device
end, respectively.
When device-end status signals the end
of a previously signaled device-busy
period, and an
at the subchannel for the device, the
channel attempts to initiate the pending
operation without causing an
ruption. When the status is control
unit end, and one or more devices
attached to the control unit have
to initiate one of the pending oper
ations.
If a control unit presents a status byte
and the channel is unable to accept that
status byte because of an
that is pending at the associated
subchannel for
which a busy indication had previously
been presented, then the
that is queued at the subchannel is
terminated and the subchannel becomes
interruption-pending. When the associ
ated interruption occurs, the
is stored contains the busy indication
in the unit-status byte, and the
deferred condition code is 1.
If the busy indication received by the
channel when the device or control unit
was interrogated while busy was not
presented to the program, the no
longer-busy indication is not presented
to the program. If the device-busy
indication was presented to the program
and no
device when the device-end indication is
received, an interruption condition is
recognized, and the device-end indi
cation is presented to the program.
If the control-unit busy indication was
presented to the program, receipt of the
corresponding control-unit-end
nize an interruption condition. If the
subchannel corresponding to the unit
address with which the