2 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
7 /* Contains task code and structures for Multi-channel DMA */
30 u32 MCD_funcDescTab0[];
32 u32 MCD_funcDescTab1[];
33 u32 MCD_funcDescTab2[];
34 u32 MCD_funcDescTab3[];
35 u32 MCD_funcDescTab4[];
36 u32 MCD_funcDescTab5[];
37 u32 MCD_funcDescTab6[];
38 u32 MCD_funcDescTab7[];
39 u32 MCD_funcDescTab8[];
40 u32 MCD_funcDescTab9[];
41 u32 MCD_funcDescTab10[];
42 u32 MCD_funcDescTab11[];
43 u32 MCD_funcDescTab12[];
44 u32 MCD_funcDescTab13[];
45 u32 MCD_funcDescTab14[];
46 u32 MCD_funcDescTab15[];
49 u32 MCD_contextSave0[];
50 u32 MCD_contextSave1[];
51 u32 MCD_contextSave2[];
52 u32 MCD_contextSave3[];
53 u32 MCD_contextSave4[];
54 u32 MCD_contextSave5[];
55 u32 MCD_contextSave6[];
56 u32 MCD_contextSave7[];
57 u32 MCD_contextSave8[];
58 u32 MCD_contextSave9[];
59 u32 MCD_contextSave10[];
60 u32 MCD_contextSave11[];
61 u32 MCD_contextSave12[];
62 u32 MCD_contextSave13[];
63 u32 MCD_contextSave14[];
64 u32 MCD_contextSave15[];
66 u32 MCD_realTaskTableSrc[] = {
69 (u32) MCD_varTab0, /* Task 0 Variable Table */
70 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
73 (u32) MCD_contextSave0, /* Task 0 context save space */
77 (u32) MCD_varTab1, /* Task 1 Variable Table */
79 (u32) MCD_funcDescTab1, /* Task 1 Fn Desc. Table & Flags */
81 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
85 (u32) MCD_contextSave1, /* Task 1 context save space */
89 (u32) MCD_varTab2, /* Task 2 Variable Table */
91 (u32) MCD_funcDescTab2, /* Task 2 Fn Desc. Table & Flags */
93 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
97 (u32) MCD_contextSave2, /* Task 2 context save space */
101 (u32) MCD_varTab3, /* Task 3 Variable Table */
102 #ifdef MCD_INCLUDE_EU
103 (u32) MCD_funcDescTab3, /* Task 3 Fn Desc. Table & Flags */
105 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
109 (u32) MCD_contextSave3, /* Task 3 context save space */
113 (u32) MCD_varTab4, /* Task 4 Variable Table */
114 #ifdef MCD_INCLUDE_EU
115 (u32) MCD_funcDescTab4, /* Task 4 Fn Desc. Table & Flags */
117 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
121 (u32) MCD_contextSave4, /* Task 4 context save space */
125 (u32) MCD_varTab5, /* Task 5 Variable Table */
126 #ifdef MCD_INCLUDE_EU
127 (u32) MCD_funcDescTab5, /* Task 5 Fn Desc. Table & Flags */
129 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
133 (u32) MCD_contextSave5, /* Task 5 context save space */
137 (u32) MCD_varTab6, /* Task 6 Variable Table */
138 #ifdef MCD_INCLUDE_EU
139 (u32) MCD_funcDescTab6, /* Task 6 Fn Desc. Table & Flags */
141 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
145 (u32) MCD_contextSave6, /* Task 6 context save space */
149 (u32) MCD_varTab7, /* Task 7 Variable Table */
150 #ifdef MCD_INCLUDE_EU
151 (u32) MCD_funcDescTab7, /* Task 7 Fn Desc. Table & Flags */
153 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
157 (u32) MCD_contextSave7, /* Task 7 context save space */
161 (u32) MCD_varTab8, /* Task 8 Variable Table */
162 #ifdef MCD_INCLUDE_EU
163 (u32) MCD_funcDescTab8, /* Task 8 Fn Desc. Table & Flags */
165 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
169 (u32) MCD_contextSave8, /* Task 8 context save space */
173 (u32) MCD_varTab9, /* Task 9 Variable Table */
174 #ifdef MCD_INCLUDE_EU
175 (u32) MCD_funcDescTab9, /* Task 9 Fn Desc. Table & Flags */
177 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
181 (u32) MCD_contextSave9, /* Task 9 context save space */
185 (u32) MCD_varTab10, /* Task 10 Variable Table */
186 #ifdef MCD_INCLUDE_EU
187 (u32) MCD_funcDescTab10, /* Task 10 Fn Desc. Table & Flags */
189 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
193 (u32) MCD_contextSave10, /* Task 10 context save space */
197 (u32) MCD_varTab11, /* Task 11 Variable Table */
198 #ifdef MCD_INCLUDE_EU
199 (u32) MCD_funcDescTab11, /* Task 11 Fn Desc. Table & Flags */
201 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
205 (u32) MCD_contextSave11, /* Task 11 context save space */
209 (u32) MCD_varTab12, /* Task 12 Variable Table */
210 #ifdef MCD_INCLUDE_EU
211 (u32) MCD_funcDescTab12, /* Task 12 Fn Desc. Table & Flags */
213 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
217 (u32) MCD_contextSave12, /* Task 12 context save space */
221 (u32) MCD_varTab13, /* Task 13 Variable Table */
222 #ifdef MCD_INCLUDE_EU
223 (u32) MCD_funcDescTab13, /* Task 13 Fn Desc. Table & Flags */
225 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
229 (u32) MCD_contextSave13, /* Task 13 context save space */
233 (u32) MCD_varTab14, /* Task 14 Variable Table */
234 #ifdef MCD_INCLUDE_EU
235 (u32) MCD_funcDescTab14, /* Task 14 Fn Desc. Table & Flags */
237 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
241 (u32) MCD_contextSave14, /* Task 14 context save space */
245 (u32) MCD_varTab15, /* Task 15 Variable Table */
246 #ifdef MCD_INCLUDE_EU
247 (u32) MCD_funcDescTab15, /* Task 15 Fn Desc. Table & Flags */
249 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
253 (u32) MCD_contextSave15, /* Task 15 context save space */
257 u32 MCD_varTab0[] = { /* Task 0 Variable Table */
258 0x00000000, /* var[0] */
259 0x00000000, /* var[1] */
260 0x00000000, /* var[2] */
261 0x00000000, /* var[3] */
262 0x00000000, /* var[4] */
263 0x00000000, /* var[5] */
264 0x00000000, /* var[6] */
265 0x00000000, /* var[7] */
266 0x00000000, /* var[8] */
267 0x00000000, /* var[9] */
268 0x00000000, /* var[10] */
269 0x00000000, /* var[11] */
270 0x00000000, /* var[12] */
271 0x00000000, /* var[13] */
272 0x00000000, /* var[14] */
273 0x00000000, /* var[15] */
274 0x00000000, /* var[16] */
275 0x00000000, /* var[17] */
276 0x00000000, /* var[18] */
277 0x00000000, /* var[19] */
278 0x00000000, /* var[20] */
279 0x00000000, /* var[21] */
280 0x00000000, /* var[22] */
281 0x00000000, /* var[23] */
282 0xe0000000, /* inc[0] */
283 0x20000000, /* inc[1] */
284 0x2000ffff, /* inc[2] */
285 0x00000000, /* inc[3] */
286 0x00000000, /* inc[4] */
287 0x00000000, /* inc[5] */
288 0x00000000, /* inc[6] */
289 0x00000000, /* inc[7] */
292 u32 MCD_varTab1[] = {
327 u32 MCD_varTab2[] = {
362 u32 MCD_varTab3[] = {
397 u32 MCD_varTab4[] = {
432 u32 MCD_varTab5[] = {
467 u32 MCD_varTab6[] = {
502 u32 MCD_varTab7[] = {
537 u32 MCD_varTab8[] = {
572 u32 MCD_varTab9[] = {
607 u32 MCD_varTab10[] = {
642 u32 MCD_varTab11[] = {
677 u32 MCD_varTab12[] = {
712 u32 MCD_varTab13[] = {
747 u32 MCD_varTab14[] = {
782 u32 MCD_varTab15[] = {
817 u32 MCD_funcDescTab0[] = {
884 #ifdef MCD_INCLUDE_EU
885 u32 MCD_funcDescTab1[] = {
952 u32 MCD_funcDescTab2[] = {
1019 u32 MCD_funcDescTab3[] = {
1086 u32 MCD_funcDescTab4[] = {
1153 u32 MCD_funcDescTab5[] = {
1220 u32 MCD_funcDescTab6[] = {
1287 u32 MCD_funcDescTab7[] = {
1354 u32 MCD_funcDescTab8[] = {
1421 u32 MCD_funcDescTab9[] = {
1488 u32 MCD_funcDescTab10[] = {
1555 u32 MCD_funcDescTab11[] = {
1622 u32 MCD_funcDescTab12[] = {
1689 u32 MCD_funcDescTab13[] = {
1756 u32 MCD_funcDescTab14[] = {
1823 u32 MCD_funcDescTab15[] = {
1889 #endif /*MCD_INCLUDE_EU */
1891 u32 MCD_contextSave0[128]; /* Task 0 context save space */
1892 u32 MCD_contextSave1[128]; /* Task 1 context save space */
1893 u32 MCD_contextSave2[128]; /* Task 2 context save space */
1894 u32 MCD_contextSave3[128]; /* Task 3 context save space */
1895 u32 MCD_contextSave4[128]; /* Task 4 context save space */
1896 u32 MCD_contextSave5[128]; /* Task 5 context save space */
1897 u32 MCD_contextSave6[128]; /* Task 6 context save space */
1898 u32 MCD_contextSave7[128]; /* Task 7 context save space */
1899 u32 MCD_contextSave8[128]; /* Task 8 context save space */
1900 u32 MCD_contextSave9[128]; /* Task 9 context save space */
1901 u32 MCD_contextSave10[128]; /* Task 10 context save space */
1902 u32 MCD_contextSave11[128]; /* Task 11 context save space */
1903 u32 MCD_contextSave12[128]; /* Task 12 context save space */
1904 u32 MCD_contextSave13[128]; /* Task 13 context save space */
1905 u32 MCD_contextSave14[128]; /* Task 14 context save space */
1906 u32 MCD_contextSave15[128]; /* Task 15 context save space */
1908 u32 MCD_ChainNoEu_TDT[];
1909 u32 MCD_SingleNoEu_TDT[];
1910 #ifdef MCD_INCLUDE_EU
1911 u32 MCD_ChainEu_TDT[];
1912 u32 MCD_SingleEu_TDT[];
1914 u32 MCD_ENetRcv_TDT[];
1915 u32 MCD_ENetXmit_TDT[];
1917 u32 MCD_modelTaskTableSrc[] = {
1918 (u32) MCD_ChainNoEu_TDT,
1919 (u32) & ((u8 *) MCD_ChainNoEu_TDT)[0x0000016c],
1926 (u32) MCD_SingleNoEu_TDT,
1927 (u32) & ((u8 *) MCD_SingleNoEu_TDT)[0x000000d4],
1934 #ifdef MCD_INCLUDE_EU
1935 (u32) MCD_ChainEu_TDT,
1936 (u32) & ((u8 *) MCD_ChainEu_TDT)[0x000001b4],
1943 (u32) MCD_SingleEu_TDT,
1944 (u32) & ((u8 *) MCD_SingleEu_TDT)[0x00000124],
1952 (u32) MCD_ENetRcv_TDT,
1953 (u32) & ((u8 *) MCD_ENetRcv_TDT)[0x0000009c],
1960 (u32) MCD_ENetXmit_TDT,
1961 (u32) & ((u8 *) MCD_ENetXmit_TDT)[0x000000d0],
1970 u32 MCD_ChainNoEu_TDT[] = {
2065 u32 MCD_SingleNoEu_TDT[] = {
2122 #ifdef MCD_INCLUDE_EU
2123 u32 MCD_ChainEu_TDT[] = {
2236 u32 MCD_SingleEu_TDT[] = {
2313 u32 MCD_ENetRcv_TDT[] = {
2356 u32 MCD_ENetXmit_TDT[] = {
2412 #ifdef MCD_INCLUDE_EU
2413 MCD_bufDesc MCD_singleBufDescs[NCHANNELS];