152 lines
7 KiB
HTML
152 lines
7 KiB
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
|
<title>
|
||
|
xllfifo.c File Reference
|
||
|
</title>
|
||
|
<link href="$DriverApiDocsCssPath" rel="stylesheet" type="text/css">
|
||
|
</head>
|
||
|
<h3 class="PageHeader">Xilinx Processor IP Library</h3>
|
||
|
<hl>Software Drivers</hl>
|
||
|
<hr class="whs1">
|
||
|
<!-- Generated by Doxygen 1.4.5 -->
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul></div>
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="files.html"><span>File List</span></a></li>
|
||
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
||
|
</ul></div>
|
||
|
<h1>xllfifo.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
The Xilinx local link FIFO driver component. This driver supports the Xilinx xps_ll_fifo core.<p>
|
||
|
<pre>
|
||
|
MODIFICATION HISTORY:</pre><p>
|
||
|
<pre> Ver Who Date Changes
|
||
|
----- ---- -------- -------------------------------------------------------
|
||
|
1.00a jvb 10/13/06 First release
|
||
|
1.00a xd 12/17/07 Added type casting to fix CR #456850
|
||
|
1.02a jz 12/04/09 Hal phase 1 support
|
||
|
2.00a hbm 01/20/10 Hal phase 1 support, bump up major release
|
||
|
2.01a asa 09/17/10 Added code for resetting Streaming interface
|
||
|
for CR574868
|
||
|
3.00a adk 08/10/13 Added support for AXI4 Datainterface.Updated
|
||
|
XLlFifo_RxGetWord, XLlFifo_TxPutword inorder to
|
||
|
handle AXI4 Datainterface. Added Config
|
||
|
initialization for the driver.
|
||
|
</pre>
|
||
|
<p>
|
||
|
<code>#include "xstatus.h"</code><br>
|
||
|
<code>#include "xllfifo.h"</code><br>
|
||
|
<code>#include "xil_assert.h"</code><br>
|
||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr><td></td></tr>
|
||
|
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xllfifo_8c.html#2fe123c957f759858100542feb21be2d">XLlFifo_CfgInitialize</a> (<a class="el" href="struct_x_ll_fifo.html">XLlFifo</a> *InstancePtr, XLlFifo_Config *Config, u32 EffectiveAddress)</td></tr>
|
||
|
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xllfifo_8c.html#83642984b46fd728640f099a09eeeebd">XLlFifo_Initialize</a> (<a class="el" href="struct_x_ll_fifo.html">XLlFifo</a> *InstancePtr, u32 BaseAddress)</td></tr>
|
||
|
|
||
|
</table>
|
||
|
<hr><h2>Function Documentation</h2>
|
||
|
<a class="anchor" name="2fe123c957f759858100542feb21be2d"></a><!-- doxytag: member="xllfifo.c::XLlFifo_CfgInitialize" ref="2fe123c957f759858100542feb21be2d" args="(XLlFifo *InstancePtr, XLlFifo_Config *Config, u32 EffectiveAddress)" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">int XLlFifo_CfgInitialize </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top"><a class="el" href="struct_x_ll_fifo.html">XLlFifo</a> * </td>
|
||
|
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="md" nowrap align="right"></td>
|
||
|
<td class="md"></td>
|
||
|
<td class="md" nowrap>XLlFifo_Config * </td>
|
||
|
<td class="mdname" nowrap> <em>Config</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="md" nowrap align="right"></td>
|
||
|
<td class="md"></td>
|
||
|
<td class="md" nowrap>u32 </td>
|
||
|
<td class="mdname" nowrap> <em>EffectiveAddress</em></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="md"></td>
|
||
|
<td class="md">) </td>
|
||
|
<td class="md" colspan="2"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
XLlFifo_CfgInitialize initializes an XPS_ll_Fifo device along with the <em>InstancePtr</em> that references it.<p>
|
||
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em> </td><td>is a pointer to the Axi Streaming FIFO instance to be worked on. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>CfgPtr</em> </td><td>references the structure holding the hardware configuration for the Axi Streaming FIFO core to initialize. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>EffectiveAddr</em> </td><td>is the device base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the device physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, use Config->BaseAddress for this parameters, passing the physical address instead.</td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>N/A </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="83642984b46fd728640f099a09eeeebd"></a><!-- doxytag: member="xllfifo.c::XLlFifo_Initialize" ref="83642984b46fd728640f099a09eeeebd" args="(XLlFifo *InstancePtr, u32 BaseAddress)" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">void XLlFifo_Initialize </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top"><a class="el" href="struct_x_ll_fifo.html">XLlFifo</a> * </td>
|
||
|
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="md" nowrap align="right"></td>
|
||
|
<td class="md"></td>
|
||
|
<td class="md" nowrap>u32 </td>
|
||
|
<td class="mdname" nowrap> <em>BaseAddress</em></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="md"></td>
|
||
|
<td class="md">) </td>
|
||
|
<td class="md" colspan="2"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
XLlFifo_Initialize initializes an XPS_ll_Fifo device along with the <em>InstancePtr</em> that references it.<p>
|
||
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em> </td><td>references the memory instance to be associated with the FIFO device upon initialization.</td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>BaseAddress</em> </td><td>is the processor address used to access the base address of the Fifo device.</td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>N/A </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.
|