/*******************************************************************/ /* */ /* Advanced Communication Board Developer Toolkit */ /* (c)Copyright 1993-1995, Sealevel Systems Incorporated */ /* */ /* For use with Advanced Communication Boards */ /* DMA.H */ /* This file defines constants and prototypes for */ /* routines that interface to the 8237 DMA controller */ /* Source File is DMA.ASM */ /*******************************************************************/ /* Hi-Byte = DMA Page Reg, Lo-Byte = Address Reg 1 */ /*******************************************************************/ #define DMA0 0x8700 #define DMA1 0x8302 #define DMA2 0x8104 #define DMA3 0x8206 /*******************************************************************/ /* DMA Mode Equates used to program DMA Mode Register */ /*******************************************************************/ #define RX0 0x44 #define TX0 0x48 #define RX1 0x45 #define TX1 0x49 #define RX2 0x46 #define TX2 0x4A #define RX3 0x47 #define TX3 0x4B /*******************************************************************/ /* Values written to DMA Single Mask Register */ /*******************************************************************/ #define SETDMA0 4 /* Used to turn DMA Channel off */ #define SETDMA1 5 #define SETDMA2 6 #define SETDMA3 7 #define CLEARDMA0 0 /* Used to turn DMA Channel on */ #define CLEARDMA1 1 #define CLEARDMA2 2 #define CLEARDMA3 3 /*******************************************************************/ /* Procedure Prototypes for Calling Program */ /*******************************************************************/ #ifdef __cplusplus extern "C" { #endif extern void SetPageRegister(unsigned short, unsigned short,unsigned short); extern void SetPageRegisterEx(unsigned short,unsigned char __far *fpBUFFER); extern void SetTC(unsigned short,unsigned short); extern unsigned short GetTC(unsigned short); extern void MaskDMA(unsigned char); extern void SetDMAMode(unsigned char); extern void SingleMaskDMA(unsigned char); extern int CheckDMAPage(unsigned short wTC, unsigned short, unsigned short); extern int CheckDMAPageEx(unsigned short wTC, unsigned char __far *fpBUFFER); #ifdef __cplusplus } #endif /*******************************************************************/