mirror of https://github.com/tongzx/nt5src
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
48 lines
886 B
//
|
|
// MODULE : CODEDMA.H
|
|
// PURPOSE : Code dma code
|
|
// AUTHOR : JBS Yadawa
|
|
// CREATED : 7/20/96
|
|
//
|
|
//
|
|
// Copyright (C) 1996 SGS-THOMSON Microelectronics
|
|
//
|
|
//
|
|
// REVISION HISTORY :
|
|
//
|
|
// DATE :
|
|
//
|
|
// COMMENTS :
|
|
//
|
|
|
|
#ifndef __CODEDMA_H__
|
|
#define __CODEDMA_H__
|
|
#include "stdefs.h"
|
|
|
|
typedef struct DMADescriptor {
|
|
DWORD regionSize;
|
|
DWORD offset;
|
|
WORD selector;
|
|
WORD bufferID;
|
|
DWORD physical;
|
|
} DDS, * LPDDS;
|
|
|
|
typedef struct tagCodeDma {
|
|
BYTE * lpBuf;
|
|
DWORD lpLog;
|
|
DWORD CodeCtl;
|
|
BOOL TransferCompleted;
|
|
DWORD WritePtr;
|
|
} CODEDMA, *LPCODEDMA;
|
|
|
|
#define DMA_BUFFER_SIZE 8192
|
|
void FARAPI CodeDmaInterrupt(void);
|
|
BOOL FARAPI CodeDmaClose(void);
|
|
BOOL FARAPI CodeDmaOpen(BYTE *, DWORD);
|
|
DWORD FARAPI CodeDmaSendData(BYTE *pPacket, DWORD uLen);
|
|
void FARAPI CodeDmaStopTransfer(void);
|
|
BOOL FARAPI CodeDmaFlush(void);
|
|
|
|
|
|
#endif //__CODEDMA_H__
|
|
|