nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
dma.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dma_ctrl_port_entry_t
 
struct  dma_port_entry_t
 

Enumerations

enum  dma_channel_t {
  DMA_CH0 = 0x00, DMA_CH1 = 0x01, DMA_CH2 = 0x02, DMA_CH3 = 0x03,
  DMA_8BIT = 0x00, DMA_16BIT = 0x01, DMA_MAX_TYPE = 0x02, DMA_MAX_CHANNEL = 0x08
}
 
enum  dma_mask_bit_t { DMA_MASK_DISABLE_CH = 0x04 }
 
enum  dma_mode_bit_t {
  DMA_MODE_DEMAND = 0x00, DMA_MODE_SINGLE = 0x40, DMA_MODE_BLOCK = 0x80, DMA_MODE_CASCADE = 0xC0,
  DMA_MODE_ADDR_DEC = 0x20, DMA_MODE_AUTO_INIT = 0x10, DMA_MODE_TX_VERYFY = 0x00, DMA_MODE_TX_WRITE = 0x04,
  DMA_MODE_TX_READ = 0x08, DMA_MODE_TX_ILLEGAL = 0x0C
}
 

Functions

struct dma_ctrl_port_entry_tdma_get_ctrl_port (int type)
 type 에 해당하는 DMA 제어 포트 정보를 가져온다. More...
 
struct dma_port_entry_tdma_get_port (int channel)
 channel 에 해당하는 port 를 가져온다. More...
 
void dma_init (int ch, int mode, unsigned long address, int count)
 DMA Controller 를 초기화 한다. More...
 
int dma_is_done (int ch)
 DMA 가 종료 되었는지 확인한다. More...