Skip to content

Commit

Permalink
mcdma: Export APIs to use in LwIP202 contrib source
Browse files Browse the repository at this point in the history
- Export XMcdma_BdChainFree() and XMcDma_BdSetAppWord() APIs
to use from lwIP contrib.
- Update driver version and addtogroup doxygen tags to mcdma_v1_2.

Signed-off-by: Maulik Jodhani <maulik.jodhani@xilinx.com>

Acked-for-series: Radhey Shyam Pandey <radheys@xilinx.com>
  • Loading branch information
Maulik Jodhani authored and saddepal committed Apr 26, 2018
1 parent 39183e0 commit debf203
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/data/mcdma.mdd
Expand Up @@ -36,7 +36,7 @@ BEGIN driver mcdma
OPTION supported_peripherals = (axi_mcdma);
OPTION driver_state = ACTIVE;
OPTION copyfiles = all;
OPTION VERSION = 1.1;
OPTION VERSION = 1.2;
OPTION NAME = mcdma;

END driver
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma.c
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma.c
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
*
* This file contains the implementation of the interface functions for MCDMA
Expand Down
9 changes: 7 additions & 2 deletions XilinxProcessorIPLib/drivers/mcdma/src/xmcdma.h
@@ -1,6 +1,6 @@
/******************************************************************************
*
* Copyright (C) 2017 Xilinx, Inc. All rights reserved.
* Copyright (C) 2017 - 2018 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma.h
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
* @details
*
Expand Down Expand Up @@ -139,6 +139,8 @@
* 1.0 adk 18/07/17 Initial version.
* 1.0 adk 09/02/18 Fixed CR#994435 Changes are made in the
* driver tcl file.
* 1.2 mj 05/03/18 Exported APIs XMcdma_BdChainFree() and
* XMcDma_BdSetAppWord().
******************************************************************************/
#ifndef XMCDMA_H_
#define XMCDMA_H_
Expand Down Expand Up @@ -621,10 +623,13 @@ u32 XMcDma_ChanSubmit(XMcdma_ChanCtrl *Chan, UINTPTR BufAddr, u32 len);
u32 XMcDma_ChanToHw(XMcdma_ChanCtrl *Chan);
int XMcdma_BdChainFromHW(XMcdma_ChanCtrl *Chan, u32 BdLimit,
XMcdma_Bd **BdSetPtr);
int XMcdma_BdChainFree(XMcdma_ChanCtrl *Chan, int BdCount, XMcdma_Bd *BdSetPtr);
u32 XMcdma_BdSetBufAddr(XMcdma_Bd *BdPtr, UINTPTR Addr);
void XMcDma_BdSetCtrl(XMcdma_Bd *BdPtr, u32 Data);
void XMcDma_DumpBd(XMcdma_Bd* BdPtr);

int XMcDma_BdSetAppWord(XMcdma_Bd* BdPtr, int Offset, u32 Word);

/* Gloabal OR'ed Single interrupt */
void XMcdma_IntrHandler(void *Instance);
void XMcdma_TxIntrHandler(void *Instance);
Expand Down
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_bd.c
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma_bd.c
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
*
* This file implements all the Scatter/Gather handling for the MCDMA Core,
Expand Down
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_bd.h
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma_bd.h
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
* MODIFICATION HISTORY:
*
Expand Down
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_intr.c
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma_intr.c
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
*
* This file contains the implementation of the interrupt handling functions for
Expand Down
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_selftest.c
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma_selftest.c
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
*
* This file contains the self-test function for the MCDMA core.
Expand Down
2 changes: 1 addition & 1 deletion XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_sinit.c
Expand Up @@ -33,7 +33,7 @@
/**
*
* @file xmcdma_sinit.c
* @addtogroup mcdma_v1_0
* @addtogroup mcdma_v1_2
* @{
*
* This file contains static initialization methods for Xilinx MCDMA core.
Expand Down

0 comments on commit debf203

Please sign in to comment.