libocxl
Functions
OpenCAPI PowerPC specific functions

Platform specific AFU functions for PowerPC. More...

Functions

ocxl_err ocxl_afu_set_ppc64_amr (ocxl_afu_h afu, uint64_t amr)
 Set the PPC64-specific PSL AMR register value for restricting access to the AFU. More...
 

Detailed Description

Platform specific AFU functions for PowerPC.

Function Documentation

◆ ocxl_afu_set_ppc64_amr()

ocxl_err ocxl_afu_set_ppc64_amr ( ocxl_afu_h  afu,
uint64_t  amr 
)

Set the PPC64-specific PSL AMR register value for restricting access to the AFU.

This register is documented in the Power ISA, Book III.

This function is not available on other platforms.

If used, this function should be called before ocxl_afu_attach()

Parameters
afuthe AFU handle
amrthe AMR register value
Return values
OCXL_OKif the value was accepted

Definition at line 779 of file afu.c.