lib/sw_apps/zynqmp_pmufw/src/pm_reset.c
PmReset* PmGetResetById(const u32 resetId)
{
	PmReset* resetPtr = NULL;

	if (resetId >= (ARRAY_SIZE(pmAllResets) + PM_RESET_BASE)) {
		/* Reset id is higher than maximum */
		goto done;
	}

	if (resetId < PM_RESET_BASE) {
		/* Reset id is smaller than minimum */
		goto done;
	}

	resetPtr = pmAllResets[resetId - PM_RESET_BASE];

done:
	return resetPtr;
}
/**
 * PmGetResetById() - Find reset that matches a given reset ID
 * @resetId      ID of the reset to find
 *
 * @return       Pointer to PmReset structure (or NULL if not found)
 */
Find reset that matches a given reset ID
@resetId      ID of the reset to find

@return       Pointer to PmReset structure (or NULL if not found)
Find reset that matches a given reset ID @resetId ID of the reset to find @return Pointer to PmReset structure ( or NULL if not found )
PmReset* PmGetResetById(const u32 resetId)
{
	PmReset* resetPtr = NULL;
	if (resetId >= (ARRAY_SIZE(pmAllResets) + PM_RESET_BASE)) {
		goto done;
	}
	if (resetId < PM_RESET_BASE) {
		goto done;
	}
	resetPtr = pmAllResets[resetId - PM_RESET_BASE];
done:
	return resetPtr;
}
PmReset * PmGetResetById ( const u32 resetId ) { PmReset * resetPtr = NULL ; if ( resetId >= ( ARRAY_SIZE ( pmAllResets ) + PM_RESET_BASE ) ) { goto done ; } if ( resetId < PM_RESET_BASE ) { goto done ; } resetPtr = pmAllResets [ resetId - PM_RESET_BASE ] ; done : return resetPtr ; }
PmGetResetById() - Find reset that matches a given reset ID
 @resetId      ID of the reset to find
PmGetResetById () - Find reset that matches a given reset ID @resetId ID of the reset to find
/* Reset id is higher than maximum */ /* Reset id is smaller than minimum */