emacps: Remove the alignment check for the adjacent BD gap
Removed the alignment check for the adjacent BD gap as the controller expects all the BDs are organized in linear order. Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
This commit is contained in:
parent
a116cc9f3b
commit
a84c7db3c2
2 changed files with 3 additions and 6 deletions
|
@ -234,8 +234,7 @@ LONG XEmacPs_BdRingCreate(XEmacPs_BdRing * RingPtr, UINTPTR PhysAddr,
|
|||
}
|
||||
|
||||
/* Figure out how many bytes will be between the start of adjacent BDs */
|
||||
RingPtr->Separation =
|
||||
((u32)sizeof(XEmacPs_Bd) + (Alignment - (u32)1)) & ~(Alignment - (u32)1);
|
||||
RingPtr->Separation = ((u32)sizeof(XEmacPs_Bd));
|
||||
|
||||
/* Must make sure the ring doesn't span address 0x00000000. If it does,
|
||||
* then the next/prev BD traversal macros will fail.
|
||||
|
|
|
@ -108,8 +108,7 @@ typedef struct {
|
|||
*
|
||||
******************************************************************************/
|
||||
#define XEmacPs_BdRingCntCalc(Alignment, Bytes) \
|
||||
(u32)((Bytes) / ((sizeof(XEmacPs_Bd) + ((Alignment)-1)) & \
|
||||
~((Alignment)-1)))
|
||||
(u32)((Bytes) / (sizeof(XEmacPs_Bd)))
|
||||
|
||||
/*****************************************************************************/
|
||||
/**
|
||||
|
@ -130,8 +129,7 @@ typedef struct {
|
|||
*
|
||||
******************************************************************************/
|
||||
#define XEmacPs_BdRingMemCalc(Alignment, NumBd) \
|
||||
(u32)((sizeof(XEmacPs_Bd) + ((Alignment)-1)) & \
|
||||
~((Alignment)-1)) * ((NumBd))
|
||||
(u32)(sizeof(XEmacPs_Bd) * (NumBd))
|
||||
|
||||
/****************************************************************************/
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue