A typical CCW string to read or write two SOO-byte records is as
follows:
SEEK,A,CC,6 SET SECTOR (not used for 2314/2319) SRCH,A+2,CC,5 TIC,*-8,0,0 RD or WRT,DATA,CC+SILI,800 SEEK HEAD,B,CC,6 (omitted if HEAD number unchanged) SET SECTOR SRCH,B+2,CC,5 TIC,*-8,O,0 RD or WRT,DATA+800,SILI,800 A SEEK and SRCH arguments for first RD/WRT B SEEK and SRCH arguments for second RD/WRT The condition codes and completion codes returned are as follows: cc=O I/O complete with no errors cc=l Error condition. Register 15 contains one of the following:
R15=1
R 15=2
R15=3
R15=4
R15=5
Device not attached
Device not 2319, 2314, 3330, 3340, or 3350 Attempt to write on a read-only disk
Cylinder number not in range of user's disk
Virtual device is busy or has an interrupt pending
cc=2 Error condition. Register 15 contains one of the following:
R15=5
R15=6
R15=1
R15=8
R15=9
R 15=10 R15=11
R15=12
Pointer to ccw string not doubleword-aligned. SEEK/SEARCH arguments not within range of user's
storage READ/WRITE CCW is neither Read (06) nor Write (05) READ/WRITE byte count=O READ/WRITE byte count greater than 204S READ/WRITE buffer not within user's storage
The value in R 15, at entry, w-as not a positive number froB 1 through 15. or was not large enough for the
given CCW string.
Cylinder number on seek head was not the same number as
on the first seek.
cc=3 Uncorrectable I/O error:
R15=13 CSW (8 bytes) returned to user Sense bytes are available if user issues a SENSE com.and Code == Clg!: Er!:.Q!: Cylinders Execution of DIAGNOSE code X'1C' allows a user with privilege class F to
clear the error recording data on disk. The DftKIOEFft routine performs the clear operation. The register specified as Rx contains a one-byte
code value in the low-order byte as follows:
Code Xt01' 1'02' Function Clear-aid reformat all error recording, leaving any frame records intact
Clear and reformat all error recording cylinders, erasing
both frame records and error records
CP Introduction 1-51
with DIAGNOSE code 1'20', a virtual aachine user can specify any valid CCW chain to be performed on a tape or disk device. Bo I/O interrupts
are reflected to the virtual aachine; the DIAGBOSE instruction is completed only when all I/O commands in the specified CCW chain are
finished. The register specified as Rx contains the virtual device
address. The Ry register contains the address of the CCW chain.
The CCWs are processed via DMKCCWTR through DMKGIOEI, providing full
virtual I/O in a synchronous fashion (se1f-aodifying CCWs are not
permitted, however) to any virtual machine specified. Control returns
to the virtual machine only after completion of the operation or
detection of a fatal error condition. EREP support is provided for tape
and DASD devices only; all other devices will present an error condition
in the PSW to the virtual user. Condition codes and error codes are
returned to the virtual system. The condition codes and error codes returned are as follows:
cc=O I/O completed with no errors
cc=1 Error condition. Register 15 contains the following:
R15=1 Device is either not attached or the virtual channel is
dedica ted.
R15=5 Virtual device is busy or has an interrupt pending.
cc=2 Exception conditions.
following:
Register 15 contains one of the
R15=2 Unit exception bit in device status byte=1
R15=3 Wrong length record detected.
cc=3 Error Condition:
R15=13 A permanent I/O error occurred or an unsupported device was specified. The two rightmost positions of the
user's Ry register contain the first two sense bytes DIAGNOSE code 1'24' requests CP to provide a virtual aachine with
identifying inforaation and status inforaation about a specified virtual
device. The virtual machine must specify the virtual device for which
information is requested. CP returns inforaation about the virtual
device and associated real device in the RX, Ry, and Ry+1 registers. CP
also provides a condition code identifying the specific device
information returned to the virtual aachine. When a virtual machine issues DIAGNOSE code 1'24', the Rx register must contain the virtual device address for which information is
requested or the value negative 1 (-1). Specify -1 when the device is a
virtual console whose address is unknown to the virtual aachine. When CP returns control to the virtual machine,
registers contain device information. The Ry
information about the virtual device and the Ry+1 about the real device. If -1 was specified and CP
console, the Rx register contains information about
the Ry, Ry+l, and Rx
register contains
register information
located the virtual
the virtual console.
CP obtains device information froa three control blocks:
device information from the virtual device block (VDEVBLOK), virtual
and real
1-58 IB! V!/370 System Logic and Problem Determination--Voluae 1
Previous Page Next Page