File umsg.h¶
FileList > docs > sw > include > opae > umsg.h
Go to the source code of this file.
FPGA UMsg API.
#include <opae/types.h>
Public Functions¶
Type | Name |
---|---|
fpga_result | fpgaGetNumUmsg (fpga_handle handle, uint64_t * value) Get number of Umsgs. |
fpga_result | fpgaGetUmsgPtr (fpga_handle handle, uint64_t ** umsg_ptr) Access UMsg memory directly. |
fpga_result | fpgaSetUmsgAttributes (fpga_handle handle, uint64_t value) Sets Umsg hint. |
fpga_result | fpgaTriggerUmsg (fpga_handle handle, uint64_t value) Trigger Umsg. |
Public Functions Documentation¶
function fpgaGetNumUmsg¶
Get number of Umsgs.
Retuns number of umsg supported by AFU.
Parameters:
handle
Handle to previously opened accelerator resourcevalue
Returns number of UMsgs
Returns:
FPGA_OK on success. FPGA_INVALID_PARAM if input parameter combination is not valid. FPGA_EXCEPTION if input parameter fpga handle is not valid.
function fpgaGetUmsgPtr¶
Access UMsg memory directly.
This function will return a pointer to the memory allocated for low latency accelerator notifications (UMsgs).
Parameters:
handle
Handle to previously opened accelerator resourceumsg_ptr
Pointer to memory where a pointer to the virtual address space will be returned
Returns:
FPGA_OK on success. FPGA_INVALID_PARAM if input parameter combination is not valid. FPGA_EXCEPTION if input parameter fpga handle is not valid. FPGA_NO_MEMORY if memory allocation fails or system doesn't configure huge pages.
function fpgaSetUmsgAttributes¶
Sets Umsg hint.
Writes usmg hint bit.
Parameters:
handle
Handle to previously opened accelerator resourcevalue
Value to use for UMsg hint, Umsg hit is N wide bitvector where N = number of Umsgs.
Returns:
FPGA_OK on success. FPGA_INVALID_PARAM if input parameter combination is not valid. FPGA_EXCEPTION if input parameter fpga handle is not valid.
function fpgaTriggerUmsg¶
Trigger Umsg.
Writes a 64-bit value to trigger low-latency accelerator notification mechanism (UMsgs).
Parameters:
handle
Handle to previously opened accelerator resourcevalue
Value to use for UMsg
Returns:
FPGA_OK on success. FPGA_INVALID_PARAM if input parameter combination is not valid. FPGA_EXCEPTION if input parameter fpga handle is not valid.
The documentation for this class was generated from the following file docs/sw/include/opae/umsg.h