Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
dma.h
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual C++
- int setup_dma(int chan, int32 physaddr, uint16 length,int mode);
- uint16 dma_cnt(int chan);
- int dma_disable(int chan);
- int dma_enable(int chan);
- void *dma_malloc(int32 *,unsigned short);
- int dis_dmaxl(int);
- int ena_dmaxl(int);
- #define DMA1BASE 0 /* Base address of 1st (8-bit) DMA controller */
- #define DMA2BASE 0xc0 /* Base address of 2nd (16-bit) DMA controller */
- #define DMAEN 0x4 /* Offset off DMA Enable register */
- /* DMA controller registers */
- #define DMA_STAT 8 /* DMA controller status register */
- #define DMA_MASK 0xa /* DMA controller mask register */
- #define DMA_MODE 0xb /* DMA controller mode register */
- #define DMA_RESETFF 0xc /* DMA controller first/last flip flop */
- /* DMA data */
- #define DMA_DISABLE 4 /* Disable channel n */
- #define DMA_ENABLE 0 /* Enable channel n */
- /* Single transfers, incr. address, auto init, writes, ch. n */
- #define DMA_RX_MODE 0x54
- /* Single transfers, incr. address, no auto init, reads, ch. n */
- #define DMA_TX_MODE 0x48