MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 1.00a srt 01/24/13 First release 1.01a adk 03/09/13 Updated driver to Support Static and Streaming mode. 2.00a adk 16/09/13 Fixed CR:737291
#include "xtrafgen.h"
Defines | |
#define | XTrafGen_GetCmdInfo(InstancePtr) (&((InstancePtr)->CmdInfo)) |
Functions | |
int | XTrafGen_CfgInitialize (XTrafGen *InstancePtr, XTrafGen_Config *Config, u32 EffectiveAddress) |
int | XTrafGen_AddCommand (XTrafGen *InstancePtr, XTrafGen_Cmd *CmdPtr) |
int | XTrafGen_GetLastValidIndex (XTrafGen *InstancePtr, u32 RdWrFlag) |
int | XTrafGen_WriteCmdsToHw (XTrafGen *InstancePtr) |
int | XTrafGen_EraseAllCommands (XTrafGen *InstancePtr) |
void | XTrafGen_AccessMasterRam (XTrafGen *InstancePtr, u32 Offset, int Length, u8 RdWrFlag, u32 *Data) |
void | XTrafGen_PrintCmds (XTrafGen *InstancePtr) |
|
Get Command Info pointer
|
|
Write or Read Master RAM The MSTRAM has 8 KB of internal RAM used for the following:
|
|
Add a command to the software list of commands. This function prepares the four Command Words and one Parameter Word from the Command structure passed from the user application. It then adds to a list of commands (maintained in the software). Both CMDRAM and PARAMRAM are divided into two regions, one for reads and one for writes. Each region can hold 256 commands with each entry containing four Command RAM words and one Parameter RAM word.
|
|
This function initializes a AXI Traffic Generator device. This function must be called prior to using a AXI Traffic Generator Device. Initializing a engine includes setting up the register base address, setting up the instance data, and ensuring the hardware is in a quiescent state.
|
|
Erase all Command Entry values This function erases all the 256 entries of both write and read regions with each entry containing four command words and parameter word.
|
|
Get last Valid Command Index of Write/Read region The last valid command index is used to set 'my_depend' and 'other_depend' fields of the Command RAM (Word 2).
|
|
Display Command Entry values This function prints all the 256 entries of both write and read regions with each entry containing four command words and parameter word.
|
|
Write Commands to internal Command and Parameter RAMs This function writes all the prepared commands to hardware.
|