home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gtak212.zip / OS2-DD / dd-head.inc < prev    next >
Text File  |  1993-01-16  |  2KB  |  70 lines

  1. ;##############################################################################
  2. ; $Id: dd-head.inc,v 1.3 1992/07/24 11:33:41 ak Exp $
  3. ;##############################################################################
  4. ; $Log: dd-head.inc,v $
  5. ; Revision 1.3  1992/07/24  11:33:41  ak
  6. ; OS/2 2.0
  7. ; BASEDEV drivers
  8. ; VGA debugging
  9. ;
  10. ; Revision 1.2  1992/01/06  20:10:04  ak
  11. ; *** empty log message ***
  12. ;
  13. ; Revision 1.1.1.1  1992/01/06  19:54:51  ak
  14. ; Alpha version.
  15. ;
  16. ; Revision 1.1  1992/01/06  19:54:50  ak
  17. ; Initial revision
  18. ;
  19. ;##############################################################################
  20.  
  21.     .seq
  22.     .386p
  23.  
  24.     public    _header
  25.     public    _end_code
  26.     extrn    _strategy:near
  27.  
  28.     include    dd-segs.inc
  29.  
  30. ETEXT    segment    word public 'CODE' use16
  31. _end_code    label byte
  32. ETEXT    ends
  33.  
  34. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  35. BegData    _DATA
  36.  
  37. CHR    = 8000H            ; Bit set if character device
  38. IDC    = 4000H            ; Inter DD communications enabled
  39. NIBM    = 2000H            ; Bit set if NON-IBM Block Format
  40. SHARE    = 1000H            ; Set to support shrd dev. access
  41. RM    = 0800H            ; Set if Removable Media (Blk)
  42. OPN    = 0800H            ; Set if Device Open/Close (Char)
  43. OS2L2    = 0100H            ; OS/2 Function Level DD with IOCtl2
  44. OS2L1    = 0080H            ; OS/2 Function Level DD
  45. CLK    = 0008H            ; Clock Device
  46. NUL    = 0004H            ; Null Device
  47. SCR    = 0002H            ; Std Output Device (SCREEN)
  48. KBD    = 0001H            ; Std Input Device (KEYBOARD)
  49.  
  50. _header    dd    -1        ; Pointer to next dd header
  51.     dw    DD_ATTRIB    ; Driver attributes
  52.     dw    offset strategy    ; Point to Strategy Routine
  53.     dw    0        ; Point to IDC Routine
  54.     db    DD_NAME     ; Name Field (Must be 8 bytes)
  55.     dq    0        ; Reserved for OS/2
  56.  
  57. EndData    _DATA
  58.  
  59. BegCode _TEXT
  60.  
  61. strategy proc    far
  62.     push    es
  63.     push    bx
  64.     call    _strategy
  65.     add    sp, 4
  66.     ret
  67. strategy endp
  68.  
  69. EndCode _TEXT
  70.