OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52233_Eclipse/] [RTOSDemo/] [MCF5223x/] [MCF52235_DMA.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2007/03/19 Revision: 0.91
6
 */
7
 
8
#ifndef __MCF52235_DMA_H__
9
#define __MCF52235_DMA_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* DMA Controller (DMA)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_DMA0_SAR                         (*(vuint32*)(&__IPSBAR[0x100]))
20
#define MCF_DMA0_DAR                         (*(vuint32*)(&__IPSBAR[0x104]))
21
#define MCF_DMA0_DSR                         (*(vuint8 *)(&__IPSBAR[0x108]))
22
#define MCF_DMA0_BCR                         (*(vuint32*)(&__IPSBAR[0x108]))
23
#define MCF_DMA0_DCR                         (*(vuint32*)(&__IPSBAR[0x10C]))
24
 
25
#define MCF_DMA1_SAR                         (*(vuint32*)(&__IPSBAR[0x110]))
26
#define MCF_DMA1_DAR                         (*(vuint32*)(&__IPSBAR[0x114]))
27
#define MCF_DMA1_DSR                         (*(vuint8 *)(&__IPSBAR[0x118]))
28
#define MCF_DMA1_BCR                         (*(vuint32*)(&__IPSBAR[0x118]))
29
#define MCF_DMA1_DCR                         (*(vuint32*)(&__IPSBAR[0x11C]))
30
 
31
#define MCF_DMA2_SAR                         (*(vuint32*)(&__IPSBAR[0x120]))
32
#define MCF_DMA2_DAR                         (*(vuint32*)(&__IPSBAR[0x124]))
33
#define MCF_DMA2_DSR                         (*(vuint8 *)(&__IPSBAR[0x128]))
34
#define MCF_DMA2_BCR                         (*(vuint32*)(&__IPSBAR[0x128]))
35
#define MCF_DMA2_DCR                         (*(vuint32*)(&__IPSBAR[0x12C]))
36
 
37
#define MCF_DMA3_SAR                         (*(vuint32*)(&__IPSBAR[0x130]))
38
#define MCF_DMA3_DAR                         (*(vuint32*)(&__IPSBAR[0x134]))
39
#define MCF_DMA3_DSR                         (*(vuint8 *)(&__IPSBAR[0x138]))
40
#define MCF_DMA3_BCR                         (*(vuint32*)(&__IPSBAR[0x138]))
41
#define MCF_DMA3_DCR                         (*(vuint32*)(&__IPSBAR[0x13C]))
42
 
43
#define MCF_DMA_SAR(x)                       (*(vuint32*)(&__IPSBAR[0x100 + ((x)*0x10)]))
44
#define MCF_DMA_DAR(x)                       (*(vuint32*)(&__IPSBAR[0x104 + ((x)*0x10)]))
45
#define MCF_DMA_DSR(x)                       (*(vuint8 *)(&__IPSBAR[0x108 + ((x)*0x10)]))
46
#define MCF_DMA_BCR(x)                       (*(vuint32*)(&__IPSBAR[0x108 + ((x)*0x10)]))
47
#define MCF_DMA_DCR(x)                       (*(vuint32*)(&__IPSBAR[0x10C + ((x)*0x10)]))
48
 
49
 
50
/* Bit definitions and macros for MCF_DMA_SAR */
51
#define MCF_DMA_SAR_SAR(x)                   (((x)&0xFFFFFFFF)<<0)
52
 
53
/* Bit definitions and macros for MCF_DMA_DAR */
54
#define MCF_DMA_DAR_DAR(x)                   (((x)&0xFFFFFFFF)<<0)
55
 
56
/* Bit definitions and macros for MCF_DMA_DSR */
57
#define MCF_DMA_DSR_DONE                     (0x1)
58
#define MCF_DMA_DSR_BSY                      (0x2)
59
#define MCF_DMA_DSR_REQ                      (0x4)
60
#define MCF_DMA_DSR_BED                      (0x10)
61
#define MCF_DMA_DSR_BES                      (0x20)
62
#define MCF_DMA_DSR_CE                       (0x40)
63
 
64
/* Bit definitions and macros for MCF_DMA_BCR */
65
#define MCF_DMA_BCR_BCR(x)                   (((x)&0xFFFFFF)<<0)
66
#define MCF_DMA_BCR_DSR(x)                   (((x)&0xFF)<<0x18)
67
 
68
/* Bit definitions and macros for MCF_DMA_DCR */
69
#define MCF_DMA_DCR_LCH2(x)                  (((x)&0x3)<<0)
70
#define MCF_DMA_DCR_LCH2_CH0                 (0)
71
#define MCF_DMA_DCR_LCH2_CH1                 (0x1)
72
#define MCF_DMA_DCR_LCH2_CH2                 (0x2)
73
#define MCF_DMA_DCR_LCH2_CH3                 (0x3)
74
#define MCF_DMA_DCR_LCH1(x)                  (((x)&0x3)<<0x2)
75
#define MCF_DMA_DCR_LCH1_CH0                 (0)
76
#define MCF_DMA_DCR_LCH1_CH1                 (0x1)
77
#define MCF_DMA_DCR_LCH1_CH2                 (0x2)
78
#define MCF_DMA_DCR_LCH1_CH3                 (0x3)
79
#define MCF_DMA_DCR_LINKCC(x)                (((x)&0x3)<<0x4)
80
#define MCF_DMA_DCR_D_REQ                    (0x80)
81
#define MCF_DMA_DCR_DMOD(x)                  (((x)&0xF)<<0x8)
82
#define MCF_DMA_DCR_DMOD_DIS                 (0)
83
#define MCF_DMA_DCR_DMOD_16                  (0x1)
84
#define MCF_DMA_DCR_DMOD_32                  (0x2)
85
#define MCF_DMA_DCR_DMOD_64                  (0x3)
86
#define MCF_DMA_DCR_DMOD_128                 (0x4)
87
#define MCF_DMA_DCR_DMOD_256                 (0x5)
88
#define MCF_DMA_DCR_DMOD_512                 (0x6)
89
#define MCF_DMA_DCR_DMOD_1K                  (0x7)
90
#define MCF_DMA_DCR_DMOD_2K                  (0x8)
91
#define MCF_DMA_DCR_DMOD_4K                  (0x9)
92
#define MCF_DMA_DCR_DMOD_8K                  (0xA)
93
#define MCF_DMA_DCR_DMOD_16K                 (0xB)
94
#define MCF_DMA_DCR_DMOD_32K                 (0xC)
95
#define MCF_DMA_DCR_DMOD_64K                 (0xD)
96
#define MCF_DMA_DCR_DMOD_128K                (0xE)
97
#define MCF_DMA_DCR_DMOD_256K                (0xF)
98
#define MCF_DMA_DCR_SMOD(x)                  (((x)&0xF)<<0xC)
99
#define MCF_DMA_DCR_SMOD_DIS                 (0)
100
#define MCF_DMA_DCR_SMOD_16                  (0x1)
101
#define MCF_DMA_DCR_SMOD_32                  (0x2)
102
#define MCF_DMA_DCR_SMOD_64                  (0x3)
103
#define MCF_DMA_DCR_SMOD_128                 (0x4)
104
#define MCF_DMA_DCR_SMOD_256                 (0x5)
105
#define MCF_DMA_DCR_SMOD_512                 (0x6)
106
#define MCF_DMA_DCR_SMOD_1K                  (0x7)
107
#define MCF_DMA_DCR_SMOD_2K                  (0x8)
108
#define MCF_DMA_DCR_SMOD_4K                  (0x9)
109
#define MCF_DMA_DCR_SMOD_8K                  (0xA)
110
#define MCF_DMA_DCR_SMOD_16K                 (0xB)
111
#define MCF_DMA_DCR_SMOD_32K                 (0xC)
112
#define MCF_DMA_DCR_SMOD_64K                 (0xD)
113
#define MCF_DMA_DCR_SMOD_128K                (0xE)
114
#define MCF_DMA_DCR_SMOD_256K                (0xF)
115
#define MCF_DMA_DCR_START                    (0x10000)
116
#define MCF_DMA_DCR_DSIZE(x)                 (((x)&0x3)<<0x11)
117
#define MCF_DMA_DCR_DSIZE_LONG               (0)
118
#define MCF_DMA_DCR_DSIZE_BYTE               (0x1)
119
#define MCF_DMA_DCR_DSIZE_WORD               (0x2)
120
#define MCF_DMA_DCR_DSIZE_LINE               (0x3)
121
#define MCF_DMA_DCR_DINC                     (0x80000)
122
#define MCF_DMA_DCR_SSIZE(x)                 (((x)&0x3)<<0x14)
123
#define MCF_DMA_DCR_SSIZE_LONG               (0)
124
#define MCF_DMA_DCR_SSIZE_BYTE               (0x1)
125
#define MCF_DMA_DCR_SSIZE_WORD               (0x2)
126
#define MCF_DMA_DCR_SSIZE_LINE               (0x3)
127
#define MCF_DMA_DCR_SINC                     (0x400000)
128
#define MCF_DMA_DCR_BWC(x)                   (((x)&0x7)<<0x19)
129
#define MCF_DMA_DCR_BWC_16K                  (0x1)
130
#define MCF_DMA_DCR_BWC_32K                  (0x2)
131
#define MCF_DMA_DCR_BWC_64K                  (0x3)
132
#define MCF_DMA_DCR_BWC_128K                 (0x4)
133
#define MCF_DMA_DCR_BWC_256K                 (0x5)
134
#define MCF_DMA_DCR_BWC_512K                 (0x6)
135
#define MCF_DMA_DCR_BWC_1024K                (0x7)
136
#define MCF_DMA_DCR_AA                       (0x10000000)
137
#define MCF_DMA_DCR_CS                       (0x20000000)
138
#define MCF_DMA_DCR_EEXT                     (0x40000000)
139
#define MCF_DMA_DCR_INT                      (0x80000000)
140
 
141
 
142
#endif /* __MCF52235_DMA_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.