lib/sw_services/xilloader/src/xloader_auth_enc.h
static inline int XLoader_UpdateMinorErr(XLoader_SecErrCodes Minor1, int Minor2)
{
	u32 UMinor1 = (u32)Minor1;
	u32 UMinor2 = (u32)Minor2;

	UMinor1 = (UMinor1 << 8U) | UMinor2;

	return (int)UMinor1;
}
/*****************************************************************************/
/**
 * @brief
 * This function updates security related minor error codes for Xilloader
 *
 * @param        Minor1  To specify the cause of failure of
 *                                       security operation
 * @param        Minor2  Libraries / Drivers error code as defined in respective
 *                                       modules
 * @note         If MSB of Minor1 is set then error in clearing of security
 *                       buffer  (16th bit)
 *                       If bit next to MSB is set then security buffer was successfully
 *                       cleared (15th bit)
 *                       For eg: 0x02 : Incorrect authentication type selected
 *                       0x42 : Incorrect authentication type selected and
 *                               buffer was successfully cleared
 *                       0x82 : Incorrect authentication type selected and
 *                               error in clearing buffer
 ******************************************************************************/
@brief
This function updates security related minor error codes for Xilloader

@param        Minor1  To specify the cause of failure of
security operation
@param        Minor2  Libraries / Drivers error code as defined in respective
modules
@note         If MSB of Minor1 is set then error in clearing of security
buffer  (16th bit)
If bit next to MSB is set then security buffer was successfully
cleared (15th bit)
For eg: 0x02 : Incorrect authentication type selected
0x42 : Incorrect authentication type selected and
buffer was successfully cleared
0x82 : Incorrect authentication type selected and
error in clearing buffer
@brief This function updates security related minor error codes for Xilloader @param Minor1 To specify the cause of failure of security operation @param Minor2 Libraries / Drivers error code as defined in respective modules @note If MSB of Minor1 is set then error in clearing of security buffer ( 16th bit ) If bit next to MSB is set then security buffer was successfully cleared ( 15th bit ) For eg : 0x02 : Incorrect authentication type selected 0x42 : Incorrect authentication type selected and buffer was successfully cleared 0x82 : Incorrect authentication type selected and error in clearing buffer
static inline int XLoader_UpdateMinorErr(XLoader_SecErrCodes Minor1, int Minor2)
{
	u32 UMinor1 = (u32)Minor1;
	u32 UMinor2 = (u32)Minor2;
	UMinor1 = (UMinor1 << 8U) | UMinor2;
	return (int)UMinor1;
}
static inline int XLoader_UpdateMinorErr ( XLoader_SecErrCodes Minor1 , int Minor2 ) { u32 UMinor1 = ( u32 ) Minor1 ; u32 UMinor2 = ( u32 ) Minor2 ; UMinor1 = ( UMinor1 << 8U ) | UMinor2 ; return ( int ) UMinor1 ; }
@brief
 This function updates security related minor error codes for Xilloader
@brief This function updates security related minor error codes for Xilloader