home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Dev32 / lxheader.asm < prev    next >
Assembly Source File  |  2002-04-26  |  4KB  |  85 lines

  1. ; $Id: lxheader.asm,v 1.2 2002/04/26 23:08:55 smilcke Exp $
  2.  
  3. ;
  4. ; lxheader.asm
  5. ; Autor:               Stefan Milcke
  6. ; Erstellt am:         08.12.2001
  7. ; Letzte Aenderung am: 30.03.2002
  8. ;
  9.        .386p
  10.        include seg32.inc
  11.  
  12. DATA16 segment
  13.        public  help_header
  14.        public  device_header
  15.        extrn   help_stub_strategy : near
  16.        extrn   device_stub_strategy : near
  17.        extrn   device_stub_idc : near
  18. ;*********************************************************************************************
  19. ;************************* Device Driver Header **********************************************
  20. ;*********************************************************************************************
  21. ;DEZE MOET ALS EERSTE blijven staan!!!!
  22. help_header    dd DATA16:device_header  ; Pointer to next device header
  23.                dw 1000100110000000b            ; Device attributes
  24. ;                 ||||| +-+   ||||
  25. ;                 ||||| | |   |||+------------------ STDIN
  26. ;                 ||||| | |   ||+------------------- STDOUT
  27. ;                 ||||| | |   |+-------------------- NULL
  28. ;                 ||||| | |   +--------------------- CLOCK
  29. ;                 ||||| | |
  30. ;                 ||||| | +------------------------+ (001) OS/2
  31. ;                 ||||| |                          | (010) DosDevIOCtl2 + SHUTDOWN
  32. ;                 ||||| +--------------------------+ (011) Capability bit strip
  33. ;                 |||||
  34. ;                 ||||+----------------------------- OPEN/CLOSE (char) or Removable (blk)
  35. ;                 |||+------------------------------ Sharing support
  36. ;                 ||+------------------------------- IBM
  37. ;                 |+-------------------------------- IDC entry point
  38. ;                 +--------------------------------- char/block device driver
  39.  
  40.                dw offset CODE16:help_stub_strategy    ; Strategy routine entry point
  41.                dw 0                ; IDC routine entry point
  42.                db 'LXAPIH$  '                  ; Device name
  43.                db 8 dup (0)                    ; Reserved
  44.                dw 0000000000010011b            ; Level 3 device driver capabilities
  45. ;                            |||||
  46. ;                            ||||+------------------ DosDevIOCtl2 + Shutdown
  47. ;                            |||+------------------- More than 16 MB support
  48. ;                            ||+-------------------- Parallel port driver
  49. ;                            |+--------------------- Adapter device driver
  50. ;                            +---------------------- InitComplete
  51.                dw 0000000000000000b
  52.  
  53. device_header  dd -1
  54.                dw 1101100110000000b            ; Device attributes
  55. ;                 ||||| +-+   ||||
  56. ;                 ||||| | |   |||+------------------ STDIN
  57. ;                 ||||| | |   ||+------------------- STDOUT
  58. ;                 ||||| | |   |+-------------------- NULL
  59. ;                 ||||| | |   +--------------------- CLOCK
  60. ;                 ||||| | |
  61. ;                 ||||| | +------------------------+ (001) OS/2
  62. ;                 ||||| |                          | (010) DosDevIOCtl2 + SHUTDOWN
  63. ;                 ||||| +--------------------------+ (011) Capability bit strip
  64. ;                 |||||
  65. ;                 ||||+----------------------------- OPEN/CLOSE (char) or Removable (blk)
  66. ;                 |||+------------------------------ Sharing support
  67. ;                 ||+------------------------------- IBM
  68. ;                 |+-------------------------------- IDC entry point
  69. ;                 +--------------------------------- char/block device driver
  70.  
  71.                dw offset CODE16:device_stub_strategy  ; Strategy routine entry point
  72.                dw offset CODE16:device_stub_idc       ; IDC routine entry point
  73.                db 'LXAPI32$'                   ; Device name
  74.                db 8 dup (0)                    ; Reserved
  75.                dw 0000000000010011b            ; Level 3 device driver capabilities
  76. ;                            |||||
  77. ;                            ||||+------------------ DosDevIOCtl2 + Shutdown
  78. ;                            |||+------------------- More than 16 MB support
  79. ;                            ||+-------------------- Parallel port driver
  80. ;                            |+--------------------- Adapter device driver
  81. ;                            +---------------------- InitComplete
  82.                dw 0000000000000000b
  83. DATA16 ends
  84.  
  85. END