1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
6 /* Contains task code and structures for Multi-channel DMA */
29 u32 MCD_funcDescTab0[];
31 u32 MCD_funcDescTab1[];
32 u32 MCD_funcDescTab2[];
33 u32 MCD_funcDescTab3[];
34 u32 MCD_funcDescTab4[];
35 u32 MCD_funcDescTab5[];
36 u32 MCD_funcDescTab6[];
37 u32 MCD_funcDescTab7[];
38 u32 MCD_funcDescTab8[];
39 u32 MCD_funcDescTab9[];
40 u32 MCD_funcDescTab10[];
41 u32 MCD_funcDescTab11[];
42 u32 MCD_funcDescTab12[];
43 u32 MCD_funcDescTab13[];
44 u32 MCD_funcDescTab14[];
45 u32 MCD_funcDescTab15[];
48 u32 MCD_contextSave0[];
49 u32 MCD_contextSave1[];
50 u32 MCD_contextSave2[];
51 u32 MCD_contextSave3[];
52 u32 MCD_contextSave4[];
53 u32 MCD_contextSave5[];
54 u32 MCD_contextSave6[];
55 u32 MCD_contextSave7[];
56 u32 MCD_contextSave8[];
57 u32 MCD_contextSave9[];
58 u32 MCD_contextSave10[];
59 u32 MCD_contextSave11[];
60 u32 MCD_contextSave12[];
61 u32 MCD_contextSave13[];
62 u32 MCD_contextSave14[];
63 u32 MCD_contextSave15[];
65 u32 MCD_realTaskTableSrc[] = {
68 (u32) MCD_varTab0, /* Task 0 Variable Table */
69 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
72 (u32) MCD_contextSave0, /* Task 0 context save space */
76 (u32) MCD_varTab1, /* Task 1 Variable Table */
78 (u32) MCD_funcDescTab1, /* Task 1 Fn Desc. Table & Flags */
80 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
84 (u32) MCD_contextSave1, /* Task 1 context save space */
88 (u32) MCD_varTab2, /* Task 2 Variable Table */
90 (u32) MCD_funcDescTab2, /* Task 2 Fn Desc. Table & Flags */
92 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
96 (u32) MCD_contextSave2, /* Task 2 context save space */
100 (u32) MCD_varTab3, /* Task 3 Variable Table */
101 #ifdef MCD_INCLUDE_EU
102 (u32) MCD_funcDescTab3, /* Task 3 Fn Desc. Table & Flags */
104 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
108 (u32) MCD_contextSave3, /* Task 3 context save space */
112 (u32) MCD_varTab4, /* Task 4 Variable Table */
113 #ifdef MCD_INCLUDE_EU
114 (u32) MCD_funcDescTab4, /* Task 4 Fn Desc. Table & Flags */
116 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
120 (u32) MCD_contextSave4, /* Task 4 context save space */
124 (u32) MCD_varTab5, /* Task 5 Variable Table */
125 #ifdef MCD_INCLUDE_EU
126 (u32) MCD_funcDescTab5, /* Task 5 Fn Desc. Table & Flags */
128 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
132 (u32) MCD_contextSave5, /* Task 5 context save space */
136 (u32) MCD_varTab6, /* Task 6 Variable Table */
137 #ifdef MCD_INCLUDE_EU
138 (u32) MCD_funcDescTab6, /* Task 6 Fn Desc. Table & Flags */
140 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
144 (u32) MCD_contextSave6, /* Task 6 context save space */
148 (u32) MCD_varTab7, /* Task 7 Variable Table */
149 #ifdef MCD_INCLUDE_EU
150 (u32) MCD_funcDescTab7, /* Task 7 Fn Desc. Table & Flags */
152 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
156 (u32) MCD_contextSave7, /* Task 7 context save space */
160 (u32) MCD_varTab8, /* Task 8 Variable Table */
161 #ifdef MCD_INCLUDE_EU
162 (u32) MCD_funcDescTab8, /* Task 8 Fn Desc. Table & Flags */
164 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
168 (u32) MCD_contextSave8, /* Task 8 context save space */
172 (u32) MCD_varTab9, /* Task 9 Variable Table */
173 #ifdef MCD_INCLUDE_EU
174 (u32) MCD_funcDescTab9, /* Task 9 Fn Desc. Table & Flags */
176 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
180 (u32) MCD_contextSave9, /* Task 9 context save space */
184 (u32) MCD_varTab10, /* Task 10 Variable Table */
185 #ifdef MCD_INCLUDE_EU
186 (u32) MCD_funcDescTab10, /* Task 10 Fn Desc. Table & Flags */
188 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
192 (u32) MCD_contextSave10, /* Task 10 context save space */
196 (u32) MCD_varTab11, /* Task 11 Variable Table */
197 #ifdef MCD_INCLUDE_EU
198 (u32) MCD_funcDescTab11, /* Task 11 Fn Desc. Table & Flags */
200 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
204 (u32) MCD_contextSave11, /* Task 11 context save space */
208 (u32) MCD_varTab12, /* Task 12 Variable Table */
209 #ifdef MCD_INCLUDE_EU
210 (u32) MCD_funcDescTab12, /* Task 12 Fn Desc. Table & Flags */
212 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
216 (u32) MCD_contextSave12, /* Task 12 context save space */
220 (u32) MCD_varTab13, /* Task 13 Variable Table */
221 #ifdef MCD_INCLUDE_EU
222 (u32) MCD_funcDescTab13, /* Task 13 Fn Desc. Table & Flags */
224 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
228 (u32) MCD_contextSave13, /* Task 13 context save space */
232 (u32) MCD_varTab14, /* Task 14 Variable Table */
233 #ifdef MCD_INCLUDE_EU
234 (u32) MCD_funcDescTab14, /* Task 14 Fn Desc. Table & Flags */
236 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
240 (u32) MCD_contextSave14, /* Task 14 context save space */
244 (u32) MCD_varTab15, /* Task 15 Variable Table */
245 #ifdef MCD_INCLUDE_EU
246 (u32) MCD_funcDescTab15, /* Task 15 Fn Desc. Table & Flags */
248 (u32) MCD_funcDescTab0, /* Task 0 Fn Desc. Table & Flags */
252 (u32) MCD_contextSave15, /* Task 15 context save space */
256 u32 MCD_varTab0[] = { /* Task 0 Variable Table */
257 0x00000000, /* var[0] */
258 0x00000000, /* var[1] */
259 0x00000000, /* var[2] */
260 0x00000000, /* var[3] */
261 0x00000000, /* var[4] */
262 0x00000000, /* var[5] */
263 0x00000000, /* var[6] */
264 0x00000000, /* var[7] */
265 0x00000000, /* var[8] */
266 0x00000000, /* var[9] */
267 0x00000000, /* var[10] */
268 0x00000000, /* var[11] */
269 0x00000000, /* var[12] */
270 0x00000000, /* var[13] */
271 0x00000000, /* var[14] */
272 0x00000000, /* var[15] */
273 0x00000000, /* var[16] */
274 0x00000000, /* var[17] */
275 0x00000000, /* var[18] */
276 0x00000000, /* var[19] */
277 0x00000000, /* var[20] */
278 0x00000000, /* var[21] */
279 0x00000000, /* var[22] */
280 0x00000000, /* var[23] */
281 0xe0000000, /* inc[0] */
282 0x20000000, /* inc[1] */
283 0x2000ffff, /* inc[2] */
284 0x00000000, /* inc[3] */
285 0x00000000, /* inc[4] */
286 0x00000000, /* inc[5] */
287 0x00000000, /* inc[6] */
288 0x00000000, /* inc[7] */
291 u32 MCD_varTab1[] = {
326 u32 MCD_varTab2[] = {
361 u32 MCD_varTab3[] = {
396 u32 MCD_varTab4[] = {
431 u32 MCD_varTab5[] = {
466 u32 MCD_varTab6[] = {
501 u32 MCD_varTab7[] = {
536 u32 MCD_varTab8[] = {
571 u32 MCD_varTab9[] = {
606 u32 MCD_varTab10[] = {
641 u32 MCD_varTab11[] = {
676 u32 MCD_varTab12[] = {
711 u32 MCD_varTab13[] = {
746 u32 MCD_varTab14[] = {
781 u32 MCD_varTab15[] = {
816 u32 MCD_funcDescTab0[] = {
883 #ifdef MCD_INCLUDE_EU
884 u32 MCD_funcDescTab1[] = {
951 u32 MCD_funcDescTab2[] = {
1018 u32 MCD_funcDescTab3[] = {
1085 u32 MCD_funcDescTab4[] = {
1152 u32 MCD_funcDescTab5[] = {
1219 u32 MCD_funcDescTab6[] = {
1286 u32 MCD_funcDescTab7[] = {
1353 u32 MCD_funcDescTab8[] = {
1420 u32 MCD_funcDescTab9[] = {
1487 u32 MCD_funcDescTab10[] = {
1554 u32 MCD_funcDescTab11[] = {
1621 u32 MCD_funcDescTab12[] = {
1688 u32 MCD_funcDescTab13[] = {
1755 u32 MCD_funcDescTab14[] = {
1822 u32 MCD_funcDescTab15[] = {
1888 #endif /*MCD_INCLUDE_EU */
1890 u32 MCD_contextSave0[128]; /* Task 0 context save space */
1891 u32 MCD_contextSave1[128]; /* Task 1 context save space */
1892 u32 MCD_contextSave2[128]; /* Task 2 context save space */
1893 u32 MCD_contextSave3[128]; /* Task 3 context save space */
1894 u32 MCD_contextSave4[128]; /* Task 4 context save space */
1895 u32 MCD_contextSave5[128]; /* Task 5 context save space */
1896 u32 MCD_contextSave6[128]; /* Task 6 context save space */
1897 u32 MCD_contextSave7[128]; /* Task 7 context save space */
1898 u32 MCD_contextSave8[128]; /* Task 8 context save space */
1899 u32 MCD_contextSave9[128]; /* Task 9 context save space */
1900 u32 MCD_contextSave10[128]; /* Task 10 context save space */
1901 u32 MCD_contextSave11[128]; /* Task 11 context save space */
1902 u32 MCD_contextSave12[128]; /* Task 12 context save space */
1903 u32 MCD_contextSave13[128]; /* Task 13 context save space */
1904 u32 MCD_contextSave14[128]; /* Task 14 context save space */
1905 u32 MCD_contextSave15[128]; /* Task 15 context save space */
1907 u32 MCD_ChainNoEu_TDT[];
1908 u32 MCD_SingleNoEu_TDT[];
1909 #ifdef MCD_INCLUDE_EU
1910 u32 MCD_ChainEu_TDT[];
1911 u32 MCD_SingleEu_TDT[];
1913 u32 MCD_ENetRcv_TDT[];
1914 u32 MCD_ENetXmit_TDT[];
1916 u32 MCD_modelTaskTableSrc[] = {
1917 (u32) MCD_ChainNoEu_TDT,
1918 (u32) & ((u8 *) MCD_ChainNoEu_TDT)[0x0000016c],
1925 (u32) MCD_SingleNoEu_TDT,
1926 (u32) & ((u8 *) MCD_SingleNoEu_TDT)[0x000000d4],
1933 #ifdef MCD_INCLUDE_EU
1934 (u32) MCD_ChainEu_TDT,
1935 (u32) & ((u8 *) MCD_ChainEu_TDT)[0x000001b4],
1942 (u32) MCD_SingleEu_TDT,
1943 (u32) & ((u8 *) MCD_SingleEu_TDT)[0x00000124],
1951 (u32) MCD_ENetRcv_TDT,
1952 (u32) & ((u8 *) MCD_ENetRcv_TDT)[0x0000009c],
1959 (u32) MCD_ENetXmit_TDT,
1960 (u32) & ((u8 *) MCD_ENetXmit_TDT)[0x000000d0],
1969 u32 MCD_ChainNoEu_TDT[] = {
2064 u32 MCD_SingleNoEu_TDT[] = {
2121 #ifdef MCD_INCLUDE_EU
2122 u32 MCD_ChainEu_TDT[] = {
2235 u32 MCD_SingleEu_TDT[] = {
2312 u32 MCD_ENetRcv_TDT[] = {
2355 u32 MCD_ENetXmit_TDT[] = {
2411 #ifdef MCD_INCLUDE_EU
2412 MCD_bufDesc MCD_singleBufDescs[NCHANNELS];