home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / drivers / scsi / futrdomn / manual / int13_02.txt < prev    next >
Encoding:
Text File  |  1990-08-18  |  1.6 KB  |  35 lines

  1. Code 02                                  -Disk Read
  2.  
  3. Input registers - as defined under general assignment.
  4.  
  5. Special output registers - none.
  6.  
  7. Operation:
  8.  
  9.     Two internal parameters are used to convert the caller's head, sector, and
  10.     cylinder number to a SCSI logical block number. These parameters are the 
  11.     heads per cylinder and sectors per track numbers. The source of these 
  12.     numbers is discussed under Codes 08 and 19. If the drive has 256 byte 
  13.     sectors, the logical block number and the length are multiplied by two 
  14.     before being sent to the drive.
  15.  
  16.     If the SCSI bus is not in an idle condition at the start of the command 
  17.     execution, an Initialize System (Code 00) is executed and an error return
  18.     made to the caller.
  19.  
  20.     A SCSI Read command (08) is issued to the specified disk. The BIOS then 
  21.     waits for SCSI Request to be asserted. When it is asserted, a check is 
  22.     made to verify that SCSI C/D is not asserted. If C/D is asserted, 
  23.     operation proceeds directly to the Status/Message phase.
  24.  
  25.     Data is transferred in blocks of 512 and 256 bytes, depending on the 
  26.     drive's sector size. After the request is detected, a sector sized block
  27.     is transferred to the caller's buffer. If the  transfer is complete,
  28.     the operation proceeds to the Status/Message phase; otherwise, it waits 
  29.     again for the SCSI Request line to be asserted.
  30.  
  31.     If there is an error reported in the Status/Message phase of the
  32.     operation, the SCSI Request Sense command is issued and the results 
  33.     returned as an error in AH/AL.
  34.  
  35.