home *** CD-ROM | disk | FTP | other *** search
/ CD-X 1 / cdx_01.iso / demodisc / basq / dualmodp / vds.h < prev   
Encoding:
C/C++ Source or Header  |  1993-12-04  |  843 b   |  40 lines

  1. // ************************************************************************
  2. // *
  3. // *    File        : VDS.H
  4. // *
  5. // *    Description : Header for Virtual DMA Services
  6. // *
  7. // *    Copyright (C) 1993 Otto Chrons
  8. // *
  9. // ************************************************************************
  10.  
  11. #ifndef __VDS_H
  12. #define __VDS_H
  13.  
  14. typedef unsigned long ulong;
  15. typedef unsigned short ushort;
  16.  
  17. typedef struct {
  18.     ulong       size;
  19.     ulong       offset;
  20.     ushort      segment;
  21.     ushort      ID;
  22.     ulong       address;
  23. } DDS;
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. int cdecl vdsInit(void);
  30. int cdecl vdsEnableDMATranslation(short DMAchannel);
  31. int cdecl vdsDisableDMATranslation(short DMAchannel);
  32. int cdecl vdsLockDMA(DDS *dds);
  33. int cdecl vdsUnlockDMA(DDS *dds);
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #endif
  40.