home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / rng-810.zip / driver.inc < prev    next >
Text File  |  1993-11-11  |  2KB  |  54 lines

  1. ; RPstatus bit values 
  2.  
  3. RPERR   =8000h              ;  error occurred, err in RPstatus    
  4. RPDEV   =4000h              ;  error code defined by driver       
  5. RPBUSY  =0200h              ;  device is busy                     
  6. RPDONE  =0100h              ;  driver done with request packet    
  7.  
  8. ; error codes returned in RPstatus 
  9.  
  10. ERROR_WRITE_PROTECT         =0000h
  11. ERROR_BAD_UNIT              =0001h
  12. ERROR_NOT_READY             =0002h
  13. ERROR_BAD_COMMAND           =0003h
  14. ERROR_CRC                   =0004h
  15. ERROR_BAD_LENGTH            =0005h    
  16. ERROR_SEEK                  =0006h
  17. ERROR_NOT_DOS_DISK          =0007h
  18. ERROR_SECTOR_NOT_FOUND      =0008h
  19. ERROR_OUT_OF_PAPER          =0009h
  20. ERROR_WRITE_FAULT           =000Ah
  21. ERROR_READ_FAULT            =000Bh
  22. ERROR_GEN_FAILURE           =000Ch
  23. ERROR_DISK_CHANGE           =000Dh
  24. ERROR_WRONG_DISK            =000Fh
  25. ERROR_UNCERTAIN_MEDIA       =0010h
  26. ERROR_CHAR_CALL_INTERRUPTED =0011h
  27. ERROR_NO_MONITOR_SUPPORT    =0012h
  28. ERROR_INVALID_PARAMETER     =0013h
  29. ERROR_DEVICE_IN_USE         =0014h
  30.  
  31. ;  driver device attributes word 
  32.  
  33. DAW_CHR    =8000h           ; 1=char, 0=block                     
  34. DAW_IDC    =4000h           ; 1=IDC available in this DD          
  35. DAW_IBM    =2000h           ; 1=non-IBM block format              
  36. DAW_SHR    =1000h           ; 1=supports shared device access     
  37. DAW_OPN    =0800h           ; 1=open/close, or removable media    
  38. DAW_LEVEL1 =0080h           ; level 1                             
  39. DAW_LEVEL2 =0100h           ; level 2 DosDevIOCtl2                
  40. DAW_LEVEL3 =0180h           ; level 3 bit strip                   
  41. DAW_GIO    =0040h           ; 1=generic IOCtl supported           
  42. DAW_CLK    =0008h           ; 1=CLOCK device                      
  43. DAW_NUL    =0004h           ; 1=NUL device                        
  44. DAW_SCR    =0002h           ; 1=STDOUT (screen)                   
  45. DAW_KBD    =0001h           ; 1=STDIN  (keyboard)                 
  46.  
  47. ; capabilities bit strip 
  48.  
  49. CBS_SHD    =0001h           ; 1=shutdown/DevIOCtl2                
  50. CBS_HMEM   =0002h           ; hign memory map for adapters        
  51. CBS_PP     =0004h           ; supports parallel ports             
  52.  
  53.  
  54.