home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / vpic.h < prev    next >
Text File  |  1999-03-15  |  1KB  |  68 lines

  1. /***************************************************************************
  2. *
  3. * Module Name: Vpic.h
  4. *
  5. *
  6. * Copyright (c) 1987 - 1992  IBM Corporation
  7. *      MVDM Virtual PIC Exported Definitions
  8. *
  9. *      For include file hierarchy, see MVDM.H
  10. *
  11. *
  12. */
  13.  
  14.  
  15. /* VPIC constants */
  16.  
  17. /* VDHOpenVIRQ handler definitions */
  18.  
  19. #define VPIC_NOEOIHOOK                  NULL
  20. #define VPIC_NOIRETHOOK                 NULL
  21. #define VPIC_NOIRETHOOK_TIMEOUT         -1
  22.  
  23. /* VDHOpenVIRQ option definitions */
  24.  
  25. #define VPIC_SHARE_IRQ                  0x0001
  26.  
  27. /* VDHQueryVIRQ bit definitions */
  28.  
  29. #define VPICQ_REQUEST_PENDING           0x0001
  30. #define VPICQ_IN_SERVICE                0x0002
  31. #define VPICQ_VIRT_MASK                 0x0004
  32. #define VPICQ_IRET_PENDING              0x0008
  33.  
  34. /* VDHWaitVIRRS hook type */
  35.  
  36. #define VDH_WAITVIRRS_HOOK              (VDH_RETURN_HOOK)
  37.  
  38. /* VPIC data types */
  39.  
  40. /***ET+ IRQN - IRQ number
  41.  *
  42.  *      IRQ number definition.
  43.  */
  44.  
  45. typedef ULONG IRQN;
  46. /*end*/
  47.  
  48. /***ET+ HIRQ - IRQ handle
  49.  *
  50.  *      IRQ handle defination
  51.  */
  52.  
  53. typedef ULONG HIRQ;
  54. /*end*/
  55.  
  56.  
  57.  
  58. /* VPIC function prototypes */
  59.  
  60. HIRQ VDHENTRY VDHOpenVIRQ(IRQN, PFN, PFN, ULONG, ULONG);
  61. VOID VDHENTRY VDHCloseVIRQ(HIRQ);
  62. VOID VDHENTRY VDHSetVIRR(HVDM, HIRQ);
  63. VOID VDHENTRY VDHClearVIRR(HVDM, HIRQ);
  64. ULONG VDHENTRY VDHQueryVIRQ(HVDM, HIRQ);
  65. VOID VDHENTRY VDHSendVEOI(HIRQ);
  66. BOOL VDHENTRY VDHWaitVIRRs(HHOOK);
  67. VOID VDHENTRY VDHWakeVIRRs(HVDM);
  68.