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

  1. o- Error Code Return
  2.  
  3. The returned error codes are those used by the Int 13h conventions. The 
  4. recommended mapping to DOS error codes is also given.
  5.  
  6.  
  7. Returned                                                              Recommended Mapping
  8. BIOS Code     Error                DOS Code    DOS Error
  9.  
  10. -05h         Bad Reset                OC      General Failure
  11. -03H         Write Protect            00      Write Protect
  12. -20h         Bad Controller           01      Unknown Unit
  13. -FFh         Sense Fail               02      Not Ready
  14. -80h         Timeout                  02      Not Ready
  15. -01h         Bad Command              03      Unknown Command
  16. -10h         Bad ECC                  04      CRC Error
  17. -BBh         Undefined Error          05      Bad Drive Request
  18. -40h         Bad Seek                 06      Seek Error
  19. -04h         Record Not Found         08      Sector Not Found
  20. -0Bh         Bad Track                0A      Write Fault
  21. -02h         Bad Address Mark         0B      Read Fault
  22. -07h         Drive Parameter Failure  0C      General Failure
  23. -11h         Data corrected           -       No Error
  24. -06h         Media changed            0F      Media changed
  25.  
  26. When an error status is returned to the ROM, it will attempt to perform a 
  27. request sense command to determine the error. The additional sense information 
  28. byte in the returned sense information is then mapped to one of the BIOS codes 
  29. above. If no additional sense information is provided, the sense key field is
  30. mapped to a BIOS error code.
  31.         
  32. The error codes returned from the SCSI disks are not consistent. As a result,
  33. the error codes cannot accurately reflect all drives. If more detailed 
  34. information is required for a specific operation, use the Int 13h code 1Bh to
  35. locate the Sense Bytes for further analysis.
  36.  
  37. If there is an error on any request, one of the above BIOS error codes is 
  38. returned in AH/AL and the carry flag is set. If there is not error, AH=AL=0 
  39. and the carry flag is cleared.
  40.  
  41. Later versions use the extended request sense format and return the following bytes in the data 
  42. table:
  43.  
  44.     Byte Number              Description
  45.  
  46.          0                   Additional Sense Code
  47.          1                   Reserved
  48.          2                   Sense Key
  49.          3                   Reserved
  50.  
  51.