Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
886 B

  1. //
  2. // MODULE : CODEDMA.H
  3. // PURPOSE : Code dma code
  4. // AUTHOR : JBS Yadawa
  5. // CREATED : 7/20/96
  6. //
  7. //
  8. // Copyright (C) 1996 SGS-THOMSON Microelectronics
  9. //
  10. //
  11. // REVISION HISTORY :
  12. //
  13. // DATE :
  14. //
  15. // COMMENTS :
  16. //
  17. #ifndef __CODEDMA_H__
  18. #define __CODEDMA_H__
  19. #include "stdefs.h"
  20. typedef struct DMADescriptor {
  21. DWORD regionSize;
  22. DWORD offset;
  23. WORD selector;
  24. WORD bufferID;
  25. DWORD physical;
  26. } DDS, * LPDDS;
  27. typedef struct tagCodeDma {
  28. BYTE * lpBuf;
  29. DWORD lpLog;
  30. DWORD CodeCtl;
  31. BOOL TransferCompleted;
  32. DWORD WritePtr;
  33. } CODEDMA, *LPCODEDMA;
  34. #define DMA_BUFFER_SIZE 8192
  35. void FARAPI CodeDmaInterrupt(void);
  36. BOOL FARAPI CodeDmaClose(void);
  37. BOOL FARAPI CodeDmaOpen(BYTE *, DWORD);
  38. DWORD FARAPI CodeDmaSendData(BYTE *pPacket, DWORD uLen);
  39. void FARAPI CodeDmaStopTransfer(void);
  40. BOOL FARAPI CodeDmaFlush(void);
  41. #endif //__CODEDMA_H__