dma: add the freescale-provided MultiChannel DMA driver
Subsystems (2)
PATCH 1/1 dma: add the freescale-provided MultiChannel DMA driver
This patch adds the (cleaned-up) Freescale-provided MultiChannel DMA driver for ColdFire M54xx and MPC8220 processors.
This driver is needed for the ethernet FEC driver of the ColdFire M547x and M548x processors.
It is not dmaengine-enabled, but that's not needed for the above FEC driver. I have however installed it in the driver/dma tree as this IP block is not m68k-specific, but freescale-specific, and shared at least between powerpc and coldfire parts (possibly arm-parts as well).
The installation in drivers/dma implies a small rule change in drivers/Makefile to enter drivers/dma on CONFIG_DMADEVICES instead of CONFIG_DMAENGINE.
--- arch/m68k/Kconfig.cpu | 2 + drivers/Makefile | 2 +- drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/fsl_mcd_dma/MCD_dmaApi.c | 963 ++++++++++++ drivers/dma/fsl_mcd_dma/MCD_tasks.c | 2425 +++++++++++++++++++++++++++++++ drivers/dma/fsl_mcd_dma/MCD_tasksInit.c | 274 ++++ drivers/dma/fsl_mcd_dma/MCD_tasksInit.h | 76 + drivers/dma/fsl_mcd_dma/Makefile | 1 + include/linux/MCD_dma.h | 376 +++++ 10 files changed, 4128 insertions(+), 1 deletions(-) create mode 100644 drivers/dma/fsl_mcd_dma/MCD_dmaApi.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasks.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasksInit.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasksInit.h create mode 100644 drivers/dma/fsl_mcd_dma/Makefile create mode 100644 include/linux/MCD_dma.h
arch/m68k/Kconfig.cpu +2 -0
@@ -242,6 +242,8 @@ config M5407 config M54xx bool + select HAS_DMA + select DMADEVICES config M547x bool "MCF547x"
drivers/Makefile +1 -1
@@ -29,7 +29,7 @@ obj-$(CONFIG_PNP) += pnp/ obj-y += amba/ # Many drivers will want to use DMA so this has to be made available # really early. -obj-$(CONFIG_DMA_ENGINE) += dma/ +obj-$(CONFIG_DMADEVICES) += dma/ obj-$(CONFIG_VIRTIO) += virtio/ obj-$(CONFIG_XEN) += xen/
drivers/dma/Kconfig +9 -0
@@ -118,6 +118,15 @@ config FSL_DMA The Elo is the DMA controller on some 82xx and 83xx parts, and the Elo Plus is the DMA controller on 85xx and 86xx parts. +config FSL_MCD_DMA + bool "Freescale MultiChannel DMA (MCD) support" + depends on PPC_MPC8220 || M54xx + ---help--- + This enables generic support for the Freescale MultiChannel DMA (MCD) + available on MPC8220 and ColdFire 547x/548x family. + This driver is used by the specific dma driver for the target CPU. + Some drivers, especially the FEC DMA driver, need it. + config MPC512X_DMA tristate "Freescale MPC512x built-in DMA engine support" depends on PPC_MPC512x || PPC_MPC831x
drivers/dma/Makefile +1 -0
@@ -9,6 +9,7 @@ obj-$(CONFIG_DMATEST) += dmatest.o obj-$(CONFIG_INTEL_IOATDMA) += ioat/ obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o obj-$(CONFIG_FSL_DMA) += fsldma.o +obj-$(CONFIG_FSL_MCD_DMA) += fsl_mcd_dma/ obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o obj-$(CONFIG_MV_XOR) += mv_xor.o obj-$(CONFIG_DW_DMAC) += dw_dmac.o
drivers/dma/fsl_mcd_dma/MCD_dmaApi.c new file +963 -0
963 lines not on this page · raw message
drivers/dma/fsl_mcd_dma/MCD_tasks.c new file +2425 -0
1,999 lines not on this page · raw message
drivers/dma/fsl_mcd_dma/MCD_tasksInit.c new file +274 -0
274 lines not on this page · raw message
drivers/dma/fsl_mcd_dma/MCD_tasksInit.h new file +76 -0
76 lines not on this page · raw message
drivers/dma/fsl_mcd_dma/Makefile new file +1 -0
Lines of this file are not shown. View the raw message.
include/linux/MCD_dma.h new file +376 -0
376 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.
Quoted 6 lines · Philippe De Muyter
This patch adds the (cleaned-up) Freescale-provided MultiChannel DMA driver for ColdFire M54xx and MPC8220 processors.
This driver is needed for the ethernet FEC driver of the ColdFire M547x and M548x processors.
Quoted 8 lines
It is not dmaengine-enabled, but that's not needed for the above FEC driver. I have however installed it in the driver/dma tree as this IP block is not m68k-specific, but freescale-specific, and shared at least between powerpc and coldfire parts (possibly arm-parts as well).
The installation in
drivers/dmaimplies a small rule change indrivers/Makefileto enterdrivers/dmaonCONFIG_DMADEVICESinstead ofCONFIG_DMAENGINE.
BIG NAK
1. Please run Checkpath and reread Documentation/CodingStyle, specfically CH4. Avoid the CamelCase
2. If you are not using dmaengine APIs then drivers/dma/ is not a place for you.
3. While glancing at the code, I dont see why you cant use dmaengine APIs?
4. lastly, am blown off by your own implementation of memcpy, WHY? Kernel is smarter than you!
I guess the driver needs some solid plumbing to make it suitable for mainline
--
~Vinod
Quoted 4,238 lines
Signed-off-by Philippe De Muyter <[email protected]>Cc Greg Ungerer <[email protected]>Cc Stany MARCEL <[email protected]>Cc Vinod Koul <[email protected]>Cc Dan Williams <[email protected]>Cc Greg Kroah-Hartman <[email protected]>--- arch/m68k/Kconfig.cpu | 2 + drivers/Makefile | 2 +- drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/fsl_mcd_dma/MCD_dmaApi.c | 963 ++++++++++++ drivers/dma/fsl_mcd_dma/MCD_tasks.c | 2425 +++++++++++++++++++++++++++++++ drivers/dma/fsl_mcd_dma/MCD_tasksInit.c | 274 ++++ drivers/dma/fsl_mcd_dma/MCD_tasksInit.h | 76 + drivers/dma/fsl_mcd_dma/Makefile | 1 + include/linux/MCD_dma.h | 376 +++++ 10 files changed, 4128 insertions(+), 1 deletions(-) create mode 100644 drivers/dma/fsl_mcd_dma/MCD_dmaApi.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasks.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasksInit.c create mode 100644 drivers/dma/fsl_mcd_dma/MCD_tasksInit.h create mode 100644 drivers/dma/fsl_mcd_dma/Makefile create mode 100644 include/linux/MCD_dma.harch/m68k/Kconfig.cpu +2
-0@@ -242,6 +242,8 @@ config M5407 config M54xx bool + select HAS_DMA + select DMADEVICES config M547x bool "MCF547x"drivers/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_PNP) += pnp/ obj-y += amba/ # Many drivers will want to use DMA so this has to be made available # really early. -obj-$(CONFIG_DMA_ENGINE) += dma/ +obj-$(CONFIG_DMADEVICES) += dma/ obj-$(CONFIG_VIRTIO) += virtio/ obj-$(CONFIG_XEN) += xen/drivers/dma/Kconfig +9
-0@@ -118,6 +118,15 @@ config FSL_DMA The Elo is the DMA controller on some 82xx and 83xx parts, and the Elo Plus is the DMA controller on 85xx and 86xx parts. +config FSL_MCD_DMA + bool "Freescale MultiChannel DMA (MCD) support" + depends on PPC_MPC8220 || M54xx + ---help--- + This enables generic support for the Freescale MultiChannel DMA (MCD) + available on MPC8220 and ColdFire 547x/548x family. + This driver is used by the specific dma driver for the target CPU. + Some drivers, especially the FEC DMA driver, need it. + config MPC512X_DMA tristate "Freescale MPC512x built-in DMA engine support" depends on PPC_MPC512x || PPC_MPC831xdrivers/dma/Makefile +1
-0@@ -9,6 +9,7 @@ obj-$(CONFIG_DMATEST) += dmatest.o obj-$(CONFIG_INTEL_IOATDMA) += ioat/ obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o obj-$(CONFIG_FSL_DMA) += fsldma.o +obj-$(CONFIG_FSL_MCD_DMA) += fsl_mcd_dma/ obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o obj-$(CONFIG_MV_XOR) += mv_xor.o obj-$(CONFIG_DW_DMAC) += dw_dmac.odrivers/dma/fsl_mcd_dma/MCD_dmaApi.c new file +963
-0@@ -0,0 +1,963 @@ +/* +* drivers/dma/MCD_dmaApi.c +* +* Copyright (C) 2004-2008 Freescale Semiconductor, Inc. +* Kurt Mahan <[email protected]> +* readl/writel conversion and other cleanup +* (C) Copyright 2010-2012 Philippe De Muyter <[email protected]> Macq SA +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <linux/MCD_dma.h> +#include <linux/io.h> +#include "MCD_tasksInit.h" + +/********************************************************************/ +/* +* This is an API-internal pointer to the DMA's registers +*/ +struct dmaRegs *MCD_dmaBar; + +/* +* MCD_realTaskTableSrc & MCD_modelTaskTableSrc get relocated to on-chip +* SRAM, at which point we access them as these tables +*/ +struct TaskTableEntry *MCD_taskTable; +struct TaskTableEntry *MCD_modelTaskTable; + + +/* +* MCD_chStatus[] is an array of status indicators for remembering +* whether a DMA has ever been attempted on each channel, pausing +* status, etc. +*/ +static int MCD_chStatus[NCHANNELS ] = { +MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA , +MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA , +MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA , +MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA ,MCD_NO_DMA +}; + +/* +* Prototypes for local functions +*/ +static void MCD_memcpy (int *dest,int *src,u32 size); +static void MCD_resmActions (int channel); + +/* +* Buffer descriptors used for storage of progress info for single Dmas +* Also used as storage for the DMA for CRCs for single DMAs +* Otherwise, the DMA does not parse these buffer descriptors +*/ +#ifndef MCD_INCLUDE_EU +struct MCD_bufDesc MCD_singleBufDescs[NCHANNELS ]; +#endif +struct MCD_bufDesc *MCD_relocBuffDesc; + + +/* +* Defines for the debug control register's functions +*/ +#define DBG_CTL_COMP1_TASK (0x00002000)/* have comparator 1 look for a task # */ +#define DBG_CTL_ENABLE (DBG_CTL_AUTO_ARM | \ + DBG_CTL_BREAK | \ + DBG_CTL_INT_BREAK | \ + DBG_CTL_COMP1_TASK) +#define DBG_CTL_DISABLE (DBG_CTL_AUTO_ARM | \ + DBG_CTL_INT_BREAK | \ + DBG_CTL_COMP1_TASK) +#define DBG_KILL_ALL_STAT (0xFFFFFFFF) + +/* +* Offset to context save area where progress info is stored +*/ +#define CSAVE_OFFSET 10 +#define CURRBD ((CSAVE_OFFSET + 4) * 4) +#define DCOUNT ((CSAVE_OFFSET + 6) * 4) +#define DESTPTR ((CSAVE_OFFSET + 5) * 4) +#define SRCPTR ((CSAVE_OFFSET + 7) * 4) + +/* +* Defines for Byte Swapping +*/ +#define MCD_BYTE_SWAP_KILLER 0xFFF8888F +#define MCD_NO_BYTE_SWAP_ATALL 0x00040000 + +/* +* Execution Unit Identifiers +*/ +#define MAC 0/* legacy - not used */ +#define LUAC 1/* legacy - not used */ +#define CRC 2/* legacy - not used */ +#define LURC 3/* Logic Unit with CRC */ + +/* +* Task Identifiers +*/ +#define TASK_CHAINNOEU 0 +#define TASK_SINGLENOEU 1 +#ifdef MCD_INCLUDE_EU +#define TASK_CHAINEU 2 +#define TASK_SINGLEEU 3 +#define TASK_FECRX 4 +#define TASK_FECTX 5 +#else +#define TASK_CHAINEU 0 +#define TASK_SINGLEEU 1 +#define TASK_FECRX 2 +#define TASK_FECTX 3 +#endif + +/* +* Structure to remember which variant is on which channel +*/ +struct MCD_remVariants { +int remDestRsdIncr;/* -1,0,1 */ +int remSrcRsdIncr;/* -1,0,1 */ +s16 remDestIncr;/* DestIncr */ +s16 remSrcIncr;/* srcIncr */ +u32 remXferSize;/* xferSize */ +}; + +/* +* Structure to remember the startDma parameters for each channel +*/ +struct MCD_remVariants MCD_remVariants[NCHANNELS ]; + +/********************************************************************/ +/* +* Function: MCD_initDma +* Purpose: Initializes the DMA API by setting up a pointer to the DMA +* registers, relocating and creating the appropriate task +* structures, and setting up some global settings +* Arguments: +* dmaBarAddr - pointer to the multichannel DMA registers +* taskTableDest - location to move DMA task code and structs to +* flags - operational parameters +* Return Value: +* MCD_TABLE_UNALIGNED if taskTableDest is not 512-byte aligned +* MCD_OK otherwise +*/ + +int MCD_initDma (struct dmaRegs *dmaBarAddr,void *taskTableDest,u32 flags) +{ +int i; +struct TaskTableEntry *entryPtr, *tte; +u16 control; + +/* Setup the local pointer to register set */ + MCD_dmaBar = dmaBarAddr; + +/* Do we need to move/create a task table */ +if ((flags &MCD_RELOC_TASKS ) !=0 ) { +int fixedSize; +u32 *fixedPtr; +int varTabsOffset, funcDescTabsOffset, contextSavesOffset; +int taskDescTabsOffset; +int varTabsSize, funcDescTabsSize, contextSavesSize; +int taskTableSize, taskDescTabSize; + +int i; + +/* Check if physical address is aligned on 512 byte boundary */ +if (((u32 )taskTableDest &0x000001ff ) !=0 ) +return MCD_TABLE_UNALIGNED ; + +/* set up local pointer to task Table */ + MCD_taskTable = taskTableDest; + +/* +* Create a task table: +* - compute aligned base offsets for variable tables and +* function descriptor tables, then +* - loop through the task table and setup the pointers +* - copy over model task table with the the actual task +* descriptor tables +*/ + taskTableSize =NCHANNELS *sizeof (struct TaskTableEntry ); +/* Align variable tables to size */ + varTabsOffset = taskTableSize + (u32 )taskTableDest; + varTabsOffset =ALIGN (varTabsOffset,VAR_TAB_SIZE ); +/* Align function descriptor tables */ + varTabsSize =NCHANNELS *VAR_TAB_SIZE ; + funcDescTabsOffset = varTabsOffset + varTabsSize; + funcDescTabsOffset =ALIGN (funcDescTabsOffset,FUNCDESC_TAB_SIZE ); + + funcDescTabsSize =FUNCDESC_TAB_NUM *FUNCDESC_TAB_SIZE ; + contextSavesOffset = funcDescTabsOffset + funcDescTabsSize; + contextSavesSize = (NCHANNELS *CONTEXT_SAVE_SIZE ); + fixedSize = taskTableSize + varTabsSize + funcDescTabsSize + + contextSavesSize; + +/* Zero the thing out */ + fixedPtr = (u32 *)taskTableDest; +for (i =0 ; i < (fixedSize/4 ); i++) + fixedPtr[i] =0 ; + + entryPtr = (struct TaskTableEntry *)MCD_taskTable; +/* Set up fixed pointers */ +for (i =0 ; i <NCHANNELS ; i++) { + tte = &entryPtr[i]; + tte->varTab = (u32 )varTabsOffset;/* update ptr to local value */ + tte->FDTandFlags = (u32 )funcDescTabsOffset |MCD_TT_FLAGS_DEF ; + tte->contextSaveSpace = (u32 )contextSavesOffset; + varTabsOffset +=VAR_TAB_SIZE ; +#ifdef MCD_INCLUDE_EU /* if not there is only one, just point to the same one */ + funcDescTabsOffset +=FUNCDESC_TAB_SIZE ; +#endif + contextSavesOffset +=CONTEXT_SAVE_SIZE ; + } +/* Copy over the function descriptor table */ +for (i =0 ; i <FUNCDESC_TAB_NUM ; i++) { + tte = &entryPtr[i]; +MCD_memcpy ((void *)(tte->FDTandFlags & ~MCD_TT_FLAGS_MASK ), + (void *)MCD_funcDescTab0,FUNCDESC_TAB_SIZE ); + } + +/* Copy model task table to where the context save stuff leaves off */ + MCD_modelTaskTable = (struct TaskTableEntry *)contextSavesOffset; + +MCD_memcpy ((void *)MCD_modelTaskTable, (void *)MCD_modelTaskTableSrc, +NUMOFVARIANTS *sizeof (struct TaskTableEntry )); + +/* Point to local version of model task table */ + entryPtr = MCD_modelTaskTable; + taskDescTabsOffset = (u32 )MCD_modelTaskTable + + (NUMOFVARIANTS *sizeof (struct TaskTableEntry )); + +/* Copy actual task code and update TDT ptrs in local model task table */ +for (i =0 ; i <NUMOFVARIANTS ; i++) { + tte = &entryPtr[i]; + taskDescTabSize = tte->TDTend - tte->TDTstart +4 ; +MCD_memcpy ((void *)taskDescTabsOffset, (void *)tte->TDTstart, taskDescTabSize); + tte->TDTstart = (u32 )taskDescTabsOffset; + taskDescTabsOffset += taskDescTabSize; + tte->TDTend = (u32 )taskDescTabsOffset -4 ; + } +#ifdef MCD_INCLUDE_EU +/* +* Tack single DMA BDs onto end of code so API controls where +* they are since DMA might write to them +*/ + MCD_relocBuffDesc = (struct MCD_bufDesc *)(entryPtr[NUMOFVARIANTS -1 ].TDTend +4 ); +#else +/* +* DMA does not touch them so they can be wherever and we don't +* need to waste SRAM on them +*/ + MCD_relocBuffDesc = MCD_singleBufDescs; +#endif + }else { +/* +* Point the would-be relocated task tables and the buffer +* descriptors to the ones the linker generated +*/ +if (((u32 )MCD_realTaskTableSrc &0x000001ff ) !=0 ) +return MCD_TABLE_UNALIGNED ; + + entryPtr = (struct TaskTableEntry *)MCD_realTaskTableSrc; +for (i =0 ; i <NCHANNELS ; i++) { + tte = &entryPtr[i]; +if (((tte->varTab & (VAR_TAB_SIZE -1 )) !=0 ) || + ((tte->FDTandFlags & (FUNCDESC_TAB_SIZE -1 )) !=0 )) +return MCD_TABLE_UNALIGNED ; + } + + MCD_taskTable = (struct TaskTableEntry *)MCD_realTaskTableSrc; + MCD_modelTaskTable = (struct TaskTableEntry *)MCD_modelTaskTableSrc; + MCD_relocBuffDesc = MCD_singleBufDescs; + } + +/* Make all channels inactive, and remember them as such: */ +writel ((u32 ) MCD_taskTable, &MCD_dmaBar->taskbar); +for (i =0 ; i <NCHANNELS ; i++) { +writew (0x0 , &MCD_dmaBar->taskControl[i]); + MCD_chStatus[i] =MCD_NO_DMA ; + } + +/* Set up pausing mechanism to inactive state: */ +writel (0 , &MCD_dmaBar->debugComp1); +writel (0 , &MCD_dmaBar->debugComp2); +writel (DBG_CTL_DISABLE , &MCD_dmaBar->debugControl); +writel (DBG_KILL_ALL_STAT , &MCD_dmaBar->debugStatus); + +/* Enable or disable commbus prefetch */ + control =readw (&MCD_dmaBar->ptdControl); +if ((flags &MCD_COMM_PREFETCH_EN ) !=0 ) + control &= ~PTD_CTL_COMM_PREFETCH ; +else + control |=PTD_CTL_COMM_PREFETCH ; +writew (control, &MCD_dmaBar->ptdControl); + +return MCD_OK ; +} +/*********************** End of MCD_initDma() ***********************/ + +/********************************************************************/ +/* Function: MCD_dmaStatus +* Purpose: Returns the status of the DMA on the requested channel +* Arguments: channel - channel number +* Returns: Predefined status indicators +*/ +int MCD_dmaStatus (int channel) +{ +u16 tcrValue; + +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + + tcrValue =readw (&MCD_dmaBar->taskControl[channel]); +if ((tcrValue &TASK_CTL_EN ) ==0 ) { +/* Nothing running if last reported with task enabled */ +if (MCD_chStatus[channel] ==MCD_RUNNING + || MCD_chStatus[channel] ==MCD_IDLE ) + MCD_chStatus[channel] =MCD_DONE ; + }else {/* something is running */ +/* There are three possibilities: paused, running or idle. */ +if (MCD_chStatus[channel] ==MCD_RUNNING + || MCD_chStatus[channel] ==MCD_IDLE ) { +writel (PTD_DBG_TSK_VLD_INIT , &MCD_dmaBar->ptdDebug); +/* Determine which initiator is asserted. */ +if ((readl (&MCD_dmaBar->ptdDebug) >> channel) &0x1 ) + MCD_chStatus[channel] =MCD_RUNNING ; +else + MCD_chStatus[channel] =MCD_IDLE ; +/* Do not change the status if it is already paused */ + } + } +return MCD_chStatus[channel]; +} +/******************** End of MCD_dmaStatus() ************************/ + +/********************************************************************/ +/* Function: MCD_startDma +* Ppurpose: Starts a particular kind of DMA +* Arguments: see below +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +*/ + +int MCD_startDma ( +const int channel,/* the channel on which to run the DMA */ +s8 *srcAddr,/* the address to move data from, or physical buffer-descriptor address */ +s16 srcIncr,/* the amount to increment the source address per transfer */ +s8 *destAddr,/* the address to move data to */ +s16 destIncr,/* the amount to increment the destination address per transfer */ +u32 dmaSize,/* the number of bytes to transfer independent of the transfer size */ +u32 xferSize,/* the number bytes in of each data movement (1, 2, or 4) */ +u32 initiator,/* what device initiates the DMA */ +int priority,/* priority of the DMA */ +u32 flags,/* flags describing the DMA */ + u32 funcDesc /* a description of byte swapping, bit swapping, and CRC actions */ +#ifdef MCD_NEED_ADDR_TRANS + s8 *srcAddrVirt /* virtual buffer descriptor address TBD */ +#endif +) +{ +int srcRsdIncr, destRsdIncr; +int *cSave; +short xferSizeIncr; +int tcrCount =0 ; +#ifdef MCD_INCLUDE_EU +u32 *realFuncArray; +#endif +u16 control; +struct MCD_remVariants *var; +struct TaskTableEntry *tte; +u32 css; +struct TaskTableEntry *mmte; + +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + +#ifndef MCD_INCLUDE_EU + funcDesc =MCD_FUNC_NOEU1 ; +#endif + +#ifdef MCD_DEBUG +printf ("startDma:Setting up params\n" ); +#endif + +/* Enable task-wise priority */ + control =readl (&MCD_dmaBar->ptdControl); +writel (control |0x8000 , &MCD_dmaBar->ptdControl); + +/* Calculate additional parameters to the regular DMA calls. */ + srcRsdIncr = srcIncr <0 ?-1 : (srcIncr >0 ?1 :0 ); + destRsdIncr = destIncr <0 ?-1 : (destIncr >0 ?1 :0 ); + xferSizeIncr = (xferSize &0xffff ) |0x20000000 ; + +/* Remember which variant is running for each channel */ + var = &MCD_remVariants[channel]; + var->remSrcRsdIncr = srcRsdIncr; + var->remDestRsdIncr = destRsdIncr; + var->remDestIncr = destIncr; + var->remSrcIncr = srcIncr; + var->remXferSize = xferSize; + + tte = &MCD_taskTable[channel]; + + cSave = (int *)(tte->contextSaveSpace +CURRBD ); + +#ifdef MCD_INCLUDE_EU + realFuncArray = (u32 *) (tte->FDTandFlags &0xffffff00 ); + +/* +* Modify the LURC's normal and byte-residue-loop functions +* according to parameter. +*/ +switch (xferSize) { +case 4 : + realFuncArray[(LURC *16 )] = funcDesc; +break ; +case 2 : + realFuncArray[(LURC *16 )] = funcDesc &0xfffff00f ; +break ; +case 1 : +default : + realFuncArray[(LURC *16 )] = funcDesc &0xffff000f ; +break ; + } + + realFuncArray[(LURC *16 +1 )] =0 + | (funcDesc &MCD_BYTE_SWAP_KILLER ) + |MCD_NO_BYTE_SWAP_ATALL ; +#endif + +/* Write the initiator field in the TCR and set the initiator-hold bit */ +writew (0 + | (initiator <<8 ) + |TASK_CTL_HIPRITSKEN + |TASK_CTL_HLDINITNUM , + &MCD_dmaBar->taskControl[channel]); + +/* +* Current versions of the MPC8220 MCD have a hardware quirk that could +* cause the write to the TCR to collide with an MDE access to the +* initiator-register file, so we have to verify that the write occurred +* correctly by reading back the value. On MCF547x/8x devices and any +* future revisions of the MPC8220, this loop will not be entered. +*/ +while (((readw (&MCD_dmaBar->taskControl[channel]) &0x1fff ) != + ((initiator <<8 ) |TASK_CTL_HIPRITSKEN |TASK_CTL_HLDINITNUM )) && + (tcrCount <1000 )) { + tcrCount++; +writew (0 + | (initiator <<8 ) + |TASK_CTL_HIPRITSKEN + |TASK_CTL_HLDINITNUM , + &MCD_dmaBar->taskControl[channel]); + } + +writeb (priority &PRIORITY_PRI_MASK , &MCD_dmaBar->priority[channel]); + +if (channel <8 && channel >=0 ) { +u32 tasksize =readl (&MCD_dmaBar->taskSize0); +int shift = (7 - channel) *4 ; +u32 xfermask; + + tasksize &= ~(0xf << shift); + xfermask = xferSize &3 ; + xfermask |= xfermask <<2 ; + tasksize |= xfermask << shift; +writel (tasksize, &MCD_dmaBar->taskSize0); + }else { +u32 tasksize =readl (&MCD_dmaBar->taskSize1); +int shift = (15 - channel) *4 ; +u32 xfermask; + + tasksize &= ~(0xf << shift); + xfermask = xferSize &3 ; + xfermask |= xfermask <<2 ; + tasksize |= xfermask << shift; +writel (tasksize, &MCD_dmaBar->taskSize1); + } + +/* Setup task table flags/options */ + tte->FDTandFlags &= ~MCD_TT_FLAGS_MASK ; + tte->FDTandFlags |= (MCD_TT_FLAGS_MASK & flags); + +if (flags &MCD_FECTX_DMA ) { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_FECTX ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaENetXmit (srcAddr, srcAddr, destAddr, MCD_taskTable, + channel); + }else if (flags &MCD_FECRX_DMA ) { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_FECRX ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaENetRcv (srcAddr, srcAddr, destAddr, MCD_taskTable, + channel); + }else if (flags &MCD_SINGLE_DMA ) { +struct MCD_bufDesc *mrbd; + +/* +* This buffer descriptor is used for storing off initial +* parameters * for later progress query calculation and for +* the DMA to write the resulting checksum. The DMA does not +* use this to determine how to * operate, that info is passed +* with the init routine +*/ + mrbd = &MCD_relocBuffDesc[channel]; + mrbd->srcAddr = srcAddr; + mrbd->destAddr = destAddr; + mrbd->lastDestAddr = destAddr; + mrbd->dmaSize = dmaSize; + mrbd->flags =0 ;/* not used */ + mrbd->csumResult =0 ;/* not used */ + mrbd->next =0 ;/* not used */ + +/* Initialize the progress-querying stuff to show no progress:*/ + css = tte->contextSaveSpace; +writel ((int )srcAddr, css +SRCPTR ); +writel ((int )destAddr, css +DESTPTR ); +writel (0 , css +DCOUNT ); +writel ((u32 )mrbd, css +CURRBD ); + +if (funcDesc ==MCD_FUNC_NOEU1 || funcDesc ==MCD_FUNC_NOEU2 ) { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_SINGLENOEU ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaSingleNoEu (srcAddr, srcIncr, destAddr, + destIncr, dmaSize, + xferSizeIncr, flags, (int *)mrbd, + cSave, MCD_taskTable, channel); + }else { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_SINGLEEU ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaSingleEu (srcAddr, srcIncr, destAddr, + destIncr, dmaSize, + xferSizeIncr, flags, (int *)mrbd, + cSave, MCD_taskTable, channel); + } + }else /* Chained DMA */ { +struct MCD_bufDesc *mbd; + +/* Initialize the progress-querying stuff to show no progress:*/ +#if 1 /* (!defined(MCD_NEED_ADDR_TRANS)) */ + mbd = (struct MCD_bufDesc *) srcAddr; +#else /* if using address translation, need the virtual addr of the first buffdesc */ + mbd = (struct MCD_bufDesc *) srcAddrVirt; +#endif + css = tte->contextSaveSpace; +writel ((int )mbd->srcAddr, css +SRCPTR ); +writel ((int )mbd->destAddr, css +DESTPTR ); +writel (0 , css +DCOUNT ); +writel ((u32 )srcAddr, css +CURRBD ); + +if (funcDesc ==MCD_FUNC_NOEU1 || funcDesc ==MCD_FUNC_NOEU2 ) { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_CHAINNOEU ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaChainNoEu ((int *)srcAddr, srcIncr, destIncr, + xferSize, xferSizeIncr, cSave, + MCD_taskTable, channel); + }else { +/* TDTStart and TDTEnd */ + mmte = &MCD_modelTaskTable[TASK_CHAINEU ]; + tte->TDTstart = mmte->TDTstart; + tte->TDTend = mmte->TDTend; +MCD_startDmaChainEu ((int *)srcAddr, srcIncr, destIncr, + xferSize, xferSizeIncr, cSave, + MCD_taskTable, channel); + } + } + + MCD_chStatus[channel] =MCD_IDLE ; +return MCD_OK ; +} + +/************************ End of MCD_startDma() *********************/ + +/********************************************************************/ +/* Function: MCD_XferProgrQuery +* Purpose: Returns progress of DMA on requested channel +* Arguments: channel - channel to retrieve progress for +* progRep - pointer to user supplied MCD_XferProg struct +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +* +* Notes: +* MCD_XferProgrQuery() upon completing or after aborting a DMA, or +* while the DMA is in progress, this function returns the first +* DMA-destination address not (or not yet) used in the DMA. When +* encountering a non-ready buffer descriptor, the information for +* the last completed descriptor is returned. +* +* MCD_XferProgQuery() has to avoid the possibility of getting +* partially-updated information in the event that we should happen +* to query DMA progress just as the DMA is updating it. It does that +* by taking advantage of the fact context is not saved frequently for +* the most part. We therefore read it at least twice until we get the +* same information twice in a row. +* +* Because a small, but not insignificant, amount of time is required +* to write out the progress-query information, especially upon +* completion of the DMA, it would be wise to guarantee some time lag +* between successive readings of the progress-query information. +*/ + +/* +* How many iterations of the loop below to execute to stabilize values +*/ +#define STABTIME 0 + +int MCD_XferProgrQuery (const int channel,struct MCD_XferProg *progRep) +{ +struct MCD_XferProg prevRep; +int again;/* true if we are to try again to get consistent results */ +int i;/* used as a time-waste counter */ +int destDiffBytes;/* Total number of bytes that we think actually got xfered. */ +int numIterations;/* number of iterations */ +int bytesNotXfered;/* bytes that did not get xfered. */ +s8 *LWAlignedInitDestAddr, *LWAlignedCurrDestAddr; +int subModVal, addModVal;/* Mode values to added and subtracted from +the final destAddr */ +struct TaskTableEntry *tte; +u32 css; +struct MCD_remVariants *var; + +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + + tte = &MCD_taskTable[channel]; + css = tte->contextSaveSpace; + +/* Read a trial value for the progress-reporting values */ + prevRep.lastSrcAddr = (s8 *)readl (css +SRCPTR ); + prevRep.lastDestAddr = (s8 *)readl (css +DESTPTR ); + prevRep.dmaSize =readl (css +DCOUNT ); + prevRep.currBufDesc = (struct MCD_bufDesc *)readl (css +CURRBD ); + +/* Repeatedly reread those values until they match previous values: */ +do { +/* Take a little bit of time to ensure stability: */ +for (i =0 ; i <STABTIME ; i++) + i += i >>2 ;/* make sure this loop does something so +that it doesn't get optimized out */ +/* Check them again: */ + progRep->lastSrcAddr = (s8 *)readl (css +SRCPTR ); + progRep->lastDestAddr = (s8 *)readl (css +DESTPTR ); + progRep->dmaSize =readl (css +DCOUNT ); + progRep->currBufDesc = (struct MCD_bufDesc *)readl (css +CURRBD ); + +/* See if they match: */ +if (prevRep.lastSrcAddr != progRep->lastSrcAddr + || prevRep.lastDestAddr != progRep->lastDestAddr + || prevRep.dmaSize != progRep->dmaSize + || prevRep.currBufDesc != progRep->currBufDesc) { +/* If they don't match, remember previous values and try again:*/ + prevRep.lastSrcAddr = progRep->lastSrcAddr; + prevRep.lastDestAddr = progRep->lastDestAddr; + prevRep.dmaSize = progRep->dmaSize; + prevRep.currBufDesc = progRep->currBufDesc; + again =MCD_TRUE ; + }else + again =MCD_FALSE ; + }while (again ==MCD_TRUE ); + + +/* Update dmaSize and lastDestAddr */ + var = &MCD_remVariants[channel]; +switch (var->remDestRsdIncr) { +case MINUS1 : + subModVal = ((int )progRep->lastDestAddr) + & ((var->remXferSize) -1 ); + addModVal = ((int )progRep->currBufDesc->destAddr) + & ((var->remXferSize) -1 ); + LWAlignedInitDestAddr = (progRep->currBufDesc->destAddr) - addModVal; + LWAlignedCurrDestAddr = (progRep->lastDestAddr) - subModVal; + destDiffBytes = LWAlignedInitDestAddr - LWAlignedCurrDestAddr; + bytesNotXfered = (destDiffBytes/var->remDestIncr) * + (var->remDestIncr + var->remXferSize); + progRep->dmaSize = destDiffBytes - bytesNotXfered + addModVal - subModVal; +break ; +case ZERO : + progRep->lastDestAddr = progRep->currBufDesc->destAddr; +break ; +case PLUS1 : +/* This value has to be subtracted from the final calculated dmaSize. */ + subModVal = ((int )progRep->currBufDesc->destAddr) + & ((var->remXferSize) -1 ); +/* These bytes are already in lastDestAddr. */ + addModVal = ((int )progRep->lastDestAddr) + & ((var->remXferSize) -1 ); + LWAlignedInitDestAddr = (progRep->currBufDesc->destAddr) - subModVal; + LWAlignedCurrDestAddr = (progRep->lastDestAddr) - addModVal; + destDiffBytes = (progRep->lastDestAddr - LWAlignedInitDestAddr); + numIterations = (LWAlignedCurrDestAddr - LWAlignedInitDestAddr)/var->remDestIncr; + bytesNotXfered = numIterations * + (var->remDestIncr - var->remXferSize); + progRep->dmaSize = destDiffBytes - bytesNotXfered - subModVal; +break ; +default : +break ; + } + +/* This covers M1,P1,Z for source */ +switch (var->remSrcRsdIncr) { +case MINUS1 : + progRep->lastSrcAddr = progRep->currBufDesc->srcAddr + + (var->remSrcIncr * (progRep->dmaSize/var->remXferSize)); +break ; +case ZERO : + progRep->lastSrcAddr = progRep->currBufDesc->srcAddr; +break ; +case PLUS1 : + progRep->lastSrcAddr = progRep->currBufDesc->srcAddr + + (var->remSrcIncr * (progRep->dmaSize/var->remXferSize)); +break ; +default : +break ; + } + +return MCD_OK ; +} +/******************* End of MCD_XferProgrQuery() ********************/ + +/********************************************************************/ +/* MCD_resmActions() does the majority of the actions of a DMA resume. +* It is called from MCD_killDma() and MCD_resumeDma(). It has to be +* a separate function because the kill function has to negate the task +* enable before resuming it, but the resume function has to do nothing +* if there is no DMA on that channel (i.e., if the enable bit is 0). +*/ +static void MCD_resmActions (int channel) +{ +u32 status; + +writel (DBG_CTL_DISABLE , &MCD_dmaBar->debugControl); + status =readl (&MCD_dmaBar->debugStatus); +writel (status, &MCD_dmaBar->debugStatus); + +/* Determine which initiators are asserted */ +writel (PTD_DBG_TSK_VLD_INIT , &MCD_dmaBar->ptdDebug); + +if ((readl (&MCD_dmaBar->ptdDebug) >> channel) &0x1 ) + MCD_chStatus[channel] =MCD_RUNNING ; +else + MCD_chStatus[channel] =MCD_IDLE ; +} +/********************* End of MCD_resmActions() *********************/ + +/********************************************************************/ +/* Function: MCD_killDma +* Purpose: Halt the DMA on the requested channel, without any +* intention of resuming the DMA. +* Arguments: channel - requested channel +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +* +* Notes: +* A DMA may be killed from any state, including paused state, and it +* always goes to the MCD_HALTED state even if it is killed while in +* the MCD_NO_DMA or MCD_IDLE states. +*/ +int MCD_killDma (int channel) +{ +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + +writew (0x0 , &MCD_dmaBar->taskControl[channel]); + +/* Clean up after a paused task */ +if (MCD_chStatus[channel] ==MCD_PAUSED ) { +u32 status; + +writel (DBG_CTL_DISABLE , &MCD_dmaBar->debugControl); + status =readl (&MCD_dmaBar->debugStatus); +writel (status, &MCD_dmaBar->debugStatus); + } + + MCD_chStatus[channel] =MCD_HALTED ; + +return MCD_OK ; +} +/************************ End of MCD_killDma() **********************/ + +/********************************************************************/ +/* Function: MCD_continDma +* Purpose: Continue a DMA which as stopped due to encountering an +* unready buffer descriptor. +* Arguments: channel - channel to continue the DMA on +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +* +* Notes: +* This routine does not check to see if there is a task which can +* be continued. Also this routine should not be used with single DMAs. +*/ +int MCD_continDma (int channel) +{ +u16 tcrValue; + +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + + tcrValue =readw (&MCD_dmaBar->taskControl[channel]); +writew (tcrValue |TASK_CTL_EN , &MCD_dmaBar->taskControl[channel]); + MCD_chStatus[channel] =MCD_RUNNING ; + +return MCD_OK ; +} +/********************** End of MCD_continDma() **********************/ + +/********************************************************************* +* MCD_pauseDma() and MCD_resumeDma() below use the DMA's debug unit +* to freeze a task and resume it. We freeze a task by breakpointing +* on the stated task. That is, not any specific place in the task, +* but any time that task executes. In particular, when that task +* executes, we want to freeze that task and only that task. +* +* The bits of the debug control register influence interrupts vs. +* breakpoints as follows: +* - Bits 14 and 0 enable or disable debug functions. If enabled, you +* will get the interrupt but you may or may not get a breakpoint. +* - Bits 2 and 1 decide whether you also get a breakpoint in addition +* to an interrupt. +* +* The debug unit can do these actions in response to either internally +* detected breakpoint conditions from the comparators, or in response +* to the external breakpoint pin, or both. +* - Bits 14 and 1 perform the above-described functions for +* internally-generated conditions, i.e., the debug comparators. +* - Bits 0 and 2 perform the above-described functions for external +* conditions, i.e., the breakpoint external pin. +* +* Note that, although you "always" get the interrupt when you turn +* the debug functions, the interrupt can nevertheless, if desired, be +* masked by the corresponding bit in the PTD's IMR. Note also that +* this means that bits 14 and 0 must enable debug functions before +* bits 1 and 2, respectively, have any effect. +* +* NOTE: It's extremely important to not pause more than one DMA channel +* at a time. +********************************************************************/ + +/********************************************************************/ +/* Function: MCD_pauseDma +* Purpose: Pauses the DMA on a given channel (if any DMA is running +* on that channel). +* Arguments: channel +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +*/ +int MCD_pauseDma (int channel) +{ +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + +if (readw (&MCD_dmaBar->taskControl[channel]) &TASK_CTL_EN ) { +writel (channel, &MCD_dmaBar->debugComp1); +writel (DBG_CTL_ENABLE | (1 << (channel +16 )), + &MCD_dmaBar->debugControl); + MCD_chStatus[channel] =MCD_PAUSED ; + } +return MCD_OK ; +} +/************************* End of MCD_pauseDma() ********************/ + +/********************************************************************/ +/* Function: MCD_resumeDma +* Purpose: Resumes the DMA on a given channel (if any DMA is +* running on that channel). +* Arguments: channel - channel on which to resume DMA +* Returns: MCD_CHANNEL_INVALID if channel is invalid, else MCD_OK +*/ +int MCD_resumeDma (int channel) +{ +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + +if (readw (&MCD_dmaBar->taskControl[channel]) &TASK_CTL_EN ) +MCD_resmActions (channel); + +return MCD_OK ; +} +/************************ End of MCD_resumeDma() ********************/ + +/********************************************************************/ +/* Function: MCD_csumQuery +* Purpose: Provide the checksum after performing a non-chained DMA +* Arguments: channel - channel to report on +* csum - pointer to where to write the checksum/CRC +* Returns: MCD_ERROR if the channel is invalid, else MCD_OK +* +* Notes: +* +*/ +int MCD_csumQuery (int channel,u32 *csum) +{ +#ifdef MCD_INCLUDE_EU +if ((channel <0 ) || (channel >=NCHANNELS )) +return MCD_CHANNEL_INVALID ; + + *csum = MCD_relocBuffDesc[channel].csumResult; +return MCD_OK ; +#else +return MCD_ERROR ; +#endif +} +/*********************** End of MCD_resumeDma() *********************/ + +/********************************************************************/ +/* Function: MCD_getCodeSize +* Purpose: Provide the size requirements of the microcoded tasks +* Returns: Size in bytes +*/ +int MCD_getCodeSize (void ) +{ +#ifdef MCD_INCLUDE_EU +return 0x2b64 ; +#else +return 0x1744 ; +#endif +} +/********************** End of MCD_getCodeSize() ********************/ + +/********************************************************************/ +/* Function: MCD_getVersion +* Purpose: Provide the version string and number +* Arguments: longVersion - user supplied pointer to a pointer to a char +* which points to the version string +* Returns: Version number and version string (by reference) +*/ +char MCD_versionString[] ="Multi-channel DMA API v1.0" ; +#define MCD_REV_MAJOR 0x01 +#define MCD_REV_MINOR 0x00 + +int MCD_getVersion (char **longVersion) +{ + *longVersion = MCD_versionString; +return (MCD_REV_MAJOR <<8 ) |MCD_REV_MINOR ; +} +/********************** End of MCD_getVersion() *********************/ + +/********************************************************************/ +/* Private version of memcpy() +* Note that everything this is used for is longword-aligned. +*/ +static void MCD_memcpy (int *dest,int *src,u32 size) +{ +u32 i; + +for (i =0 ; i < size; i +=sizeof (int ), dest++, src++) + *dest = *src; +} +/********************************************************************/ drivers/dma/fsl_mcd_dma/MCD_tasks.c new file +2425
-0@@ -0,0 +1,2425 @@ +/* +* drivers/dma/MCD_tasks.c +* +* Copyright (C) 2004-2008 Freescale Semiconductor, Inc. +* Kurt Mahan <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <linux/MCD_dma.h> + +u32 MCD_varTab0[]; +u32 MCD_varTab1[]; +u32 MCD_varTab2[]; +u32 MCD_varTab3[]; +u32 MCD_varTab4[]; +u32 MCD_varTab5[]; +u32 MCD_varTab6[]; +u32 MCD_varTab7[]; +u32 MCD_varTab8[]; +u32 MCD_varTab9[]; +u32 MCD_varTab10[]; +u32 MCD_varTab11[]; +u32 MCD_varTab12[]; +u32 MCD_varTab13[]; +u32 MCD_varTab14[]; +u32 MCD_varTab15[]; + +u32 MCD_funcDescTab0[]; +#ifdef MCD_INCLUDE_EU +u32 MCD_funcDescTab1[]; +u32 MCD_funcDescTab2[]; +u32 MCD_funcDescTab3[]; +u32 MCD_funcDescTab4[]; +u32 MCD_funcDescTab5[]; +u32 MCD_funcDescTab6[]; +u32 MCD_funcDescTab7[]; +u32 MCD_funcDescTab8[]; +u32 MCD_funcDescTab9[]; +u32 MCD_funcDescTab10[]; +u32 MCD_funcDescTab11[]; +u32 MCD_funcDescTab12[]; +u32 MCD_funcDescTab13[]; +u32 MCD_funcDescTab14[]; +u32 MCD_funcDescTab15[]; +#endif + +u32 MCD_contextSave0[]; +u32 MCD_contextSave1[]; +u32 MCD_contextSave2[]; +u32 MCD_contextSave3[]; +u32 MCD_contextSave4[]; +u32 MCD_contextSave5[]; +u32 MCD_contextSave6[]; +u32 MCD_contextSave7[]; +u32 MCD_contextSave8[]; +u32 MCD_contextSave9[]; +u32 MCD_contextSave10[]; +u32 MCD_contextSave11[]; +u32 MCD_contextSave12[]; +u32 MCD_contextSave13[]; +u32 MCD_contextSave14[]; +u32 MCD_contextSave15[]; + +const u32 MCD_realTaskTableSrc[] = { +0x00000000 , +0x00000000 , + (u32 )MCD_varTab0,/* Task 0 Variable Table */ + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave0,/* Task 0 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab1,/* Task 1 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab1, /* Task 1 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave1,/* Task 1 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab2,/* Task 2 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab2, /* Task 2 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave2,/* Task 2 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab3,/* Task 3 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab3, /* Task 3 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave3,/* Task 3 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab4,/* Task 4 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab4, /* Task 4 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave4,/* Task 4 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab5,/* Task 5 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab5, /* Task 5 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave5,/* Task 5 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab6,/* Task 6 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab6, /* Task 6 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave6,/* Task 6 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab7,/* Task 7 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab7, /* Task 7 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave7,/* Task 7 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab8,/* Task 8 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab8, /* Task 8 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave8,/* Task 8 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab9,/* Task 9 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab9, /* Task 9 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave9,/* Task 9 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab10,/* Task 10 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab10, /* Task 10 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave10,/* Task 10 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab11,/* Task 11 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab11, /* Task 11 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave11,/* Task 11 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab12,/* Task 12 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab12, /* Task 12 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave12,/* Task 12 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab13,/* Task 13 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab13, /* Task 13 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave13,/* Task 13 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab14,/* Task 14 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab14, /* Task 14 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave14,/* Task 14 context save space */ +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_varTab15,/* Task 15 Variable Table */ +#ifdef MCD_INCLUDE_EU + (u32)MCD_funcDescTab15, /* Task 15 Function Descriptor Table & Flags */ +#else + (u32 )MCD_funcDescTab0,/* Task 0 Function Descriptor Table & Flags */ +#endif +0x00000000 , +0x00000000 , + (u32 )MCD_contextSave15,/* Task 15 context save space */ +0x00000000 , +}; + + +u32 MCD_varTab0[] = {/* Task 0 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + + +u32 MCD_varTab1[] = {/* Task 1 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab2[] = {/* Task 2 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab3[] = {/* Task 3 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab4[] = {/* Task 4 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab5[] = {/* Task 5 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab6[] = {/* Task 6 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab7[] = {/* Task 7 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab8[] = {/* Task 8 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab9[] = {/* Task 9 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab10[] = {/* Task 10 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab11[] = {/* Task 11 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab12[] = {/* Task 12 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab13[] = {/* Task 13 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab14[] = {/* Task 14 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_varTab15[] = {/* Task 15 Variable Table */ +0x00000000 ,/* var[0] */ +0x00000000 ,/* var[1] */ +0x00000000 ,/* var[2] */ +0x00000000 ,/* var[3] */ +0x00000000 ,/* var[4] */ +0x00000000 ,/* var[5] */ +0x00000000 ,/* var[6] */ +0x00000000 ,/* var[7] */ +0x00000000 ,/* var[8] */ +0x00000000 ,/* var[9] */ +0x00000000 ,/* var[10] */ +0x00000000 ,/* var[11] */ +0x00000000 ,/* var[12] */ +0x00000000 ,/* var[13] */ +0x00000000 ,/* var[14] */ +0x00000000 ,/* var[15] */ +0x00000000 ,/* var[16] */ +0x00000000 ,/* var[17] */ +0x00000000 ,/* var[18] */ +0x00000000 ,/* var[19] */ +0x00000000 ,/* var[20] */ +0x00000000 ,/* var[21] */ +0x00000000 ,/* var[22] */ +0x00000000 ,/* var[23] */ +0xe0000000 ,/* inc[0] */ +0x20000000 ,/* inc[1] */ +0x2000ffff ,/* inc[2] */ +0x00000000 ,/* inc[3] */ +0x00000000 ,/* inc[4] */ +0x00000000 ,/* inc[5] */ +0x00000000 ,/* inc[6] */ +0x00000000 ,/* inc[7] */ +}; + +u32 MCD_funcDescTab0[] = {/* Task 0 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +#ifdef MCD_INCLUDE_EU +u32 MCD_funcDescTab1[] = {/* Task 1 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab2[] = {/* Task 2 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab3[] = {/* Task 3 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab4[] = {/* Task 4 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab5[] = {/* Task 5 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab6[] = {/* Task 6 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab7[] = {/* Task 7 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab8[] = {/* Task 8 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab9[] = {/* Task 9 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab10[] = {/* Task 10 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab11[] = {/* Task 11 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab12[] = {/* Task 12 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab13[] = {/* Task 13 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab14[] = {/* Task 14 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; + +u32 MCD_funcDescTab15[] = {/* Task 15 Function Descriptor Table */ +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0xa0045670 ,/* mainFunc(), EU# 3 */ +0xa0000000 ,/* rsduFunc(), EU# 3 */ +0xa0000000 ,/* crcAccumVal(), EU# 3 */ +0x20000000 ,/* setCrcAccum(), EU# 3 */ +0x21800000 ,/* and(), EU# 3 */ +0x21e00000 ,/* or(), EU# 3 */ +0x20400000 ,/* add(), EU# 3 */ +0x20500000 ,/* sub(), EU# 3 */ +0x205a0000 ,/* andNot(), EU# 3 */ +0x20a00000 ,/* shiftR(), EU# 3 */ +0x202fa000 ,/* andReadyBit(), EU# 3 */ +0x202f9000 ,/* andNotReadyBit(), EU# 3 */ +0x202ea000 ,/* andWrapBit(), EU# 3 */ +0x202da000 ,/* andLastBit(), EU# 3 */ +0x202e2000 ,/* andInterruptBit(), EU# 3 */ +0x202f2000 ,/* andCrcRestartBit(), EU# 3 */ +}; +#endif /*MCD_INCLUDE_EU*/ + +u32 MCD_contextSave0[128 ];/* Task 0 context save space */ +u32 MCD_contextSave1[128 ];/* Task 1 context save space */ +u32 MCD_contextSave2[128 ];/* Task 2 context save space */ +u32 MCD_contextSave3[128 ];/* Task 3 context save space */ +u32 MCD_contextSave4[128 ];/* Task 4 context save space */ +u32 MCD_contextSave5[128 ];/* Task 5 context save space */ +u32 MCD_contextSave6[128 ];/* Task 6 context save space */ +u32 MCD_contextSave7[128 ];/* Task 7 context save space */ +u32 MCD_contextSave8[128 ];/* Task 8 context save space */ +u32 MCD_contextSave9[128 ];/* Task 9 context save space */ +u32 MCD_contextSave10[128 ];/* Task 10 context save space */ +u32 MCD_contextSave11[128 ];/* Task 11 context save space */ +u32 MCD_contextSave12[128 ];/* Task 12 context save space */ +u32 MCD_contextSave13[128 ];/* Task 13 context save space */ +u32 MCD_contextSave14[128 ];/* Task 14 context save space */ +u32 MCD_contextSave15[128 ];/* Task 15 context save space */ + +u32 MCD_ChainNoEu_TDT[]; +u32 MCD_SingleNoEu_TDT[]; +#ifdef MCD_INCLUDE_EU +u32 MCD_ChainEu_TDT[]; +u32 MCD_SingleEu_TDT[]; +#endif +u32 MCD_ENetRcv_TDT[]; +u32 MCD_ENetXmit_TDT[]; + +const u32 MCD_modelTaskTableSrc[] = { + (u32 )MCD_ChainNoEu_TDT, + (u32)&((u8 *)MCD_ChainNoEu_TDT)[0x0000016c ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_SingleNoEu_TDT, + (u32)&((u8 *)MCD_SingleNoEu_TDT)[0x000000d4 ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +#ifdef MCD_INCLUDE_EU + (u32)MCD_ChainEu_TDT, + (u32)&((u8 *)MCD_ChainEu_TDT)[0x000001b4 ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_SingleEu_TDT, + (u32)&((u8 *)MCD_SingleEu_TDT)[0x00000124 ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +#endif + (u32 )MCD_ENetRcv_TDT, + (u32)&((u8 *)MCD_ENetRcv_TDT)[0x000000a4 ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , + (u32 )MCD_ENetXmit_TDT, + (u32)&((u8 *)MCD_ENetXmit_TDT)[0x000000d0 ], +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +0x00000000 , +}; +u32 MCD_ChainNoEu_TDT[] = { +0x80004000 ,/* 0000(:370): LCDEXT: idx0 = 0x00000000; ; */ +0x8118801b ,/* 0004(:370): LCD: idx1 = var2; idx1 once var0; idx1 += inc3 */ +0xb8c60018 ,/* 0008(:371): LCD: idx2 = *(idx1 + var12); idx2 once var0; idx2 += inc3 */ +0x10002b10 ,/* 000C(:372): DRD1A: var10 = idx2; FN=0 MORE init=0 WS=0 RS=0 */ +0x7000000d ,/* 0010(:373): DRD2A: EU0=0 EU1=0 EU2=0 EU3=13 EXT MORE init=0 WS=0 RS=0 */ +0x018cf89f ,/* 0014(:373): DRD2B1: var6 = EU3(); EU3(idx2) */ +0x6000000a ,/* 0018(:374): DRD2A: EU0=0 EU1=0 EU2=0 EU3=10 EXT init=0 WS=0 RS=0 */ +0x080cf89f ,/* 001C(:374): DRD2B1: idx0 = EU3(); EU3(idx2) */ +0x000001f8 ,/* 0020(:0): NOP */ +0x98180364 ,/* 0024(:378): LCD: idx0 = idx0; idx0 == var13; idx0 += inc4 */ +0x8118801b ,/* 0028(:380): LCD: idx1 = var2; idx1 once var0; idx1 += inc3 */ +0xf8c6001a ,/* 002C(:381): LCDEXT: idx2 = *(idx1 + var12 + 8); idx2 once var0; idx2 += inc3 */ +0xb8c6601b ,/* 0030(:382): LCD: idx3 = *(idx1 + var12 + 12); ; idx3 += inc3 */ +0x10002710 ,/* 0034(:384): DRD1A: var9 = idx2; FN=0 MORE init=0 WS=0 RS=0 */ +0x00000f18 ,/* 0038(:385): DRD1A: var3 = idx3; FN=0 init=0 WS=0 RS=0 */ +0xb8c6001d ,/* 003C(:387): LCD: idx2 = *(idx1 + var12 + 20); idx2 once var0; idx2 += inc3 */ Lines of this file are not shown. View the raw message.
drivers/dma/fsl_mcd_dma/MCD_tasksInit.c new file +274
-0Lines of this file are not shown. View the raw message.
drivers/dma/fsl_mcd_dma/MCD_tasksInit.h new file +76
-0Lines of this file are not shown. View the raw message.
drivers/dma/fsl_mcd_dma/Makefile new file +1
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.
Hi Vinod,
Quoted 12 lines · Vinod Koul
Quoted 11 lines · Philippe De Muyter
This patch adds the (cleaned-up) Freescale-provided MultiChannel DMA driver for ColdFire M54xx and MPC8220 processors.
This driver is needed for the ethernet FEC driver of the ColdFire M547x and M548x processors.
It is not dmaengine-enabled, but that's not needed for the above FEC driver. I have however installed it in the driver/dma tree as this IP block is not m68k-specific, but freescale-specific, and shared at least between powerpc and coldfire parts (possibly arm-parts as well).
Quoted 4 lines
Quoted 3 lines
The installation in
drivers/dmaimplies a small rule change indrivers/Makefileto enterdrivers/dmaonCONFIG_DMADEVICESinstead ofCONFIG_DMAENGINE.BIG NAK
Thanks for your answer.
Quoted 2 lines
1. Please run Checkpath and reread
Documentation/CodingStyle, specfically CH4. Avoid the CamelCase
I had run checkpatch when I made the patch, but CamelCase was not yet searched for at that time. I will look at that.
Quoted 1 line
2. If you are not using dmaengine APIs then
drivers/dma/is not a place for you.
What would be the place then for a multi-architecture dma driver. Freescale often reuses the same blocks for its m68k (coldfire), powerpc and arm (iMX) product lines. A dma driver with many similarities is already under the arch/powerpc subtree. I would like to avoid that, because it clearly hurts reusability.
Quoted 1 line
3. While glancing at the code, I dont see why you cant use dmaengine APIs?
lack of need (the sole current user of this dma driver is a FEC ethernet driver which uses the current interface), time and expertise. but any help is welcome.
Quoted 2 lines
4. lastly, am blown off by your own implementation of memcpy, WHY? Kernel is smarter than you!
I agree, but don't shoot the messenger. I am not the original author, this is freescale code. I only ensured that it compiles and works with current kernels, and suppressed many checkpatch warnings.
Best regards
Philippe
Quoted 6 lines · Philippe De Muyter
Quoted 1 line
2. If you are not using dmaengine APIs then
drivers/dma/is not a place for you.What would be the place then for a multi-architecture dma driver. Freescale often reuses the same blocks for its m68k (coldfire), powerpc and arm (iMX) product lines. A dma driver with many similarities is already under the
arch/powerpcsubtree. I would like to avoid that, because it clearly hurts reusability.
So the question is will there be any more users of the driver other than the ethernet one? If No then it should live with ethernet driver.
DMAengine framework should be used where you have a system dma controller used by different subsystems.
Quoted 10 lines
Quoted 2 lines
3. While glancing at the code, I dont see why you cant use dmaengine APIs?
lack of need (the sole current user of this dma driver is a FEC ethernet driver which uses the current interface), time and expertise. but any help is welcome.
Quoted 2 lines
4. lastly, am blown off by your own implementation of memcpy, WHY? Kernel is smarter than you!
I agree, but don't shoot the messenger. I am not the original author, this is freescale code. I only ensured that it compiles and works with current kernels, and suppressed many checkpatch warnings.
Okay but you could have removed these before sending it. Hopefully next version will have these kind of stuff taken care of :)
--
~Vinod
Hi Vinod,
Quoted 7 lines · Vinod Koul
Quoted 6 lines · Philippe De Muyter
Quoted 1 line
2. If you are not using dmaengine APIs then
drivers/dma/is not a place for you.What would be the place then for a multi-architecture dma driver. Freescale often reuses the same blocks for its m68k (coldfire), powerpc and arm (iMX) product lines. A dma driver with many similarities is already under the
arch/powerpcsubtree. I would like to avoid that, because it clearly hurts reusability.
Quoted 5 lines
So the question is will there be any more users of the driver other than the ethernet one? If No then it should live with ethernet driver.
DMAengine framework should be used where you have a system dma controller used by different subsystems.
I am not aware of any other user now, and my unique motivation is to get the ethernet driver into the kernel, for which this is a first step.
As it is clearly a dma driver, it seemed to me fit to place it under drivers/dma, but I can understand that you disagree.
I only wanted, by placing this driver under drivers/dma, to make it more visible, eventually getting some help to make it DMAengine enabled, and to avoid the need to move the files when the DMAengine interface would be added. So it is a chicken and egg question here :).
Again, thanks for your answers. Stany and I are trying since Aug 2012 to get those drivers (MCD dma and MCD_FEC ethernet) in the kernel.
Philippe
Signature · 1 line
Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles