home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / ms / s12349 / devhdr.inc next >
Text File  |  1989-06-06  |  2KB  |  59 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  2 5 Device is console in
  34. DEV_COUT        EQU 0000000000000010B ;  1  2 5 Device is console out
  35. DEV_NULL        EQU 0000000000000100B ;  2  2 5 Device is the Null device
  36. DEV_CLOCK       EQU 0000000000001000B ;  3  2 5 Device is the clock device
  37. DEV_SPEC        EQU 0000000000010000B ;  4  2   Devices can support INT 29h
  38. DEV_ADD_ON      EQU 0000000000100000B ;  5      Device is add-on driver (BWS)
  39. DEV_GIOCTL      EQU 0000000001000000B ;  6   3  Device supports generic ioctl
  40. DEV_FCNLEV      EQU 0000001110000000B ; 9-7   5 Device function level
  41. ;                   0000010000000000B ; 10
  42. DEV_30          EQU 0000100000000000B ; 11  2 5 Accepts Open/Close/Removable Media
  43. ;                   0001000000000000B ; 12
  44. DEV_NON_IBM     EQU 0010000000000000B ; 13  2 5 Device is a non IBM device.
  45. DEV_IOCTL       EQU 0100000000000000B ; 14  2   Device accepts IOCTL request
  46. DEV_CHAR_DEV    EQU 1000000000000000B ; 15  2 5 Device is a character device
  47.  
  48. ;       Level definitions for devices
  49.  
  50. ;                   0000001110000000B   ; Device function level
  51. DEVLEV_0    EQU     0000000000000000B   ; DOS 3.0 and before 
  52. DEVLEV_1    EQU     0000000010000000B   
  53. DEVLEV_2    EQU     0000000000000000B
  54. DEVLEV_3    EQU     0000000000000000B
  55. DEVLEV_4    EQU     0000000000000000B
  56. DEVLEV_5    EQU     0000000000000000B
  57.  
  58.  
  59.