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

  1. ; $Id: header.asm,v 1.2 2002/04/26 23:09:38 smilcke Exp $
  2.  
  3. ;
  4. ; header.asm
  5. ; Autor:               Stefan Milcke
  6. ; Erstellt am:         27.03.2002
  7. ; Letzte Aenderung am: 02.04.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    dw (OFFSET DATA16:device_header)  ; Pointer to next device header
  23.                dw SEG DATA16:device_header
  24.                dw 1000100110000000b            ; Device attributes
  25. ;                 ||||| +-+   ||||
  26. ;                 ||||| | |   |||+------------------ STDIN
  27. ;                 ||||| | |   ||+------------------- STDOUT
  28. ;                 ||||| | |   |+-------------------- NULL
  29. ;                 ||||| | |   +--------------------- CLOCK
  30. ;                 ||||| | |
  31. ;                 ||||| | +------------------------+ (001) OS/2
  32. ;                 ||||| |                          | (010) DosDevIOCtl2 + SHUTDOWN
  33. ;                 ||||| +--------------------------+ (011) Capability bit strip
  34. ;                 |||||
  35. ;                 ||||+----------------------------- OPEN/CLOSE (char) or Removable (blk)
  36. ;                 |||+------------------------------ Sharing support
  37. ;                 ||+------------------------------- IBM
  38. ;                 |+-------------------------------- IDC entry point
  39. ;                 +--------------------------------- char/block device driver
  40.  
  41.                dw (offset CODE16:help_stub_strategy) ; Strategy routine entry point
  42.                dw 0                    ; IDC routine entry point
  43.                db 'SK32HLP$ '                   ; Device name
  44.                db 8 dup (0)                    ; Reserved
  45.                dw 0000000000010011b            ; Level 3 device driver capabilities
  46. ;                            |||||
  47. ;                            ||||+------------------ DosDevIOCtl2 + Shutdown
  48. ;                            |||+------------------- More than 16 MB support
  49. ;                            ||+-------------------- Parallel port driver
  50. ;                            |+--------------------- Adapter device driver
  51. ;                            +---------------------- InitComplete
  52.                dw 0000000000000000b
  53.  
  54. device_header  dd -1
  55.                dw 1101100110000000b            ; Device attributes
  56. ;                 ||||| +-+   ||||
  57. ;                 ||||| | |   |||+------------------ STDIN
  58. ;                 ||||| | |   ||+------------------- STDOUT
  59. ;                 ||||| | |   |+-------------------- NULL
  60. ;                 ||||| | |   +--------------------- CLOCK
  61. ;                 ||||| | |
  62. ;                 ||||| | +------------------------+ (001) OS/2
  63. ;                 ||||| |                          | (010) DosDevIOCtl2 + SHUTDOWN
  64. ;                 ||||| +--------------------------+ (011) Capability bit strip
  65. ;                 |||||
  66. ;                 ||||+----------------------------- OPEN/CLOSE (char) or Removable (blk)
  67. ;                 |||+------------------------------ Sharing support
  68. ;                 ||+------------------------------- IBM
  69. ;                 |+-------------------------------- IDC entry point
  70. ;                 +--------------------------------- char/block device driver
  71.  
  72.                dw (offset CODE16:device_stub_strategy); Strategy routine entry point
  73.                dw (offset CODE16:device_stub_idc)     ; IDC routine entry point
  74.                db 'SK32$   '                   ; Device name
  75.                db 8 dup (0)                    ; Reserved
  76.                dw 0000000000010011b            ; Level 3 device driver capabilities
  77. ;                            |||||
  78. ;                            ||||+------------------ DosDevIOCtl2 + Shutdown
  79. ;                            |||+------------------- More than 16 MB support
  80. ;                            ||+-------------------- Parallel port driver
  81. ;                            |+--------------------- Adapter device driver
  82. ;                            +---------------------- InitComplete
  83.                dw 0000000000000000b
  84. DATA16 ends
  85.  
  86. end
  87.  
  88.