libdma.h File Reference

#include <libc.h>

Go to the source code of this file.

Defines

#define __LIBDMA_H__   1
#define SYSDMA_REGISTER   1
#define DMAOPT_COPY   (1<<0u)
#define DMAOPT_READ   (1<<1u)
#define DMAOPT_WRITE   (1<<2u)
#define SYSDMA_UNREGISTER   2
#define SYSDMA_RESET   3
#define SYSDMA_DUMP   5

Enumerations

enum  t_dma_register_suberrno_codes {
  DMA_REGISTER_BAD_CHANNEL = 100, DMA_REGISTER_CHANNEL_NOT_AVAIL, DMA_REGISTER_BAD_LEN, DMA_REGISTER_NOT_SHARED_RW,
  DMA_REGISTER_BAD_DMA_BLOCK, DMA_REGISTER_NOT_DMA_MEM
}

Functions

int dma_register (int channel, char *dmabuf, int dmaoff, int dmalen, u_int32_t dmaopt)
int dma_write (int channel, char *buf, int len)
int dma_read (int channel, char *buf, int len)
int dma_unregister (int channel)
int dma_reset (int channel, int dmaoff, int dmalen)
int dma_dump (void)


Define Documentation

#define __LIBDMA_H__   1
 

#define DMAOPT_COPY   (1<<0u)
 

#define DMAOPT_READ   (1<<1u)
 

#define DMAOPT_WRITE   (1<<2u)
 

#define SYSDMA_DUMP   5
 

#define SYSDMA_REGISTER   1
 

#define SYSDMA_RESET   3
 

#define SYSDMA_UNREGISTER   2
 


Enumeration Type Documentation

enum t_dma_register_suberrno_codes
 

Enumerator:
DMA_REGISTER_BAD_CHANNEL 
DMA_REGISTER_CHANNEL_NOT_AVAIL 
DMA_REGISTER_BAD_LEN 
DMA_REGISTER_NOT_SHARED_RW 
DMA_REGISTER_BAD_DMA_BLOCK 
DMA_REGISTER_NOT_DMA_MEM 


Function Documentation

int dma_dump void   ) 
 

int dma_read int  channel,
char *  buf,
int  len
 

int dma_register int  channel,
char *  dmabuf,
int  dmaoff,
int  dmalen,
u_int32_t  dmaopt
 

int dma_reset int  channel,
int  dmaoff,
int  dmalen
 

int dma_unregister int  channel  ) 
 

int dma_write int  channel,
char *  buf,
int  len
 


Generated on Wed May 24 23:06:02 2006 for LSE/OS by  doxygen 1.4.6