![]() |
aiengine
Xilinx SDK Drivers API Documentation
|
This file contains the generic definitions for the AIE simulator interface.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 Hyun 07/12/2018 Initial creation 1.1 Nishad 12/05/2018 Renamed ME attributes to AIE
void | XAieIO_Finish (void) |
This is the memory IO function to free the global IO instance. More... | |
void | XAieIO_Init (void) |
This is the memory IO function to initialize the global IO instance. More... | |
void | XAieIO_IntrUnregisterIsr (int Offset) |
This function unregisters the interrupt handler for given irq offset. More... | |
int | XAieIO_IntrRegisterIsr (int Offset, int(*Handler)(void *Data), void *Data) |
This function registers the interrupt handler for given irq offset. More... | |
void * | _XAieIO_GetIO (void) |
This is the memory IO function to get a low level IO instance. More... | |
uint32 | XAieIO_Read32 (uint64_t Addr) |
This is the memory IO function to read 32bit data from the specified address. More... | |
void | XAieIO_MemFinish (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to free the memory instance. More... | |
void | XAieIO_MemDetach (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to detach the memory from device. More... | |
XAieIO_Mem * | XAieIO_MemAttach (uint64_t Vaddr, uint64_t Paddr, uint64_t Size, uint64_t MemHandle) |
This is the IO memory function to attach the external memory to device. More... | |
void | XAieIO_MemFree (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to free the memory. More... | |
uint8 | XAieIO_MemSyncForCPU (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to sync the memory for CPU. More... | |
uint8 | XAieIO_MemSyncForDev (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to sync the memory for device. More... | |
uint64_t | XAieIO_MemGetSize (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to return the size of the memory instance. More... | |
uint64_t | XAieIO_MemGetVaddr (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to return the mapped virtual address of the memory instance. More... | |
uint64_t | XAieIO_MemGetPaddr (XAieIO_Mem *IO_MemInstPtr) |
This is the IO memory function to return the physical address of the memory instance. More... | |
uint32 | XAieIO_MemRead32 (XAieIO_Mem *IO_MemInstPtr, uint64_t Addr) |
This is the IO memory function to read from the physical address. More... | |
uint32 | XAieIO_NPIRead32 (uint64_t Addr) |
This is the NPI IO function to read 32bit data from the specified address. More... | |
void* _XAieIO_GetIO | ( | void | ) |
This is the memory IO function to get a low level IO instance.
None. |
void XAieIO_Finish | ( | void | ) |
This is the memory IO function to free the global IO instance.
None. |
Referenced by XAieIO_IntrRegisterIsr(), XAieIO_IntrUnregisterIsr(), XAieIO_MemAllocate(), XAieIO_MemAttach(), XAieIO_MemDetach(), XAieIO_MemFinish(), and XAieIO_MemFree().
void XAieIO_Init | ( | void | ) |
This is the memory IO function to initialize the global IO instance.
None. |
Referenced by XAieIO_IntrRegisterIsr(), XAieIO_MemAllocate(), XAieIO_MemAttach(), XAieIO_MemInit(), and XAieLib_InitDev().
int XAieIO_IntrRegisterIsr | ( | int | Offset, |
int(*)(void *Data) | Handler, | ||
void * | Data | ||
) |
This function registers the interrupt handler for given irq offset.
Offset,: | The value should one of 1 - 3. Current it's not used. |
Handler,: | the callback to be called upon interrupt. |
Data,: | the data to be used with the handler. |
References XAieIO_Finish(), and XAieIO_Init().
Referenced by XAieLib_InterruptRegisterIsr().
void XAieIO_IntrUnregisterIsr | ( | int | Offset | ) |
This function unregisters the interrupt handler for given irq offset.
Offset,: | The value should one of 1 - 3. Current it's not used. |
References XAieIO_Finish().
Referenced by XAieLib_InterruptUnregisterIsr().
XAieIO_Mem* XAieIO_MemAttach | ( | uint64_t | Vaddr, |
uint64_t | Paddr, | ||
uint64_t | Size, | ||
uint64_t | MemHandle | ||
) |
This is the IO memory function to attach the external memory to device.
Vaddr,: | Optional. Vaddr of the memory |
Paddr,: | Optional. Paddr of the memory |
Size,: | Required. Size of the memory |
MemHandle,: | Required. Handle of the memory. For linux, dmabuf fd |
References XAieIO_Finish(), and XAieIO_Init().
Referenced by XAieLib_MemAttach().
void XAieIO_MemDetach | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to detach the memory from device.
IO_MemInstPtr,: | IO Memory instance pointer. |
References XAieIO_Finish().
Referenced by XAieLib_MemDetach().
void XAieIO_MemFinish | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to free the memory instance.
IO_MemInstPtr,: | IO Memory instance pointer. |
References XAieIO_Finish().
Referenced by XAieLib_MemFinish().
void XAieIO_MemFree | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to free the memory.
IO_MemInstPtr,: | IO Memory instance pointer. |
References XAieIO_Finish().
Referenced by XAieLib_MemFree().
uint64_t XAieIO_MemGetPaddr | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to return the physical address of the memory instance.
IO_MemInstPtr,: | IO Memory instance pointer. |
Referenced by XAieLib_MemGetPaddr().
uint64_t XAieIO_MemGetSize | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to return the size of the memory instance.
IO_MemInstPtr,: | IO Memory instance pointer. |
Referenced by XAieLib_MemGetSize().
uint64_t XAieIO_MemGetVaddr | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to return the mapped virtual address of the memory instance.
IO_MemInstPtr,: | IO Memory instance pointer. |
Referenced by XAieLib_MemGetVaddr().
uint32 XAieIO_MemRead32 | ( | XAieIO_Mem * | IO_MemInstPtr, |
uint64_t | Addr | ||
) |
This is the IO memory function to read from the physical address.
IO_MemInstPtr,: | IO Memory instance pointer. |
Addr,: | Absolute physical address to read from. |
Referenced by XAieLib_MemRead32().
uint8 XAieIO_MemSyncForCPU | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to sync the memory for CPU.
IO_MemInstPtr,: | IO Memory instance pointer. |
Referenced by XAieLib_MemSyncForCPU().
uint8 XAieIO_MemSyncForDev | ( | XAieIO_Mem * | IO_MemInstPtr | ) |
This is the IO memory function to sync the memory for device.
IO_MemInstPtr,: | IO Memory instance pointer. |
Referenced by XAieLib_MemSyncForDev().
uint32 XAieIO_NPIRead32 | ( | u64 | Addr | ) |
This is the NPI IO function to read 32bit data from the specified address.
Addr,: | Address to read from. |
Referenced by XAieLib_NPIMaskWrite32(), and XAieLib_NPIRead32().
uint32 XAieIO_Read32 | ( | u64 | Addr | ) |
This is the memory IO function to read 32bit data from the specified address.
Addr,: | Address to read from. |
Referenced by XAieIO_Read128(), XAieLib_MaskWrite32(), XAieLib_Read128(), and XAieLib_Read32().