home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / VDMA.H < prev    next >
Text File  |  1995-04-14  |  2KB  |  56 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. /***    VDMA.H
  13.  *
  14.  *      SCCSID = @(#)vdma.h   13.1 90/05/21
  15.  *
  16.  *      MVDM Virtual DMA Exported Definitions
  17.  *
  18.  *      For include file hierarchy, see MVDM.H
  19.  *
  20.  *
  21.  *      MODIFICATION HISTORY
  22.  *      90/05/21  SB   Created.
  23.  *      92/11/03  JDM  Added VDMA Request VDD defines
  24.  *      93/03/06  JAG  Changed DMAREQINFO.ri_ulReserved to .ri_Address
  25.  */
  26.  
  27. /* VDMA defines */
  28.  
  29. #define VDD_DMA_MASKOFF     0       // Mask off notification to VDD
  30. #define VDD_DMA_MASK        1       // Mask on  notification to VDD
  31.  
  32. #define VDMA_NAME       "VDMA"
  33.  
  34. #define VDMA_GET_INFO_CMD   0
  35. #define VDMA_REGISTER_VXGA  1
  36.  
  37. typedef struct dmaChnlInfo_s {
  38.         ULONG   ch_addrBase;
  39.         USHORT  ch_cbCount;
  40.         USHORT  ch_txMode;
  41. } DMACHNLINFO;
  42. typedef DMACHNLINFO *PDMACHNLINFO;
  43.  
  44. typedef struct dmaReqInfo_s {
  45.         ULONG     ri_iChannel;
  46.         PFNDEVREQ ri_Address;
  47. } DMAREQINFO;
  48. typedef DMAREQINFO *PDMAREQINFO;
  49.  
  50. typedef BOOL (HOOKENTRY *PFNDMA)(HVDM,ULONG);
  51.  
  52. /* VDMA function prototypes */
  53.  
  54. BOOL VDHENTRY VDHRegisterDMAChannel(ULONG,PFNDMA);
  55. VOID VDHENTRY VDHCallOutDMA(VOID);
  56.