home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / VDMA.H < prev    next >
C/C++ Source or Header  |  1997-04-10  |  1KB  |  55 lines

  1. /***    VDMA.H
  2.  *
  3.  *
  4.  *      MVDM Virtual DMA Exported Definitions
  5.  *      Copyright (c) 1996 IBM Corporation
  6.  *
  7.  */
  8.  
  9. #pragma checkout( suspend )
  10.    #ifndef __CHKHDR__
  11.       #pragma checkout( suspend )
  12.    #endif
  13. #pragma checkout( resume )
  14.  
  15. #ifndef __VDMA__
  16. #define __VDMA__
  17.  
  18. /* VDMA defines */
  19.  
  20. #define VDD_DMA_MASKOFF     0       /* Mask off notification to VDD */
  21. #define VDD_DMA_MASK        1       /* Mask on  notification to VDD */
  22.  
  23. #define VDMA_NAME       "VDMA"
  24.  
  25. #define VDMA_GET_INFO_CMD   0
  26. #define VDMA_REGISTER_VXGA  1
  27.  
  28. typedef struct dmaChnlInfo_s {
  29.         ULONG   ch_addrBase;
  30.         USHORT  ch_cbCount;
  31.         USHORT  ch_txMode;
  32. } DMACHNLINFO;
  33. typedef DMACHNLINFO *PDMACHNLINFO;
  34.  
  35. typedef struct dmaReqInfo_s {
  36.         ULONG     ri_iChannel;
  37.         PFNDEVREQ ri_Address;
  38. } DMAREQINFO;
  39. typedef DMAREQINFO *PDMAREQINFO;
  40.  
  41. typedef BOOL (*HOOKENTRY PFNDMA)(HVDM,ULONG);
  42.  
  43. /* VDMA function prototypes */
  44.  
  45. BOOL VDHENTRY VDHRegisterDMAChannel(ULONG,PFNDMA);
  46. VOID VDHENTRY VDHCallOutDMA(VOID);
  47.  
  48. #endif /* __VDMA__ */
  49.  
  50. #pragma checkout( suspend )
  51.    #ifndef __CHKHDR__
  52.       #pragma checkout( resume )
  53.    #endif
  54. #pragma checkout( resume )
  55.