XilinxProcessorIPLib/drivers/aienginev2/src/io_backend/privilege/xaie_io_privilege.c
static AieRC _XAie_PrivilegeSetPartProtectedRegs(XAie_DevInst *DevInst,
		u8 Enable)
{
	AieRC RC;
	XAie_NpiProtRegReq NpiProtReq = {0};

	NpiProtReq.NumCols = DevInst->NumCols;
	NpiProtReq.Enable = Enable;
	RC = _XAie_NpiSetProtectedRegEnable(DevInst, &NpiProtReq);
	if(RC != XAIE_OK) {
		XAIE_ERROR("Failed to set protected registers.\n");
	}

	return RC;
}
/*****************************************************************************/
/**
* This API sets partition NPI protected register enabling
*
* @param	DevInst: AI engine partition device instance pointer
* @param	Enable: XAIE_ENABLE to enable access to protected register.
*			XAIE_DISABLE to disable access.
*
* @return       XAIE_OK on success, error code on failure
*
* @note		This function is internal to this file.
*
*******************************************************************************/
This API sets partition NPI protected register enabling
This API sets partition NPI protected register enabling
static AieRC _XAie_PrivilegeSetPartProtectedRegs(XAie_DevInst *DevInst,
		u8 Enable)
{
	AieRC RC;
	XAie_NpiProtRegReq NpiProtReq = {0};
	NpiProtReq.NumCols = DevInst->NumCols;
	NpiProtReq.Enable = Enable;
	RC = _XAie_NpiSetProtectedRegEnable(DevInst, &NpiProtReq);
	if(RC != XAIE_OK) {
		XAIE_ERROR("Failed to set protected registers.\n");
	}
	return RC;
}
static AieRC _XAie_PrivilegeSetPartProtectedRegs ( XAie_DevInst * DevInst , u8 Enable ) { AieRC RC ; XAie_NpiProtRegReq NpiProtReq = { 0 } ; NpiProtReq . NumCols = DevInst -> NumCols ; NpiProtReq . Enable = Enable ; RC = _XAie_NpiSetProtectedRegEnable ( DevInst , & NpiProtReq ) ; if ( RC != XAIE_OK ) { XAIE_ERROR ( " \n " ) ; } return RC ; }
This API sets partition NPI protected register enabling
This API sets partition NPI protected register enabling