home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / INT2F.H < prev    next >
Text File  |  1995-04-14  |  3KB  |  76 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /*static char *SCCSID = "@(#)int2f.h    6.1 90/11/15";*/
  13.  
  14. /***    INT2F.H
  15.  *
  16.  *    SCCSID = @(#)int2f.h    13.1 90/05/30
  17.  *
  18.  *    Title:
  19.  *
  20.  *    INT 2F API definations
  21.  *
  22.  *    Description:
  23.  *
  24.  *    Contains the         3.0 INT 2F services definations
  25.  */
  26.  
  27. /*INT32*/
  28.  
  29. #define INT2F_INT            0x2F
  30.  
  31. //  All         3.0 INT 2F API must be issued with AH = 16h
  32.  
  33. #define INT2F_WINDOWS_MULTIPLEX     0x16
  34.  
  35. //          3.0 INT 2F API calls
  36.  
  37. #define INT2F_GET_VERSION        0x00    // install check/Get version
  38. #define INT2F_OLD_GET_VMID_API        0x02    // 2.xx get VMID API call
  39. #define INT2F_STARTUP            0x05    // sent when Win386 starting
  40. #define INT2F_EXIT            0x06    // sent when Win386 exited
  41. #define INT2F_DEVICE_BROADCAST        0x07    // sent by virtual device
  42. #define INT2F_STARTUP_COMPLETE        0x08    // sent when start is done
  43. #define INT2F_BEGIN_EXIT        0x09    // starting a NORMAL exit
  44.  
  45. #define INT2F_HIGH_FUNCTION        0x80
  46. #define INT2F_HIGH_FUNCTION_BIT     7
  47.  
  48. #define INT2F_RELEASE_TIME        0x80    // release cur VM's time-slice
  49. #define INT2F_BEGIN_CRITICAL        0x81    // begin critical section
  50. #define INT2F_END_CRITICAL        0x82    // end critical section
  51. #define INT2F_GET_CUR_VMID        0x83    // returns BX = ID of current VM
  52. #define INT2F_GET_DEVICE_API        0x84    // returns ES:DI -> Device API
  53. #define INT2F_SWITCH_AND_CALL        0x85    // change VMs and call-back
  54. #define INT2F_TEST_INT31_AVAIL        0x86    // returns AX=0 if Int 31 avail
  55. #define INT2F_GET_PM_SWITCH_ADDR    0x87    // get call-back addr for PM
  56. #define INT2F_GET_LDT_BASE_SEL        0x88    // get selector to LDT
  57. #define INT2F_WIN_KERNEL_IDLE        0x89    //         kernel idle call
  58.  
  59. //  Flags passed to the INT2F_WIN_KERNEL_IDLE call to indicate
  60. //  state of         in the BX register.
  61.  
  62. #define INT2F_WIN_IDLE_MOUSE_BUSY    0x01
  63. #define INT2F_WIN_IDLE_MOUSE_BUSY_BIT    0
  64.  
  65. //  Flags returned by INT2F_GET_PM_SWITCH_ADDR
  66.  
  67. #define INT2F_32BIT_PROGRAMS_SUPPORTED    0x01
  68.  
  69. #define INT2F_286_PROCESSOR        0x02
  70. #define INT2F_386_PROCESSOR        0x03
  71. #define INT2F_486_PROCESSOR        0x04
  72.  
  73. //   Equates for OS/2 detect and get VDD API calls
  74. #define INT2F_GETOS2VER         0x4010
  75. #define INT2F_GETVDDAPI         0x4011
  76.