nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dma.h
Go to the documentation of this file.
1 
22 
26 
33 };
34 
36  DMA_CH0 = 0x00,
37  DMA_CH1 = 0x01,
38  DMA_CH2 = 0x02,
39  DMA_CH3 = 0x03,
40 
41  DMA_8BIT = 0x00,
42  DMA_16BIT = 0x01,
43 
44  DMA_MAX_TYPE = 0x02,
46 };
47 
53  /* Set/Clear mask bit 2 */
55 };
56 
58  unsigned char page;
59  unsigned char address;
60  unsigned char count;
61 };
62 
64  unsigned char status;
65  unsigned char command;
66  unsigned char request;
67  unsigned char single_mask;
68  unsigned char write_mode;
69  unsigned char byte_ptr;
70  unsigned char intermediate;
71  unsigned char dma_mask;
72 };
73 
83 extern void dma_init(int ch, int mode, unsigned long address, int count);
84 
91 extern int dma_is_done(int ch);
92 
99 extern struct dma_ctrl_port_entry_t *dma_get_ctrl_port(int type);
100 
107 extern struct dma_port_entry_t *dma_get_port(int channel);
108