home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / gtak212b.zip / SOURCE.ZIP / OS2-ST01 / devhdr.inc < prev    next >
Text File  |  1991-05-31  |  3KB  |  63 lines

  1. ;
  2. ; Copyright (c) Microsoft Corporation,  1988
  3. ;
  4. ;
  5.  
  6. ;**     Device Table Record
  7. ;
  8. ;       Devices are described by a chain of these records
  9.  
  10. SysDev  STRUC
  11. SDevNext        DD      ?       ; Pointer to next device header
  12. SDevAtt         DW      ?       ; Attributes of the device
  13. SDevStrat       DW      ?       ; Strategy entry point
  14. SDevInt         DW      ?       ; Interrupt entry point
  15. SDevName        DB      '        ' ; Name of device (only first byte used for block)
  16. SDevProtCS      DW      ?       ; Protect-mode CS selecter of strategy entry pt
  17. SDevProtDS      DW      ?       ; Protect-mode DS selecter
  18. SDevRealCS      DW      ?       ; Real-mode CS segment of strategy entry pt
  19. SDevRealDS      DW      ?       ; Real-mode DS segment
  20. SysDev  ENDS
  21.  
  22. ;*      Field aliases for use in loading block drivers
  23.  
  24. SDevCDPBs       equ     byte ptr SDevName+1
  25. SDevDPBseg      equ     word ptr SDevProtCS
  26. SDevBPBvec      equ     word ptr SDevProtDS
  27.  
  28.  
  29.  
  30. ;**     Device Driver Type defininitions
  31. ;
  32.  
  33. DEV_CIN         EQU 0000000000000001B ;  0  Device is console in
  34. DEV_COUT        EQU 0000000000000010B ;  1  Device is console out
  35. DEV_NULL        EQU 0000000000000100B ;  2  Device is the Null device
  36. DEV_CLOCK       EQU 0000000000001000B ;  3  Device is the clock device
  37. DEV_SPEC        EQU 0000000000010000B ;  4  Devices can support INT 29h
  38. DEV_ADD_ON      EQU 0000000000100000B ;  5  Device is add-on driver (BWS)
  39. DEV_GIOCTL      EQU 0000000001000000B ;  6  Device supports generic ioctl
  40. DEV_FCNLEV      EQU 0000001110000000B ; 9-7 Device function level
  41. ;                   0000010000000000B ; 10
  42. DEV_OPEN        EQU 0000100000000000B ; 11  Accepts Open/Close (char)
  43. DEV_REMOVABLE   EQU 0000100000000000B ; 11  Removable Media (block)
  44. DEV_PROTECT     EQU 0001000000000000B ; 12  Let OS/2 handle sharing
  45. DEV_TIL_BUSY    EQU 0010000000000000B ; 13  Supports output until busy
  46. DEV_NON_IBM     EQU 0010000000000000B ; 13  Is a non IBM device (block)
  47. DEV_IDC         EQU 0100000000000000B ; 14  Device accepts IDC request
  48. DEV_CHAR_DEV    EQU 1000000000000000B ; 15  Device is a character device
  49.  
  50. ;       Level definitions for devices
  51.  
  52. ;                   0000001110000000B   ; Device function level
  53. DEVLEV_0    EQU     0000000000000000B   ; DOS 3.0 and before 
  54. DEVLEV_1    EQU     0000000010000000B   ; OS/2
  55. DEVLEV_2    EQU     0000000100000000B    ; OS/2, supports ioctl2
  56. DEVLEV_3    EQU     0000000110000000B
  57. DEVLEV_4    EQU     0000001000000000B
  58. DEVLEV_5    EQU     0000001010000000B
  59. DEVLEV_6    EQU     0000001100000000B
  60. DEVLEV_7    EQU     0000001110000000B
  61.  
  62.  
  63.