This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6678 LL2_EDC_setup 函数 IDMA_copy()作用



Hello 您好,

有以下问题请教:

1)

C6678例程中LL2_EDC_setup ()函数 IDMA_copy()作用是什么,主要是不理解的是IDMA_copy() 原地址与目标地址是同一个地址,为什么这样做?

void L1P_EDC_setup()
{
Uint32 preL1PMPPA[16];

/* 1. Disable the EDC */
CSL_CGEM_disablePMCErrorDetection();

/* 2. Clear any EDC errors */
CSL_CGEM_clearPMCErrorDetectionStatus(1, 1);

/* 3. Memory Scrubbing with IDMA, generate the parity bits*/
memcpy(preL1PMPPA, (void *)gpCGEM_regs->L1PMPPA, 64);//save protection attributes
L1P_memory_protection_cfg(0xFFFF); //enable IDMA access to L1P
IDMA_copy(0x00E00000, 0x00E00000, 32*1024, DMA_WAIT);
L1_MPPA_setup(gpCGEM_regs->L1PMPPA, preL1PMPPA);//restore protection for L1

/* 4. Enable the EDC*/
CSL_CGEM_enablePMCErrorDetection();
}

2)

C6657 的网口结构是否和C6678,C6672 网口硬件结构是一致的?如果不是,主要差别在哪里?

谢先!

BRS,

Meng