home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TESTSPAR / ERROR.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  1.2 KB  |  48 lines

  1. ;+
  2. ; BIOS error codes
  3. ;-
  4. EDRVNR        equ    -2        ; driver not ready
  5. EWRITF        equ    -10        ; write fault
  6. EREADF        equ    -11        ; read fault
  7. EWRPRO        equ    -13        ; write on write-protected media
  8. E_CHNG        equ    -14        ; media change detected
  9. CRITRETRY    equ    $00010000    ; "retry" return code
  10.  
  11.  
  12. ;+
  13. ; Controller error codes for ACSI and SCSI drives
  14. ;-
  15. CHKSTATUS    equ    2        ; check condition status
  16. DRVNRDY        equ    $4        ; drive not ready
  17. WRTPRTD        equ    $27        ; write on write-protected media
  18. MDMCHGD        equ    $28        ; media change detected
  19.  
  20.  
  21. ;+
  22. ; Bit assignments in Error Register of IDE drive
  23. ;-
  24. BBK        equ    7        ; 1: bad block detected
  25. UNC        equ    6        ; 1: non-correctable data error
  26. ;        equ    5        ; not used
  27. IDNF        equ    4        ; 1: requested ID not found
  28. ;        equ    3        ; not used
  29. ABRT        equ    2        ; 1: aborted command error
  30. TK0        equ    1        ; 1: track 0 not found error
  31. DMNF        equ    0        ; 1: data mark not found
  32.  
  33.  
  34. ;+
  35. ; Bit assignments in Status Register
  36. ;-
  37. BSY        equ    7        ; 1: drive busy
  38. DRDY        equ    6        ; 1: drive ready
  39. DWF        equ    5        ; 1: write fault detected
  40. DSC        equ    4        ; 1: actuator on track
  41. DRQ        equ    3        ; 1: ready to transfer
  42. CORR        equ    2        ; 1: data error corrected
  43. IDX        equ    1        ; 1: disk revolution completed
  44. ERR        equ    0        ; 1: error occurred
  45.  
  46.     
  47.  
  48.