Hi,
In the example: C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_17\packages\ti\drv\pcie\example\sample
I can’t understand:
1- In the header pcie_sample.h (line 99) we have:
/* BAR mask */
#define PCIE_BAR_MASK 0x0FFFFFFF
But in pcie.sample.c (line 80) I found:
/* cache coherence:Aligning to 256 bytes because the PCIe inbound offset register masks the last 8bits of the buffer address */
#pragma DATA_ALIGN(dstBuf, 256)
/* last element in the buffer is a marker that indicates the buffer status: full/empty */
#define PCIE_EXAMPLE_MAX_CACHE_LINE_SIZE 128
So the PCIE_BAR_MASK is 256 Mbytes, ALIGN(dstbuf is 256 bytes and MAX_CACHE_LINE_SIZE is 128 bytes!!! Please I need more explanations!
2- Line 104: extern volatile unsigned int cregister TSCL:
what is Cregister ???, and where is declared??