lib/sw_apps/zynqmp_pmufw/src/pm_reset.c
static u32 PmResetGetStatusGpioBankIOs(const PmReset* const rstPtr)
{
	const PmResetGpioBankIOs *rstGpioPtr = (PmResetGpioBankIOs*)rstPtr->derived;
	u32 RegShift = ((u32)MAX_REG_BITS/2U) + ((u32)rstGpioPtr->rstLine);
	u32 RegVal = 0;

	/* Read the MIO/EMIO data register */
	RegVal = Xil_In32(rstGpioPtr->rstReadDataReg);

	return ((RegVal >> RegShift) & 1U);
}
/**
 * PmResetGetStatusGpioBankIOs() - Get reset status handler for GPIO bank
 * @rstPtr	Pointer to the reset whose status should be returned
 *
 * @return	Current reset status (0 - released, 1 - asserted)
 */
Get reset status handler for GPIO bank
@rstPtr      Pointer to the reset whose status should be returned

@return      Current reset status (0 - released, 1 - asserted)
Get reset status handler for GPIO bank @rstPtr Pointer to the reset whose status should be returned @return Current reset status ( 0 - released 1 - asserted )
static u32 PmResetGetStatusGpioBankIOs(const PmReset* const rstPtr)
{
	const PmResetGpioBankIOs *rstGpioPtr = (PmResetGpioBankIOs*)rstPtr->derived;
	u32 RegShift = ((u32)MAX_REG_BITS/2U) + ((u32)rstGpioPtr->rstLine);
	u32 RegVal = 0;
	RegVal = Xil_In32(rstGpioPtr->rstReadDataReg);
	return ((RegVal >> RegShift) & 1U);
}
static u32 PmResetGetStatusGpioBankIOs ( const PmReset * const rstPtr ) { const PmResetGpioBankIOs * rstGpioPtr = ( PmResetGpioBankIOs * ) rstPtr -> derived ; u32 RegShift = ( ( u32 ) MAX_REG_BITS / 2U ) + ( ( u32 ) rstGpioPtr -> rstLine ) ; u32 RegVal = 0 ; RegVal = Xil_In32 ( rstGpioPtr -> rstReadDataReg ) ; return ( ( RegVal >> RegShift ) & 1U ) ; }
PmResetGetStatusGpioBankIOs() - Get reset status handler for GPIO bank
 @rstPtr      Pointer to the reset whose status should be returned
PmResetGetStatusGpioBankIOs () - Get reset status handler for GPIO bank @rstPtr Pointer to the reset whose status should be returned
/* Read the MIO/EMIO data register */