home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / devddemo.zip / CONST.H < prev    next >
Text File  |  1991-01-31  |  4KB  |  81 lines

  1. /*****************************************************************************/
  2. /* This file contains all internal constants used by the device driver       */
  3. /* Constants exposed outside the DD are in INTERFAC.H                        */
  4. /*****************************************************************************/
  5.  
  6. /* The largest command OS/2 can issue */
  7. #define MAXCMD 27
  8.  
  9. /* Boolean values */
  10. #define TRUE              1
  11. #define FALSE             0
  12. #define SUCCESS           0
  13.  
  14. /* Bit and return code values for the Request packet status field */
  15. #define DONE 0x0100
  16. #define ERROR 0x8000
  17. #define DEV_ERR 0x4000
  18. #define INV_CMD 0x0003
  19. #define WRT_FAULT 0x000A
  20. #define GEN_FAIL 0x000C
  21. #define INIT_FAIL_STATUS 0x8100
  22.  
  23. /*****************************************************************************/
  24. /*                                                                           */
  25. /* Constants used by devhlp                                                  */
  26. /*                                                                           */
  27. /*****************************************************************************/
  28. #define devhlp_SchedClockAddr           0x0000
  29. #define devhlp_DevDone                  0x0001
  30. #define devhlp_Yield                    0x0002
  31. #define devhlp_TCYield                  0x0003
  32. #define devhlp_Block                    0x0004
  33. #define devhlp_Run                      0x0005
  34. #define devhlp_SemRequest               0x0006
  35. #define devhlp_SemClear                 0x0007
  36. #define devhlp_SemHandle                0x0008
  37. #define devhlp_PushReqPacket            0x0009
  38. #define devhlp_PullReqPacket            0x000a
  39. #define devhlp_PullParticular           0x000b
  40. #define devhlp_SortReqPacket            0x000c
  41. #define devhlp_AllocReqPacket           0x000d
  42. #define devhlp_FreeReqPacket            0x000e
  43. #define devhlp_QueueInit                0x000f
  44. #define devhlp_QueueFlush               0x0010
  45. #define devhlp_QueueWrite               0x0011
  46. #define devhlp_QueueRead                0x0012
  47. #define devhlp_Lock                     0x0013
  48. #define devhlp_Unlock                   0x0014
  49. #define devhlp_PhysToVirt               0x0015
  50. #define devhlp_VirtToPhys               0x0016
  51. #define devhlp_PhysToUVirt              0x0017
  52. #define devhlp_AllocPhys                0x0018
  53. #define devhlp_FreePhys                 0x0019
  54. #define devhlp_SetROMVector             0x001a
  55. #define devhlp_SetIRQ                   0x001b
  56. #define devhlp_UnSetIRQ                 0x001c
  57. #define devhlp_SetTimer                 0x001d
  58. #define devhlp_ResetTimer               0x001e
  59. #define devhlp_MonitorCreate            0x001f
  60. #define devhlp_Register                 0x0020
  61. #define devhlp_DeRegister               0x0021
  62. #define devhlp_MonWrite                 0x0022
  63. #define devhlp_MonFlush                 0x0023
  64. #define devhlp_GetDOSVar                0x0024
  65. #define devhlp_SendEvent                0x0025
  66. #define devhlp_ROMCritSection           0x0026
  67. #define devhlp_VerifyAccess             0x0027
  68. #define devhlp_AllocGDTSelector         0x002d
  69. #define devhlp_InternalError            0x002b
  70. #define devhlp_PhysToGDTSelector        0x002e
  71. #define devhlp_RealToProt               0x002f
  72. #define devhlp_ProtToReal               0x0030
  73. #define devhlp_EOI                      0x0031
  74. #define devhlp_UnPhysToVirt             0x0032
  75. #define devhlp_TickCount                0x0033
  76. #define devhlp_GetLIDEntry              0x0034
  77. #define devhlp_FreeLIDEntry             0x0035
  78. #define devhlp_ABIOSCall                0x0036
  79. #define devhlp_ABIOSCommonEntry         0x0037
  80.  
  81.