![]() |
dfxasm
Vitis Drivers API Documentation
|
Data Structures | |
struct | XDfxasm |
The XDfxasm instance data structure. More... | |
Macros | |
#define | XDfxasm_ReadReg(Address) Xil_In32(Address) |
This macro reads a value from the given register. More... | |
#define | XDfxasm_WriteReg(Address, Data) Xil_Out32(Address, (u32)(Data)) |
This macro writes a value to the given register. More... | |
Functions | |
s32 | XDfxasm_CfgInitialize (XDfxasm *InstancePtr, XDfxasm_Config *ConfigPtr, UINTPTR EffectiveAddress) |
This function initializes a XDfxasm instance/driver. More... | |
void | XDfxasm_SetState (XDfxasm *InstancePtr, XDfxasm_State ShutdownValue) |
This function is used to set shutdown manager in shutdown or pass through mode. More... | |
u32 | XDfxasm_GetState (XDfxasm *InstancePtr) |
This function is used to read the state of the shutdown manager. More... | |
XDfxasm_Config * | XDfxasm_LookupConfig (u16 DeviceId) |
This function looks for the device configuration based on the unique device ID. More... | |
Register Offset | |
#define | XDFX_ASM_CTRL_OFFSET (0x000) |
Control register Offset and status register is also mappped to same address as Control register. More... | |
Register Mask | |
#define | XDFX_ASM_CTRL_SHUTDOWN_MASK (0x0000000F) |
Shutdown manager state mask. More... | |
#define XDFX_ASM_CTRL_OFFSET (0x000) |
Control register Offset and status register is also mappped to same address as Control register.
Referenced by XDfxasm_GetState(), and XDfxasm_SetState().
#define XDFX_ASM_CTRL_SHUTDOWN_MASK (0x0000000F) |
Shutdown manager state mask.
Referenced by XDfxasm_GetState().
#define XDfxasm_ReadReg | ( | Address | ) | Xil_In32(Address) |
This macro reads a value from the given register.
Address | is the address of the register to read from. |
Referenced by XDfxasm_GetState().
#define XDfxasm_WriteReg | ( | Address, | |
Data | |||
) | Xil_Out32(Address, (u32)(Data)) |
This macro writes a value to the given register.
Address | is the address of the register to write to. |
Data | is the 32-bit value to write to the register. |
Referenced by XDfxasm_SetState().
s32 XDfxasm_CfgInitialize | ( | XDfxasm * | InstancePtr, |
XDfxasm_Config * | ConfigPtr, | ||
UINTPTR | EffectiveAddress | ||
) |
This function initializes a XDfxasm instance/driver.
InstancePtr | is a pointer to the XDfxasm instance. |
ConfigPtr | points to the XDfxasm device configuration structure. |
EffectiveAddress | is the device base address in the virtual memory address space. If the address translation is not used then the physical address is passed. |
Set some default values for instance data, don't indicate the device is ready to use until everything has been initialized successfully.
References XDfxasm::Config, and XDfxasm::IsReady.
Referenced by XDfxasm_Example().
u32 XDfxasm_GetState | ( | XDfxasm * | InstancePtr | ) |
This function is used to read the state of the shutdown manager.
InstancePtr | is a pointer to the XDfxasm instance. |
References XDfxasm::Config, XDfxasm::IsReady, XDFX_ASM_CTRL_OFFSET, XDFX_ASM_CTRL_SHUTDOWN_MASK, and XDfxasm_ReadReg.
Referenced by XDfxasm_TestState().
XDfxasm_Config * XDfxasm_LookupConfig | ( | u16 | DeviceId | ) |
This function looks for the device configuration based on the unique device ID.
The table XDfxasm_ConfigTable[] contains the configuration information for each device in the system.
DeviceId | is the unique device ID of the device being looked up. |
Referenced by XDfxasm_Example().
void XDfxasm_SetState | ( | XDfxasm * | InstancePtr, |
XDfxasm_State | ShutdownValue | ||
) |
This function is used to set shutdown manager in shutdown or pass through mode.
InstancePtr | is a pointer to the XDfxasm instance. |
ShutdownValue | is to set shutdown manager in shutdown or pass through mode. Value can be either 0 or 1. Values are
|
References XDfxasm::Config, XDfxasm::IsReady, XDFX_ASM_CTRL_OFFSET, and XDfxasm_WriteReg.
Referenced by XDfxasm_TestState().