lib/sw_services/xilpm/src/versal/server/xpm_gic_proxy.c
static void XPmGicProxy_Enable(void)
{
	u32 g;
	const XPm_Pmc *Pmc = (XPm_Pmc *)XPmDevice_GetById(PM_DEV_PMC_PROC);

	for (g = 0U; g < XPm_GicProxy.GroupsCnt; g++) {
		/* PMC Global base address */
		u32 BaseAddress = Pmc->PmcGlobalBaseAddr;
		u32 RegAddress = BaseAddress +
				 PMC_GLOBAL_GIC_PROXY_BASE_OFFSET +
				 GIC_PROXY_GROUP_OFFSET(g) +
				 GIC_PROXY_IRQ_ENABLE_OFFSET;

		/* Enable interrupts in the group that are set as wake */
		XPm_Out32(RegAddress, XPm_GicProxy.Groups[g].SetMask);

		if (0U != XPm_GicProxy.Groups[g].SetMask) {
			XPm_Out32(BaseAddress +
				  PMC_GLOBAL_GICP_IRQ_ENABLE_OFFSET, BIT32(g));
		}
	}

	XPm_GicProxy.Flags |= XPM_GIC_PROXY_IS_ENABLED;
}
/**
 * XPmGicProxy_Enable() - Enable all interrupts that are requested
 */
Enable all interrupts that are requested
Enable all interrupts that are requested
static void XPmGicProxy_Enable(void)
{
	u32 g;
	const XPm_Pmc *Pmc = (XPm_Pmc *)XPmDevice_GetById(PM_DEV_PMC_PROC);
	for (g = 0U; g < XPm_GicProxy.GroupsCnt; g++) {
		u32 BaseAddress = Pmc->PmcGlobalBaseAddr;
		u32 RegAddress = BaseAddress +
				 PMC_GLOBAL_GIC_PROXY_BASE_OFFSET +
				 GIC_PROXY_GROUP_OFFSET(g) +
				 GIC_PROXY_IRQ_ENABLE_OFFSET;
		XPm_Out32(RegAddress, XPm_GicProxy.Groups[g].SetMask);
		if (0U != XPm_GicProxy.Groups[g].SetMask) {
			XPm_Out32(BaseAddress +
				  PMC_GLOBAL_GICP_IRQ_ENABLE_OFFSET, BIT32(g));
		}
	}
	XPm_GicProxy.Flags |= XPM_GIC_PROXY_IS_ENABLED;
}
static void XPmGicProxy_Enable ( void ) { u32 g ; const XPm_Pmc * Pmc = ( XPm_Pmc * ) XPmDevice_GetById ( PM_DEV_PMC_PROC ) ; for ( g = 0U ; g < XPm_GicProxy . GroupsCnt ; g ++ ) { u32 BaseAddress = Pmc -> PmcGlobalBaseAddr ; u32 RegAddress = BaseAddress + PMC_GLOBAL_GIC_PROXY_BASE_OFFSET + GIC_PROXY_GROUP_OFFSET ( g ) + GIC_PROXY_IRQ_ENABLE_OFFSET ; XPm_Out32 ( RegAddress , XPm_GicProxy . Groups [ g ] . SetMask ) ; if ( 0U != XPm_GicProxy . Groups [ g ] . SetMask ) { XPm_Out32 ( BaseAddress + PMC_GLOBAL_GICP_IRQ_ENABLE_OFFSET , BIT32 ( g ) ) ; } } XPm_GicProxy . Flags |= XPM_GIC_PROXY_IS_ENABLED ; }
XPmGicProxy_Enable() - Enable all interrupts that are requested
XPmGicProxy_Enable () - Enable all interrupts that are requested
/* PMC Global base address */ /* Enable interrupts in the group that are set as wake */