/* Driver Api to get the descriptor field information. This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 dma-able address of buffer2, length of buffer2, virtural adddress of buffer2.  */
void synopGMAC_get_desc_data(DmaDesc *desc, u32 *Status, u32 *Buffer1, u32 *Length1, u32 *Data1, u32 *Buffer2, u32 *Length2, u32 *Data2)
/* Driver Api to get the descriptor field information. This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 dma-able address of buffer2, length of buffer2, virtural adddress of buffer2.  */
void synopGMAC_get_desc_data(DmaDesc *desc, u32 *Status, u32 *Buffer1, u32 *Length1, u32 *Data1, u32 *Buffer2, u32 *Length2, u32 *Data2)
{
    if(Status != 0)
        *Status = desc->status;
    if(Buffer1 != 0)
        *Buffer1 = desc->buffer1;
    if(Length1 != 0)
        *Length1 = (desc->length & DescSize1Mask) >> DescSize1Shift;
    if(Data1 != 0)
        *Data1 = desc->data1;
    if(Buffer2 != 0)
        *Buffer2 = desc->buffer2;
    if(Length2 != 0)
        *Length2 = (desc->length & DescSize2Mask) >> DescSize2Shift;
    if(Data1 != 0)
        *Data2 = desc->data2;
    return;
}