12.07.2015 Views

Systems Reference Library - All about the IBM 1130 Computing ...

Systems Reference Library - All about the IBM 1130 Computing ...

Systems Reference Library - All about the IBM 1130 Computing ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Device end, when subsequently provided by <strong>the</strong> device,causes an interrupt condition to be generated.When command chaining is specified after animmediate operation and no unusual conditions havebeen detected during <strong>the</strong> execution of <strong>the</strong> command,no interrupt condition is generated. The subsequentcommands in <strong>the</strong> chain are handled normally, andchannel end for <strong>the</strong> last operation in <strong>the</strong> chain causes<strong>the</strong> program to be interrupted. The non-0 bytecount required for immediate operations does notresult in a program check, incorrect length indication,or suppression of command chaining.Pending InterruptionIf a start I/0 addresses an I/0 device having a pendinginterrupt condition due to device end or attention,or if a start I/0 addresses a control unit having apending channel end or device end for <strong>the</strong> device,<strong>the</strong>n <strong>the</strong> channel status and unit address-status portionsof <strong>the</strong> CSW are set. The unit status field contains<strong>the</strong> busy indicator, identifies <strong>the</strong> interrupt,and may contain o<strong>the</strong>r indicators provided by <strong>the</strong>control unit or I/0 device. The pending interruptcondition is cleared and unit status pending in <strong>the</strong>channel status field is turned on, causing an interruptto <strong>the</strong> program. The remaining indicators in<strong>the</strong> channel status field are off.The operation is not initiated, and <strong>the</strong> channelis free as soon as <strong>the</strong> initiation sequence is completed.Thus <strong>the</strong> channel and I/0 device are immediatelyavailable for initiation of ano<strong>the</strong>r operation.Device or Control Unit BusyIf a start I/O addresses an I/0 device that is busy,a control unit that is busy, or a control unit that hasa pending channel end or control unit end for a deviceo<strong>the</strong>r than <strong>the</strong> one addressed, <strong>the</strong>n <strong>the</strong> channelstatus and unit address-status portions of <strong>the</strong> CSWare set. The unit status field contains <strong>the</strong> busyindicator or, if <strong>the</strong> control unit is busy, <strong>the</strong> busyand status modifier indicators. Unit status pendingin <strong>the</strong> channel status field is turned on, causing aninterrupt to <strong>the</strong> program. The remaining indicatorsin <strong>the</strong> channel status field are off.The operation is not initiated, and <strong>the</strong> channel isfree immediately after <strong>the</strong> initiation sequence.Termination With Data TransferFor operations involving data transfer, ei<strong>the</strong>r <strong>the</strong>channel or I/O device can control <strong>the</strong> timing of <strong>the</strong>channel end condition. If command chaining is notspecified, or if chaining is suppressed because ofunusual conditions, channel end causes terminationof <strong>the</strong> operation at <strong>the</strong> channel. The status indicatorsin <strong>the</strong> associated CSW indicate channel end andunusual conditions, if any.The I/0 device can signal channel end any timeafter <strong>the</strong> initiation of <strong>the</strong> operation. Channel end mayoccur prior to any actual data transfer.The channel signals <strong>the</strong> device to terminate datatransfer whenever any of <strong>the</strong> following conditionsoccur:1. The storage areas specified for <strong>the</strong> operationare exhausted or filled. This condition occurswhen <strong>the</strong> channel has decreased <strong>the</strong> count in <strong>the</strong>last CCW associated with <strong>the</strong> operation to 0.A count of 0 indicates that <strong>the</strong> channel hastransferred all information specified by <strong>the</strong> program.2. A program or unit check condition is detected.This condition is due to errors and causes prematuretermination of <strong>the</strong> operation.3. An XIO control (halt I/0) is executed. Executionof a halt I/O automatically disconnects <strong>the</strong> devicefrom <strong>the</strong> channel.If command chaining is specified, <strong>the</strong> deviceexecuting <strong>the</strong> operation remains connected to <strong>the</strong>channel until <strong>the</strong> last command of <strong>the</strong> chain has beenexecuted. Any unusual conditions cause commandchaining to be suppressed and a terminating conditionto be generated. The unusual conditions can be detectedby <strong>the</strong> channel or <strong>the</strong> I/O device. If <strong>the</strong> channelis aware of <strong>the</strong> unusual condition by <strong>the</strong> timechannel end is signaled for <strong>the</strong> operation, <strong>the</strong> chainis terminated as if <strong>the</strong> operation in which <strong>the</strong> unusualconditions occurred were <strong>the</strong> last operation in <strong>the</strong>chain.Termination With Halt I/OExecution of a halt I/0 terminates <strong>the</strong> current I/0operation at <strong>the</strong> addressed selector channel, controlunit, or I/0 device. If <strong>the</strong> channel is not busy,modifier bits 8 through 15 of <strong>the</strong> halt I/0 identify <strong>the</strong>control unit and 1/0 device to which <strong>the</strong> halt I/0applies.When <strong>the</strong> channel is available, and <strong>the</strong> controlunit is busy, <strong>the</strong> addressed device is signaled toterminate <strong>the</strong> current operation. Halt I/0 does notaffect <strong>the</strong> state of <strong>the</strong> control unit when both channeland control unit are available.If halt I/0 is issued when <strong>the</strong> channel is executinga data transfer, <strong>the</strong> data transfer is terminated and<strong>the</strong> device performing <strong>the</strong> operation is immediatelydisconnected from <strong>the</strong> channel. In this case,212

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!