|
nckernel
0.1
|
#include <sys/types.h>#include <sys/io.h>#include <stdio.h>#include <stddef.h>#include <dma.h>#include <interrupt.h>#include <list.h>
Go to the source code of this file.
Macros | |
| #define | DMA_CTRL_FROM_CH(ch) (((ch) >> 2) ? DMA_16BIT : DMA_8BIT) |
| #define | DMA_DISABLE(ch) |
| Disable selected DMA channel (ch) More... | |
| #define | DMA_ENABLE(ch) |
| Enable selected DMA channel (ch) More... | |
| #define | DMA_RESET_PTR(ch) |
| Reset type pointer of DMAC. More... | |
| #define | DMA_SET_ADDRESS(ch, addr) |
| #define | DMA_SET_MODE(ch, mode) |
| Update DMA mode, ch >> 2 ==> 0 : 8 Bits, 1 : 16 Bits. More... | |
| #define | DMA_SET_PAGE(ch, addr) |
| Address(32 Bits) can be devided into a page(64KB unit) and its offset. Update the buffer information to trnasfer data via the DMA. More... | |
| #define | DMA_SET_TX_SIZE(ch, cnt) |
of bytes to be transferedMore... | |
Functions | |
| struct dma_ctrl_port_entry_t * | dma_get_ctrl_port (int type) |
| type 에 해당하는 DMA 제어 포트 정보를 가져온다. More... | |
| struct dma_port_entry_t * | dma_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... | |
Definition at line 61 of file dma.c.
Referenced by dma_is_done().
| #define DMA_DISABLE | ( | ch) |
Disable selected DMA channel (ch)
Definition at line 14 of file dma.c.
Referenced by dma_init().
| #define DMA_ENABLE | ( | ch) |
Enable selected DMA channel (ch)
Definition at line 21 of file dma.c.
Referenced by dma_init().
| #define DMA_RESET_PTR | ( | ch) |
Reset type pointer of DMAC.
Definition at line 28 of file dma.c.
Referenced by dma_init().
| #define DMA_SET_ADDRESS | ( | ch, | |
| addr | |||
| ) |
Definition at line 41 of file dma.c.
Referenced by dma_init().
| #define DMA_SET_MODE | ( | ch, | |
| mode | |||
| ) |
Update DMA mode, ch >> 2 ==> 0 : 8 Bits, 1 : 16 Bits.
Definition at line 49 of file dma.c.
Referenced by dma_init().
| #define DMA_SET_PAGE | ( | ch, | |
| addr | |||
| ) |
Address(32 Bits) can be devided into a page(64KB unit) and its offset. Update the buffer information to trnasfer data via the DMA.
Definition at line 37 of file dma.c.
Referenced by dma_init().
| #define DMA_SET_TX_SIZE | ( | ch, | |
| cnt | |||
| ) |
Definition at line 56 of file dma.c.
Referenced by dma_init().
1.8.4